Use this API to check whether a seller or buyer can initiate refund-only, return-and-refund, or cancellation requests for an order. The response groups eligibility by SKU, order line item, and aftersale request type.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The unique identifier for a TikTok Shop order.
Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
The type of user you would like to check aftersale options for. Default: SELLER Possible values:
- SELLER
- BUYER
Optional. Specifies which request types to query. If omitted, the API returns all request types currently available for the specified initiator. Possible values:
-CANCEL
-REFUND
-RETURN_AND_REFUND
Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The eligible aftersale options for a given SKU.
object
SKU ID.
Eligibility results for order line items in this SKU, grouped by aftersale request type. A request type can include separate entries for eligible and ineligible order line items. Eligible entries can include available_reason_names, while ineligible entries include ineligible_code and ineligible_reason.
object
Aftersale request type. Possible values:
CANCELREFUNDRETURN_AND_REFUND
Specifies the order line IDs. Note: This is a legacy field for new integrations use order_line_list instead.
Indicates whether the order lines in this entry are eligible for the entry’s aftersale request type:
true: The order lines are eligible for the request type.false: The order lines are ineligible for the request type.
The reason code for an ineligible aftersale request.
The reason for an ineligible aftersale request.
A list of reason names that can be used when creating a follow-up aftersale request.
Specifies the order line items. Note: This field is completely backward compatible with the previous order_line_items_ids field.
object
The corresponding order line ID
The sub-order-line ID inside a bundle product
- Required for bundle products
- Not required for non-bundle products
Example
{ "data": { "sku_eligibility": [ { "line_item_eligibility": [ { "request_type": "CANCEL" } ] } ] }}