Skip to content

Search Affiliate Orders by Creator

POST
/affiliate_creator/202505/orders/trace/search

Retrieves affiliate orders attributed to the creator represented by the current access token. Results can provide order status and timestamps, together with SKU-level product, shop, content, trace, quantity, price, and estimated or actual commission details.

page_token
string

An opaque token used to retrieve the next page of a paginated result set. Retrieve this value from the result of the next_page_token from a previous response. It is not needed for the first page.

page_size
required
integer format: int64
>= 1 <= 100

The number of results to return per page. Valid range: 1 to 100.

Media typeapplication/json
object
time_ge
required

The inclusive start of the time range for the selected time_type, as a Unix timestamp in milliseconds. Orders with timestamps greater than or equal to time_ge and less than time_lt are included.

integer format: int64
time_lt
required

The exclusive end of the time range for the selected time_type, as a Unix timestamp in milliseconds. Orders with timestamps greater than or equal to time_ge and less than time_lt are included.

integer format: int64
time_type

Specifies the type of timestamp to filter the orders by. The query time range (time_ge and time_lt) will be applied to the selected time type. Possible values:

  • PAY_TIME: Filter based on the order payment time.
  • DELIVERY_TIME: Filter based on the order delivery/shipment time.
  • SETTLE_TIME: Filter based on the order settlement time.
  • CREATE_TIME (default): Filter based on the order creation time.
string
Allowed values: PAY_TIME DELIVERY_TIME SETTLE_TIME CREATE_TIME
Example
{
"time_ge": 1719807456000,
"time_lt": 1728443155000,
"time_type": "PAY_TIME"
}

Success

Media typeapplication/json
object
code

Status code; 0 means success.

integer format: int64
message

Success or failure message.

string
request_id

Request log ID.

string
data
object
orders

The order resource.

Array<object>
object
id

The order identifier.

integer format: int64
status

The current status of the order. Possible values:

  • UNSPECIFIED: The status is undefined and may be updated later.
  • ORDERED: The order has been placed, but commission has not been settled. The estimated commission is available.
  • SETTLED: The commission has been settled. Actual commission values are populated when the corresponding settled amounts are available.
  • REFUNDED: The order was returned, refunded, or canceled by the buyer; actual commission and actual commission base amounts are returned as localized zero values.
  • FROZEN: Possible fraud was detected. Commission remains frozen until the issue is resolved.
  • DEDUCTED: An additional deduction was made from the balance account.

For statuses other than SETTLED or REFUNDED, actual commission values can be empty. Bonus, shop ads, and creator commission reward amounts are populated only when the corresponding commission data exists; their availability is not determined by order status alone.

string
Allowed values: UNSPECIFIED ORDERED SETTLED REFUNDED FROZEN DEDUCTED
skus

A list of SKUs associated with the order.

Array<object>
object
id

The SKU identifier.

string
product_id

The product identifier.

string
price

An object representing the localized price of the product.

object
amount

The SKU price in major units of the currency specified by currency, represented as a decimal string.

string
currency

The price currency code.

string
quantity

The quantity of this SKU in the order.

integer format: int64
commission_rate

The commission rate associated with the collaboration, in hundredths of a percent. The value does not include a percent sign. For example, 3000 represents 30%.

integer format: int64
estimated_commission_base

An object representing the estimated base commission at the time of order creation.

object
amount

The estimated commission base as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code.

string
currency

The currency code.

string
actual_commission

An object representing the actual creator commission. Its amount includes the components also reported in actual_bonus_commission and actual_creator_commission_reward_fee. The actual_shop_ads_commission amount is separate and is not included.

object
amount

The actual commission amount as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code. An empty string means that no actual commission value is available.

string
currency

The currency code.

string
shop_ads_commission_rate

The commission rate received by a creator for a sale associated with a specific piece of content, in hundredths of a percent. The value does not include a percent sign. For example, 3000 represents 30%.

integer format: int64
commission_bonus_rate

The commission bonus rate associated with the collaboration, in hundredths of a percent. The value does not include a percent sign. For example, 3000 represents 30%.

integer format: int64
product_name

The product name in the TikTok Shop.

string
shop_name

The name of the TIkTok Shop in which the product is offered for sale.

string
returned_quantity

The returned quantity of this SKU in the order.

integer format: int64
refunded_quantity

The refunded quantity of this SKU in the order.

integer format: int64
campaign_id

The campaign identifier associated with the order.

string
actual_commission_base

An object representing the actual commission base, calculated by multiplying the product sale price by the number of products sold, subtracting returned and refunded orders.

object
amount

The actual commission base as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code. For SETTLED orders, this contains the actual base when available; for REFUNDED orders, it is a localized zero value; for other statuses, it is an empty string.

string
currency

The currency code.

string
actual_shop_ads_commission

