Get all shipment document
The /shipment-document
route can be used to retrieve all the documents attached to shipments that belong to the user society. As the amount of data can be big, a pagination system is used. In order to get more relevant results, it is possible to filter and sort data, e.g. to get document for a specific shipment.
A shipment document will not contain the physical file (e.g. the pdf, jpg,…), only its metadata. The file can be downloaded using the value of the signedUrl
attribute.
Groups
To understand the groups parameter and the customization of API responses, please refer to the groups page.
Filters
To understand the filters parameter and the customization of API responses, please refer to the filters page.
Get all shipment documents
Authorizations
Query parameters
page[cursor]stringOptional
page[limit]any · min: 2 · max: 200Optional
order[column]stringOptionalExample:
column_name
order[direction]stringOptionalExample:
asc|desc
Responses
200Success
application/json
400
Bad Request
application/json
401
Unauthorized Entity
application/json
422
Unprocessable Entity
application/json
get
GET /shipment-document HTTP/1.1
Host: api.one-record.fr
Authorization: Bearer JWT
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"shipment": "123e4567-e89b-12d3-a456-426614174000",
"filePath": "text",
"signedUrl": "text",
"name": "text",
"createdAt": null,
"updatedAt": null
}
],
"metadata": {
"count": 1,
"current": "text",
"next": "text"
}
}
Last updated