POST
/widget/orders
curl \
--request POST 'https://domain.tld/api/v2/widget/orders' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"id_popliste":42,"order_id":"string","source":"string","total_amount":42.0,"products":[{"id_product":"string","price":42.0,"name":"string","qty":42.0}],"id_affiliate":42,"id_ambassador_post":42,"order_status":"string","total_ws":42.0,"order_type":"string"}'
Request examples
{
"id_popliste": 42,
"order_id": "string",
"source": "string",
"total_amount": 42.0,
"products": [
{
"id_product": "string",
"price": 42.0,
"name": "string",
"qty": 42.0
}
],
"id_affiliate": 42,
"id_ambassador_post": 42,
"order_status": "string",
"total_ws": 42.0,
"order_type": "string"
}
Response examples (201)
{
"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",
"id_meeting": 42,
"id_meeting_external": "string",
"customer_id": "string",
"order_info": "string",
"currency": "string",
"date_order": "string",
"type": "string",
"id_chat_segment": 42,
"id_chatroom": 42,
"date_insert": "string",
"date_update": "string",
"assignment": "conversation_assigned"
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}