Order Reject
PUT
{{api_url}}/shop/amazontoday/order/reject?amazon_today_order_id=111-1111111-1111112&order_reject_reason=OUT_OF_STOCKThis call rejects an Amazon Today order. One of the following three query params are required:
- amazon_today_order_id
- amazon_today_shipment_id
- infiplex_order_id
Valid order_reject_reason values:
- OUT_OF_STOCK
If no matching order is found, nothing will be returned
Authorization
Bearer token, sent in the Authorization header. Inherited from the collection.
Query Parameters
| Key | Value | Description |
|---|---|---|
amazon_today_shipment_id optional | Rejects by Amazon Today Shipment ID | |
infiplex_order_id optional | Rejects by InfiPlex Order ID | |
amazon_today_order_id | 111-1111111-1111112 | |
order_reject_reason | OUT_OF_STOCK |
Example Request
curl --location --request PUT '{{api_url}}/shop/amazontoday/order/reject?amazon_today_order_id=111-1111111-1111112&order_reject_reason=OUT_OF_STOCK' \
--header 'Authorization: Bearer {{auth_token}}'Example Responses
Order Reject
Request
curl --location --request PUT 'https://example.com/api/admin/shop/amazontoday/order/reject?amazon_today_order_id=111-1111111-1110650&order_reject_reason=OUT_OF_STOCK' \
--header 'Authorization: Bearer YOUR_API_KEY'Response
{
"info": "Order rejection confirmed"
}
