Update on Endpoint Order Management:
With this latest update, our endpoint management undergoes a transformative evolution, emphasizing a seamless and enriched developer experience.
We have introduced four new endpoints specifically for order handling, covering both DBS and DBM functionalities, including reverse & refund and cancel operations.
New endpoints:
As it is currently done in the seller center, when an order is transitioned to 'Pack,' it is necessary to add the PL provider and the tracking number of the order. Therefore, in the API, it is necessary to send the same parameters:
{ "order_id": "3241804772774", "order_item_id_list": [3241804872774], "shipping_provider_code": "DBSSP100000358", "tracking_number":"3184279271540910191" }
{ "errorMessage": "", "hasSystemError": false, "errorCode": "", "data": [ { "order_id": 3241804772774, "order_item_id": 3241804872774, "baseErrorList": null, "status": "SUCCESS", "package_id": "FP000611673001", "label_url": null } ], "errors": [] }
Seller center:
DBM is a comprehensive logistics offering that allows Miravia to manage your online fulfillment, shipping_Provider_Code" and "tracking_Number" is not need it.
Request:
{ "order_id": "123456789", "order_item_id_list": ["12345", "56789"] }
Response:
{ "data": [ { "order_item_id": 3633109072774, "package_id": "FP000612730016", "order_id": 3633108972774, "status": "SUCCESS" }, { "order_item_id": 3633109172774, "package_id": "FP000612730016", "order_id": 3633108972774, "status": "SUCCESS" } ], "errors": [], "code": "0", "request_id": "21039eb717091167550512284" }
{ "order_id": "3633108972774", "cancel_input_data_list": [ { "order_item_id": "3633109072774", "reason_id": "18003" } ] }
Response:
"data": [ { "order_item_id": 3633109072774, "order_id": 3633108972774, "status": "SUCCESS" } ], "errors": [], "code": "0", "request_id": "21039eb717091168351882290" }
Parameters:
Request:
{ "order_id": "3633108672774", "reject_input_data_list": [ { "order_item_id": "3633108872774", "comment": "comment to let buyer know about the rejections", "reason_id": "1007", "image_list": [ { "image_name": "image name", "image_url": "https://citizengo.org/sites/default/files/images/test_3.png" } ] } ] }
Response:
{ "data": [ { "refund_amount": 47, "order_id": 3633108972774, "status": "SUCCESS" } ], "errors": [], "code": "0", "request_id": "21039eb717091171680592404" }
Seller Side:
Used for responsed a buyer cancellation request. After Buyer send a cancellation request, seller can use this call to response.
Parameters:
Request:
{ "order_id": "3291401072774", "reject_input_data_list": [ { "order_item_id": 3291401172774, "comment": "No ok", "reason_id": 1021, "image_list":[ { "image_name":"test", "image_url": "https://citizengo.org/sites/default/files/images/test_3.png" } ] } ] }
Response:
{ "errorMessage": "", "hasSystemError": false, "errorCode": "", "data": [ { "order_Id": 3291401072774, "order_Item_Id": null, "baseErrorList": null, "status": "SUCCESS", "refundAmount": null } ], "errors": [] }
Parameters:
Request:
{ "order_id": "3633108972774", "accept_input_data_list": [ { "refund_amount": "47.5", "order_item": "3633109172774" } ] }
Response:
{ "data": [ { "refund_amount": 47, "order_id": 3633108972774, "status": "SUCCESS" } ], "errors": [], "code": "0", "request_id": "21039eb717091171680592404" }
Parameters:
{ "order_Id": "3246302572774", "order_Item_Id_List": [3246302672774], "refundAmount": "19.46" }
{ "errorMessage": "", "hasSystemError": false, "errorCode": "", "data": [ { "order_Id": 3246302572774, "order_Item_Id": 3246302672774, "baseErrorList": null, "status": "SUCCESS", "refundAmount": 19.46 } ], "errors": [] }