This API is to be used by you to acknowledge the unique order numbers received. We would
expect this API to be invoked immediately after successfully receiving and processing the
response of the order feed API when ‘new’ orders are received. The result of this API will
remove these orders from this list of orders considered ‘new’ to you when you invoke the
order feed API.
Parameters
| Name | Notes |
| supplier_id | (required) your id, passed to you from the authenticate api, to confirm who you are. |
| order_arr | (required) list of order numbers to acknowledge. |
| mode | (required) either "Test", or "Live", the expected mode the supplier account is in. |
Please note that someone viewing the order in Partner Central via the order module, will also
acknowledge the order.
Example Request
https://supplier.rstore.com/rest/order_ack.api?supplier_id=1
With JSON Content:
{
"order_arr":["W0000009-1D-S","W0000008-1D-S"],
"mode": "Test"
}
With Cookie Header:
Cookie: "ksi=abcdefghijklmnopqrstuvwxyz123"
Response
On Success:
{
"order_arr":["W0000009-1D-S","W0000008-1D-S"]
}
On Missing Cookie, or Not Logged In
HTTP/1.0 401 Not Authenticated
User not authenticated
On Invalid Json Provided:
HTTP/1.0 400 Invalid Request
Invalid json provided
On Missing/Incorrect Supplier Parameter
HTTP/1.0 400 Invalid Request
User not authorised to acknowledge this supplier's orders
On Invalid Supplier Parameter
HTTP/1.0 400 Invalid Request
No supplier found with id 123
On Expected Mode being "Live", but Supplier Account is "Test"
HTTP/1.0 400 Invalid Request
Supplier is currently in Test Mode, but expected Live Mode
On Expected Mode being "Test", but Supplier Account is "Live"
HTTP/1.0 400 Invalid Request
Supplier is currently in Live Mode, but expected Test Mode
Comments
0 comments
Article is closed for comments.