Shipment Collection
GEThttps://api.lochting.com/public/v1/shipments
This call will return a JSON object with shipments.
info
The structure of the weight differs from the New Shipment endpoint. The amount is returned as an object with three different representations.
Request
Query Parameters
pagination[page] integer
The page number to retrieve
Default value:
1
pagination[size] integer
The page size (hard limit to 1000
)
Default value:
10
Header Parameters
Authorization stringrequired
Example: your-access-token
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (auto)
Schema
pagination object
totalintegerrequired
Total number of items.
Example:
1
items object[]required
{
"pagination": {
"page": 1,
"size": 10
},
"total": 1,
"items": [
{
"shipmentId": "shipment-c7d932c1-84e8-410c-a9b2-18bf739d6b8b",
"salesChannelId": "webshop-03cac0fc-feaf-5bc5-a3d1-8dc5e80ada46",
"orderId": "order-c7d932c1-84e8-410c-a9b2-18bf739d6b8b",
"customerFirstName": "John",
"customerLastName": "Doe",
"customerPhone": "123456789",
"carrierCode": "bpost",
"createdAt": "2020-02-28 15:02:11",
"updatedAt": "2020-02-28 15:02:11",
"weight": {
"amount": 900,
"amountInGrams": 900,
"amountInKilograms": 0.9
},
"status": "Announced"
}
]
}
Unauthorized
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.lochting.com/public/v1/shipments");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear