Get Orders by Date Range
This API endpoint allows developers to retrieve a list of orders within a specific date range. The API requires authentication through an access token, and the input parameters are the 'from' and 'to' dates in the format of YYYY-MM-DD.
Endpoint
GET /api/getOrdersByDateRange?from={YYYY-MM-DD}&to={YYYY-MM-DD}
Request Headers
Header | Required | Description |
---|---|---|
Authorization | Yes | Bearer token provided by Authentication Endpoint |
Accept | Yes | It must be set to application/JSON. |
Content-Type | Yes | It must be set to application/JSON. |
{
"Authorization": "Bearer [id_token]",
"Accept": "application/json",
"Content-Type": "application/json"
}
Query Parameters
Parameter | Value Type | Required | Description |
---|---|---|---|
from | String (YYYY-MM-DD) | Yes | The start date for the date range to retrieve orders from |
to | String (YYYY-MM-DD) | Yes | The end date for the date range to retrieve orders from |
Response Body:
The response will be an array of JSON objects that includes all relevant information for the orders retrieved within the specified date range. For more details, click here.
Name | Type | Description |
---|---|---|
orderId | Integer | The unique identifier of the order |
orderNumber | String | The unique order number |
orderDate | Date | The date and time the order was placed, in Unix timestamp |
orderAmount | Float | The total amount of the order, in the currency |
paylinkFees | Float | The fees charged by Paylink, if applicable |
paylinkVat | Float | The VAT charged by Paylink, if applicable |
note | String | A note associated with the order |
clientName | String | The name of the client who placed the order |
clientMobile | String | The phone number of the client who placed the order |
isReconciled | Boolean | Indicates whether the order has been reconciled |
settlementNumber | String | The settlement number, if applicable |
settlementBank | String | The bank account number for the settlement, if applicable |
settlementAmount | Float | The amount settled, if applicable |
settlementIban | String | The IBAN for the settlement, if applicable |
Error Responses
- Status Code: 401 Unauthorized
- Status Code: 404 Not Found
Updated 7 months ago