Order Collection
GEThttps://api.lochting.com/public/v1/orders
This call will return a JSON object with orders.
info
The structure of prices differs from the New Order endpoint. Prices are enriched with the correct currency name and symbol.
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
sorting[field] string
The field to sort on (createdAt, updatedAt or orderStatus).
Default value:
null
sorting[direction] string
The sorting direction (ascending or descending).
Default value:
null
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": [
{
"orderId": "order-c7d932c1-84e8-410c-a9b2-18bf739d6b8b",
"orderNumber": "W00010",
"salesChannelId": "webshop-03cac0fc-feaf-5bc5-a3d1-8dc5e80ada46",
"externalReferenceId": "34",
"paymentMethod": "bancontact",
"total": {
"amountInCents": 4000,
"currency": {
"name": "EUR",
"symbol": "€"
}
},
"taxes": {
"amountInCents": 4000,
"currency": {
"name": "EUR",
"symbol": "€"
}
},
"shipping": {
"amountInCents": 4000,
"currency": {
"name": "EUR",
"symbol": "€"
}
},
"discount": {
"amountInCents": 4000,
"currency": {
"name": "EUR",
"symbol": "€"
}
},
"orderStatus": "paid",
"createdAt": "2020-02-28 15:02:11",
"updatedAt": "2020-02-28 15:02:11",
"shippingMethod": "pickup",
"customerEmailAddress": "johndoe@lochting.com",
"customerFirstName": "John",
"customerLastName": "Doe"
}
]
}
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/orders");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear