Errors and behaviors

This section summarizes the common validation behaviors and error responses across sandbox APIs. Each entry lists the expected HTTP status, error code, and notes on when the condition occurs.

ContextConditionHTTPS codeError codeMessages/Notes
Create customer orderMissing or mismatched sellerOrderId or customerOrderNo400INVALID_SELLER_ORDER_ID or SELLER_ORDER_ID_CUSTOMER_ORDER_NO_SAMEBoth identifiers must match if provided; at least one is required.
Create customer orderRequest validation failure400INVALID_MCS_REQUESTValidation strategy: CREATE-FULFILLMENT-MOCKER-REQUEST-VALIDATION.
Cancel customer orderNeither sellerOrderId nor customerOrderNo provided400INVALID_WFS_REQUESTProvide at least one order identifier.
Cancel customer orderRequest validation failure400INVALID_WFS_REQUESTValidation strategy: CANCEL-FULFILLMENT-MOCKER-REQUEST-VALIDATION.
Get fulfillment order statusNo associated sales channel found400INVALID_WFS_REQUESTValidation strategy: GET-STATUS-V1-MOCKER-REQUEST-VALIDATION.
Get fulfillment order statusOrder not found400OS_NOT_FOUND_ERRORReturned via exception handling when the order does not exist.
Fetch delivery promiseValidation or internal errors400 / 500INVALID_MCS_REQUEST or WFS_INTERNAL_SERVER_ERRORPartial success yields 206 PARTIAL_SUCCESS; full success returns 202 SUCCESS.
All APIsUnhandled exceptions500WFS_INTERNAL_SERVER_ERRORInternal sandbox exception.

Create return order errors

HTTPSCodeFieldMessageDescription
400INVALID_WFS_REQUESTmartIdInvalid martIdmartId is missing or empty in the request header
400400.WFS.100skuInvalid skuSKU does not exist in the original order
400400itemDetail.skuOrder status not eligible for returnsOriginal order line is not in DELIVERED status
400500.RETURN_ORDER_SERVICE.400itemDetailitemDetail must not be nullitemDetail is missing in orderItems
400500.OS_SERVICE.200Order does not existsellerOrderId does not match any existing order
400500.509skuRequested quantity is not availableQuantity is ≤ 0 or exceeds ordered quantity
500WFS_INTERNAL_SERVER_ERRORInternal server errorUnhandled sandbox exception

Get return order errors

HTTPSCodeFieldMessageDescription
400INVALID_WFS_REQUESTmartIdInvalid martIdmartId is missing or empty
400500.OS_SERVICE.200Order does not existsellerOrderId does not match any order, or returnOrderId not found
500WFS_INTERNAL_SERVER_ERRORInternal server errorUnhandled sandbox exception

Cancel return order errors

HTTPSCodeFieldMessageDescription
400500.OS_SERVICE.200Order does not existreturnOrderId not found
400400Return order cannot be cancelledNo lines are in RETURN_INITIATED status
500WFS_INTERNAL_SERVER_ERRORInternal server errorUnhandled sandbox exception