1. Documents
LoadingCalendar API
  • LoadingCalendar API
    • Warehouses
      • List all warehouses
      • Get a warehouse
      • Get available time slots
    • Loadings
      • List loadings
      • Create a loading
      • Get a loading
      • Update a loading
      • Cancel a loading
    • Documents
      • Add a document to a loading
        POST
      • Delete a document
        DELETE
  1. Documents

Add a document to a loading

Prod Env
https://www.loadingcalendar.com/api/v1
Prod Env
https://www.loadingcalendar.com/api/v1
POST
https://www.loadingcalendar.com/api/v1
/loadings/{loading_id}/documents
Documents
Uploads a document (as base64) and attaches it to a loading.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢201
application/json
Document created
Body

🟠401Unauthorized
🟠404NotFound
🟠422UnprocessableEntity
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.loadingcalendar.com/api/v1/loadings//documents' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "category": "loading_plan",
    "filename": "delivery-note.pdf",
    "content_type": "application/octet-stream",
    "base64": "string"
}'
Response Response Example
201 - Example 1
{
    "id": 0,
    "category": "loading_plan",
    "filename": "delivery-note.pdf",
    "content_type": "application/pdf",
    "base64": "string"
}
Previous
Cancel a loading
Next
Delete a document
Built with