Decathlon - Get Orders - In progress
The purpose of this page is to describe in details how we will download orders.
TBAdd more info once the requirements are clear
API Call: GET /orders/{order_id}/
API Docs: https://omcdev.playstg.net/api-swagger-docs/
TBD:
- Order id is required parameter - for our case this will not work, waiting clarification from Decathlon\
- Order statuses ( there are only numbers without explanations)? Are we going to download only already paid orders, because there is no info regarding payment status.
- We do not receive qty for a product in orders.
- If we would want to create a payment?
Example Response:
{
"order_id": "string",
"tracking_number": "string",
"order_details": "string",
"status": 0,
"order_status": "string",
"id": 0,
"customer_info": "string",
"received_at": "2022-07-06T13:01:06.183Z",
"partner_name": "string",
"marketplace_order_id": "string",
"products": [
{
"id": "string",
"name": "string",
"vat": "string",
"is_discontinued": true,
"cost_price": "string",
"selling_price": "string",
"shipping_price": "string"
}
],
"price_data": "string",
"prev_status": 0,
"prev_order_status": "string",
"currency_symbol": "string"
}
Mapping: we need to store the order information into Hemi as follow:
Integration Field | Integration Notes | Integration required | Hemi Mapping | Hemi Notes | |
---|---|---|---|---|---|
order_id |
string |
maxLength: 20
minLength: 1 | Yes * ??? TBD | | |
| tracking_number
| | string
maxLength: 100 | | | |
| order_details
| | string
readOnly: true | | | |
| status
| | integer
Enum:
Array [ 36 ] | | | |
| order_status
| | string
minLength: 1 | | | |
| id
| | integer
readOnly: true | | | |
| customer_info
| | string
readOnly: true | | | |
| received_at
| | string($date-time)
readOnly: true | | | |
| partner_name
| | string
readOnly: true | | | |
| marketplace_order_id
| | string
maxLength: 255
x-nullable: true | | | |
| products
| | | | | |
| | id
| string
maxLength: 18
minLength: 1 | | | |
| | name
| string
maxLength: 500
minLength: 1 | | | |
| | vat
| string($decimal) | | | |
| | is_discontinued
| boolean | | | |
| | cost_price
| string($decimal) | | | |
| | selling_price
| string($decimal) | | | |
| | shipping_price
| string($decimal) | | | |
| price_data
| | string
readOnly: true | | | |
| prev_status
| | integer
statusEnum: | TBD | | |
| prev_order_status
| | string
minLength: 1 | TBD | | |
| currency_symbol
| | string
readOnly: true | | | |
Error example:
{
"detail": "Not found."
}
But this will be the case only if we specify the order id… In our case we will not specify it… TBD