An object representing the actual shop ads commission, calculated by multiplying the commission base by the shop_ads_commission_rate.

object
amount

When available, the actual shop ads commission amount as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code.

string
currency

The currency code.

string
estimated_shop_ads_commission

An object representing the estimated shop ads commission, calculated by multiplying the estimated commission base by the shop_ads_commission_rate

object
amount

The estimated shop ads commission amount as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code.

string
currency

The currency code.

string
estimated_bonus_commission

An object representing the estimated bonus commission, calculated by multiplying the estimated commission base by the commission bonus rate.

object
amount

When available, the estimated bonus commission amount as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code.

string
currency

The currency code.

string
delivery_time

Time and date order delivered, UTC+0 timing

integer format: int64
creator_commission_reward_rate

The commission reward rate that affiliate partners allocate to creators, in hundredths of a percent. The value does not include a percent sign. For example, 1000 represents 10%.

integer format: int64
estimated_creator_commission_reward_fee

Estimated creator commission reward fee.

object
amount

When available, the estimated creator commission reward fee as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code.

string
currency

The currency code.

string
actual_creator_commission_reward_fee

Actual creator commission reward fee.

object
amount

When available, the actual creator commission reward fee as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code.

string
currency

The currency code.

string
content_type

The content format of the creator content through which the order was created. Possible values:

  • SHOP
  • VIDEO
  • LIVE
  • PRE_LIVE
  • PROMOTION_PAGE
  • LINKSHARE
string
Allowed values: SHOP VIDEO LIVE PRE_LIVE PROMOTION_PAGE LINKSHARE
content_id

The content identifier for the creator content through which the order was created.

string
trace

Extra information for tracing purposes.

object
id

When trace.type is GENERAL, this is the event_id embedded in the general sharing link. When trace.type is SPECIFIC, this is the publisher_id supplied when generating the specific-publisher sharing link.

string
type

For the orders coming from the sharing links for specific publishers, the value is SPECIFIC; for the orders coming from the general sharing links, the value is GENERAL.

string
estimated_commission

An object representing the estimated creator commission. Its amount includes the components also reported in estimated_bonus_commission and estimated_creator_commission_reward_fee. The estimated_shop_ads_commission amount is separate and is not included.

object
amount

The estimated commission amount as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code.

string
currency

The currency code.

string
actual_bonus_commission

An object representing the actual bonus commission, calculated by multiplying the actual commission base by the commission bonus rate.

object
amount

The actual bonus commission amount as a localized display string. It may include a currency symbol or code and region-specific decimal and grouping separators; see the sibling currency field for the currency code.

string
currency

The currency code.

string
create_time

Time and date of order created, UTC+0 timing

integer format: int64
delivery_time

Time and date order delivered, UTC+0 timing

integer format: int64
next_page_token

An opaque token used to retrieve the next page of a paginated result set.

string
total_count

Total count of orders in the response.

integer format: int64
Example
{
"code": 0,
"data": {
"orders": [
{
"id": 789078671231123100,
"status": "SETTLED",
"skus": [
{
"id": "1729793769377925388",
"product_id": "1729793769377859852",
"price": {
"amount": "Rp9.900",
"currency": "IDR"
},
"quantity": 2,
"commission_rate": 1000,
"estimated_commission_base": {
"amount": "Rp9.900",
"currency": "IDR"
},
"actual_commission": {
"amount": "Rp1.900",
"currency": "IDR"
},
"shop_ads_commission_rate": 5000,
"commission_bonus_rate": 1000,
"product_name": "black suit",
"shop_name": "TestCase idl2l",
"returned_quantity": 1,
"refunded_quantity": 0,
"campaign_id": "73661290629",
"actual_commission_base": {
"amount": "Rp9.900",
"currency": "IDR"
},
"actual_shop_ads_commission": {
"amount": "Rp5.000",
"currency": "IDR"
},
"estimated_shop_ads_commission": {
"amount": "Rp8.000",
"currency": "IDR"
},
"estimated_bonus_commission": {
"amount": "Rp1.00",
"currency": "IDR"
},
"delivery_time": 1685548800,
"creator_commission_reward_rate": 1000,
"estimated_creator_commission_reward_fee": {
"amount": "250",
"currency": "IDR"
},
"actual_creator_commission_reward_fee": {
"amount": "100",
"currency": "IDR"
},
"content_type": "LIVE",
"content_id": "7493990579714164574",
"trace": {
"id": "15678763",
"type": "SPECIFIC"
},
"estimated_commission": {
"amount": "1",
"currency": "USD"
},
"actual_bonus_commission": {
"amount": "1",
"currency": "USD"
}
}
],
"create_time": 1685548800,
"delivery_time": 1685548800
}
],
"next_page_token": "b2Zmc2V0PTEw",
"total_count": 10
},
"message": "Success",
"request_id": "202203070749000101890810281E8C70B7"
}