Skip to main content
GET
/
orders
/
file-categories
File Categories
curl --request GET \
  --url https://logistics.api.smartcp.org/v1/orders/file-categories \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Client-Directory: <api-key>'
{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "id": 1,
      "name": "General files",
      "visible_customer": 0
    },
    {
      "id": 2,
      "name": "POD",
      "visible_customer": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

Client API key sent as a bearer token.

X-Client-Directory
string
header
required

Client directory identifier. Legacy directory header is still accepted for backward compatibility.

Response

Category list returned

status
integer
required
Example:

200

message
string
required
Example:

"OK"

data
object[]
required