Query parameters
-
sort string
example :to sort the orders by id_order (-id_order: descending, id_order: ascending)
Values are
id_order
,id_order_external
,total_paid
, ordate_order
. -
filter[order_search] string
retrieve orders by id_order, id_order_external.
-
filter[id_ambassador] integer
Filter by id_ambassador in attribution ambassador
-
filter[attribution] string
Filter assigned orders
Values are
assigned
,affiliation_assigned
, orconversation_assigned
. -
filter[last_status] string
Filter by last_status
Values are
OK
,OK_DELAY
,E-BOOKING
,CANCELLED
,RETURNED
,PENDING
, orFULFILLED
. -
filter[type] string
Filter by order type
Values are
MAG
,STORE
,WEB
, or.
-
filter[id_ambassador_post] integer
Filter orders by linked ambassador post
-
filter[id_chatroom] integer
Filter orders by linked chatroom
-
filter[id_buyer] integer
Filter orders by linked buyer
-
page integer
page number
-
per_page integer
number of items per page
GET /manager/orders
curl \
-X GET https://domain.tld/api/v2/manager/orders \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"current_page": 42,
"data": [
{
"id_order": 42,
"id_order_external": "string",
"total_amount": 42.0,
"total_paid": 42.0,
"total_ws": 42.0,
"id_popliste": 42,
"source": "string",
"last_status": "string",
"ambassador": {
"id_ambassador": 42,
"image": "string",
"firstname": "string",
"lastname": "string",
"username": "string",
"email": "string",
"email_tmp": "string",
"active": 42,
"status": 42,
"online": true,
"last_action_date": "2024-05-04T09:42:00+00:00",
"customer_id": "string",
"anonymized": true
},
"id_meeting": 42,
"id_meeting_external": "string",
"customer_id": "string",
"order_info": "string",
"buyer": {
"id_ambassador": 42,
"image": "string",
"firstname": "string",
"lastname": "string",
"username": "string",
"email": "string",
"email_tmp": "string",
"active": 42,
"status": 42,
"online": true,
"last_action_date": "2024-05-04T09:42:00+00:00",
"customer_id": "string",
"anonymized": true
},
"currency": "string",
"date_order": "string",
"type": "string",
"id_chat_segment": 42,
"ambassador_chat": {
"id_ambassador": 42,
"image": "string",
"firstname": "string",
"lastname": "string",
"username": "string",
"email": "string",
"email_tmp": "string",
"active": 42,
"status": 42,
"online": true,
"last_action_date": "2024-05-04T09:42:00+00:00",
"customer_id": "string",
"anonymized": true
},
"id_chatroom": 42,
"date_insert": "string",
"date_update": "string"
}
],
"first_page_url": "string",
"from": 42,
"last_page": 42,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 42,
"prev_page_url": "string",
"to": 42,
"total": 42
}
Response examples (401)
{
"message": "Unauthorized."
}