Get all shipment
About
The /shipment
route can be used to retrieve all the 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.
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.
Endpoints
Retrieve all shipments
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 HTTP/1.1
Host: api.one-record.fr
Authorization: Bearer JWT
Accept: */*
{
"data": [
{
"shipmentId": "123e4567-e89b-12d3-a456-426614174000",
"departure": "text",
"departureCountry": "AD",
"arrival": "text",
"arrivalCountry": "AD",
"orderReference": "text",
"customerReference": "text",
"quantityExpected": 1,
"quantityTypeExpected": "AUT",
"grossWeightExpected": 1,
"grossWeightTaxableExpected": 1,
"volumeExpected": 1,
"quantityReal": 1,
"quantityTypeReal": "AUT",
"grossWeightReal": 1,
"grossWeightTaxableReal": 1,
"volumeReal": 1,
"mawbNumber": "text",
"hawbNumber": "text",
"hbl": "text",
"mbl": "text",
"goodsDescription": "text",
"fly": "text",
"ship": "text",
"isSecure": false,
"isDangerous": false,
"limitBoardingTime": "text",
"shippingReference": "text",
"assignations": [
"123e4567-e89b-12d3-a456-426614174000"
],
"anomalies": [
"123e4567-e89b-12d3-a456-426614174000"
],
"customs": [
"123e4567-e89b-12d3-a456-426614174000"
],
"details": [
"123e4567-e89b-12d3-a456-426614174000"
],
"documents": [
"123e4567-e89b-12d3-a456-426614174000"
],
"events": [
"123e4567-e89b-12d3-a456-426614174000"
],
"operators": [
"123e4567-e89b-12d3-a456-426614174000"
],
"securities": [
"123e4567-e89b-12d3-a456-426614174000"
],
"services": [
"123e4567-e89b-12d3-a456-426614174000"
],
"preparations": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": null,
"updatedAt": null
}
],
"metadata": {
"count": 1,
"current": "text",
"next": "text"
}
}
Last updated