Upload documents
POST/v1/documents/uploads
Upload a shipping document.
Request
- application/json
Body
required
Array [
]
The documents related shipment.
document_files
object[]
required
Shipping document files
A base64 file to upload
The file name
The file format
Possible values: <= 50 characters
Default value: other
Shipment document type
values: <br/>
`certificate_of_origin` `commercial_invoice` `pro_forma_invoice` `packing_list` `other`
For carrier specific packaging types, please consult the reference.
Possible values: <= 50 characters
Shipping document file reference
Responses
- 201
- 400
- 424
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
A unique identifier
The shipment carrier
The shipment carrier configured identifier
documents
object[]
the carrier shipping document ids
The uploaded document id.
The uploaded document file name.
meta
object
nullable
provider specific metadata
provider specific metadata
Possible values: <= 50 characters
Shipping document file reference
messages
object[]
The list of note or warning messages
The error or warning message
The message code
details
object
any additional details
any additional details
The targeted carrier
The targeted carrier name (unique identifier)
{
"id": "string",
"carrier_name": "string",
"carrier_id": "string",
"documents": [
{
"doc_id": "string",
"file_name": "string"
}
],
"meta": {},
"reference": "string",
"messages": [
{
"message": "string",
"code": "string",
"details": {},
"carrier_name": "string",
"carrier_id": "string"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
The list of API errors
The error or warning message
The message code
details
object
any additional details
any additional details
{
"errors": [
{
"message": "string",
"code": "string",
"details": {}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messages
object[]
The list of error messages
The error or warning message
The message code
details
object
any additional details
any additional details
The targeted carrier
The targeted carrier name (unique identifier)
{
"messages": [
{
"message": "string",
"code": "string",
"details": {},
"carrier_name": "string",
"carrier_id": "string"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
The list of API errors
The error or warning message
The message code
details
object
any additional details
any additional details
{
"errors": [
{
"message": "string",
"code": "string",
"details": {}
}
]
}