This endpoint may be used to add the user remark into the order history.
For example the payment gateway may give the payment identification at its side, or
add the remarks during the process of payment or order processing. The remarks
are displayed in administration, in the “History” tab, in the order detail,
together with main system changes of the order.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/orders/{code}/history
- https://api.myshoptet.comhttps://api.myshoptet.com/api/orders/{code}/history
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X POST \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/orders/2018000012/history \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"text": "Transported from Jičín, will be here on Wednesday",
"type": "comment"
}
}'Response
{ "data": {}, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }