An FBT multi-channel fulfillment (MCF) order may be split into one or more consign orders for fulfillment. Use this API to cancel the MCF order or selected consign orders by providing the mcf_order_id. To cancel selected consign orders, provide their consign order IDs. You can retrieve IDs that have already been assigned by calling the Get FBT MCF Order Status API; use IDs returned while the target consign orders are still in a cancellable pre-shipment state.
Cancellation is rejected for target consign orders that have reached SHIPPED, HANDOVER, COMPLETED, or a shipping-exception state such as LOST, DAMAGE, RETURNED, or SCRAP.
After the request, match the target consign order IDs against this API’s response. A returned status of CLOSED means that the consign order has been canceled.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The MCF order ID as a numeric string.
The consign orders to cancel. Omit this field to cancel all consign orders in the specified MCF order.
object
The consign order ID as a numeric string without the OBF prefix.
Example
{ "mcf_order_id": "7136104329798256386", "consign_orders": [ { "id": "7136104329798256386" } ]}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The mcf order information and related consign order status.
object
The corresponding order ID in your OMS.
A unique ID that identifies different MCF orders
All consign orders in the MCF order and their current statuses after the cancellation request. Match the requested consign order IDs to the returned items; a status of CLOSED means that the consign order has been canceled.
object
The consign order ID, returned as a numeric string without the OBF prefix.
The current status of this consign order. In a cancellation response, CLOSED means that the consign order has been canceled.
Possible Status Enumerations
- PENDING - Order is pending warehouse processing
- HANDLE_BY_WAREHOUSE - Order is being processed by the warehouse
- SHIPPED - Order has been shipped out from the warehouse
- HANDOVER - Order has been received by the logistics carrier and is in transit
- CLOSED - Order has been canceled
- LOST - Order is lost
- DAMAGE - Order is damaged
- COMPLETED - Order has been completed
- ABNORMAL - There is an issue related to this order and cannot be fulfilled
- RETURNED - Order has been returned
- SCRAP - Order has been scrapped
- UNKNOWN - Order status is unknown
Example
{ "code": 0, "data": { "mcf_order": { "external_order_id": "shopify7136104329798256386", "mcf_order_id": "7136104329798256386", "consign_orders": [ { "id": "1234", "status": "CLOSED" } ] } }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}