stable本次发布有变化全部展示
来自 TikTok Shop 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 Path: /affiliate_partner/202603/cap_order/search
#§2 Method: [POST]
#§3 Function Description
Search the list of affiliate orders of the specified date range from a MCN or known as CAP - Creator Agency partner
§4 Common Parameters
For common parameters, refer to How to call TikTok Shop APIs - Common Parameters
| Properties | Location | Type | Require | Sample | Properties description |
|---|---|---|---|---|---|
| content-type | header | string | Y | application/json | Allowed type: application/json |
| category_asset_cipher | query | string | Y | GCP_XF90igAAAABh00qsWgtvOiGFNqyubMt3 | The partner identifier used in API requests. Retrieve this value by using the Get Authorized Category Assets API. |
§5 Request Query Parameters
| Properties | Type | Require | Sample | Properties description |
|---|---|---|---|---|
| app_key | string | Y | 38abcd | Every single app will have a unique key. Please use the specific key assigned to your app. |
| sign | string | Y | 5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c | Signature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders. |
| timestamp | int | Y | 1623812664 | Unix timestamp GMT (UTC+00:00). This timestamp is used across all API requests. Developers can use this convert to local time. |
| page_token | string | N | 6AsPQsUMvH3RkchNUPPh22NROHkE0D8pmq/N5M1kHYcZmtRyv9aVrNv65W7Q6tFA+7D1ud64MPNz5OaT | The next page token |
| page_size | int | Y | 20 | The default is 20, it must be positive integer, the range is 1-100 |
| category_asset_cipher | string | Y | GCP_XF90igAAAABh00qsWgtvOiGFNqyubMt3 | The partner identifier used in API requests. Retrieve this value by using the Get Authorized Category Assets API. |
§6 Request Body Parameters
| Properties | Type | Require | Sample | Properties description |
|---|---|---|---|---|
| order_id | string | N | 576962796354307765 | Transaction main order ID |
| product_id | string | N | 1729435310697057093 | Unique identifier for Product |
| settle_status | int | N | 1 | Settlement Status of the order. |
| Possible values: |
- "CUSTOMER UNPAID", customer hasn't paid for the orders.
- "PENDING", customers can still return or get a refund for this order. The earnings shown are estimates and waiting for settlement.
- "SETTLED", your earnings have already settled to your account
- "INELIGIBLE", The order has been returned/refunded/canceled by the buyer, and no commission will be settled.
- "FROZEN", Possible fraud has been detected regarding the order. The commission will be unfrozen after the fraud is resolved. | create_time_ge |int |N |1623812664 |Filter orders to show only those that are created on or after the specified date and time. Unix timestamp. Please note that we only support 3 months' data at maximum for each single request. Note:
create_time_geandcreate_time_lttogether constitute the creation time filter condition.create_time_geandcreate_time_ltmust be provided together. If both are not specified, data from the last three months will be queried by default. | create_time_lt |int |N |1623812664 |Unix timestamp representing the end of transactions time range one wants to request |
§7 Request Sample
Query
https://open-api.tiktokglobalshop.com/affiliate_partner/202603/cap_order/search?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c×tamp=1625484268&category_asset_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY&page_token=6AsPQsUMvH3RkchNUPPh22NROHkE0D8pmq/N5M1kHYcZmtRyv9aVrNv65W7Q6tFA+7D1ud64MPNz5OaT&page_size=20
Body
{"order_id":"576962796354307765","product_id":"1729435310697057093","settle_status":1,"create_time_ge":1623812664,"create_time_lt":1623812664}
§8 Response Parameters
| Properties | Type | Sample | Properties description |
|---|---|---|---|
| code | int | 0 | The success or failure status code returned in API response. |
| message | string | Success | The success or failure messages returned in API response. Reasons of failure will be described in the message. |
| request_id | string | 202203070749000101890810281E8C70B7 | Request log |
| data | object | Specific return information | |
| ^sku_orders | []object | Order list | |
| ^^id | string | 576962796354307765 | Transaction main order ID |
| ^^tags | string | test-01 | The customizable ID for each order, used for tracking performance at difference front end modules. |
| ^^create_time | int | 1685548800 | Time and date of order created, UTC+0 timing |
| ^^delivery_time | int | 1685548800 | Time and date order delivered, UTC+0 timing |
| ^^settle_status | string | SETTLED | Settlement Status of the order. |
| Possible values: |
- "CUSTOMER UNPAID", customer hasn't paid for the orders.
- "PENDING", customers can still return or get a refund for this order. The earnings shown are estimates and waiting for settlement.
- "SETTLED", your earnings have already settled to your account
- "INELIGIBLE", The order has been returned/refunded/canceled by the buyer, and no commission will be settled.
- "FROZEN", Possible fraud has been detected regarding the order. The commission will be unfrozen after the fraud is resolved. | ^^sku_id |string |1729478689395213981 |The SKU identifier. | ^^open_collaboration_id |string |7324371012170024705 |The open collaboration identifier associated with the order. | ^^target_collaboration_id |string |7324371012170024705 |The target collaboration identifier associated with the order. | ^^creator_username |string |liuyi_id_creator1jigo |Creator username | ^^product_name |string |Black Hoodie |Product name / description | ^^product_id |string |1729435310697057093 |Unique identifier for Product | ^^price |object | |The SKU selling price information | ^^^amount |string |99 |Price amount for product, such as USD 1000 | ^^^currency |string |USD |Type of currency use | ^^quantity |int |1 |Total sku quantity per order | ^^shop_name |string |xuyann aaaaa |Shop / Seller name | ^^content_type |string |VIDEO |The content format of the creator content through which the order was created. Possible values:
- SHOP
- VIDEO
- LIVE
- PRE_LIVE
- PROMOTION_PAGE
- LINKSHARE | ^^content_id |string |7494337156519332665 |Unique identifier for content | ^^attribution_type |string |Direct |Direct: Orders placed when customers click on links creators shared and buy from the shop. The commission rate is higher than indirect attribution. Indirect: Orders placed from the Recommendations page through links creators shared. The commission rate is lower than direct attribution. | ^^commission_model |string |Tiered commission |Determine order commission be calculated based on fixed commission model or tiering commission model | ^^commission_tier_setting |string |3.0 OR 5.0 |Between Seller & Creator percentagecommission. When tiering commission model applied, will return each tier's commission rate seller set. | ^^standard_commission_rate |int |3000 |Between Seller & Creator percentage commission. Expressed in units of hundredths of a percent formatted as a string. The percent sign % is not included in the string. For example, 3000 represents a 30% commission. | ^^commission_bonus_rate |int |3000 |TTS to creator percentage commission bonus. Expressed in units of hundredths of a percent formatted as a string. The percent sign % is not included in the string. For example, 3000 represents a 30% commission. | ^^shop_ads_commission_rate |int |3000 |Commission on sales that a creator will receive from seller/advertisers purchasing a specific creative. Expressed in units of hundredths of a percent formatted as a string. The percent sign % is not included in the string. For example, 3000 represents a 30% commission. | ^^tap_bonus_commission_rate |int |3000 |The commission reward rate affiliate partners allocate to creators | ^^revenue_sharing_portion_rate |int |3000 |The revenue splitting ratio between creator and agency. Expressed in units of hundredths of a percent formatted as a string. The percent sign % is not included in the string. For example, 3000 represents a 30% commission. | ^^estimated_commission_base |object | |The estimated commission base is the product sale price multiplied by the number of products sold when the order is created. | ^^^amount |string |99 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_standard_commission |object | |Estimated standard commission on sales that a creator will obtain. | ^^^amount |string |99 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_bonus_commission |object | |Estimated commission TTS pays well-performed creators | ^^^amount |string |99 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_shop_ads_commission |object | |Estimated commission on sales that a creator will receive from seller/advertisers purchasing a specific creative | ^^^amount |string |99 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_tap_bonus_commission |object | |Estimated commission bonus which TAP provided to creator | ^^^amount |string |99 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_creator_tax_isr |object | |Only for Mexico creator, the platform collected related revenue taxes on behalf of government based on regulation. | ^^^amount |string |99 |The estimated creator ISR amount. | ^^^currency |string |USD |Type of currency use | ^^estimated_creator_tax_iva |object | |Only for Mexico creator, the platform collected related revenue taxes on behalf of government based on regulation. | ^^^amount |string |99 |The estimated creator IVA amount. | ^^^currency |string |USD |Type of currency use | ^^estimated_creator_tax_pit |object | |Only for VN/TH/PH/ID creators, sellers collect related withholding taxes based on regulation. | ^^^amount |string |99 |The estimated creator PIT amount. | ^^^currency |string |USD |The currency code. | ^^estimated_creator_total_earnings_after_tax |object | |Total after-tax earnings for creator before splitting revenue with agency | ^^^amount |string |99 |The estimated creator earnings amount | ^^^currency |string |USD |The currency code. | ^^estimated_total_agency_earnings |object | |Total after-tax earnings for agency | ^^^amount |string |1 |The estimated agency earnings amount | ^^^currency |string |USD |The currency code. | ^^estimated_agency_isr |object | |Estimated ISR tax amount for Mexico agency | ^^^amount |string |99 |Tax amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_agency_iva |object | |Estimated IVA tax amount for Mexico agency | ^^^amount |string |99 |Tax amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_commission_base |object | |The actual commission base is the product sale price multiplied by the number of products sold, excluding returned and refunded orders. | ^^^amount |string |100 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_standard_commission |object | |Actual commission on sales that a creator will obtain before revenue spliting | ^^^amount |string |100 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_bonus_commission |object | |Actual commission on sales that a creator will receive from seller/advertisers purchasing a specific creative | ^^^amount |string |100 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_shop_ads_commission |object | |actual commission on sales that a creator will receive from seller/advertisers purchasing a specific creative | ^^^amount |string |100 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_tap_bonus_commission |object | |Actual commission bonus which TAP provided to creator | ^^^amount |string |100 |Actual TAP Bonus Commission amount | ^^^currency |string |USD |Type of currency use | ^^actual_creator_tax_isr |object | |Only for Mexico creator, the platform collected related revenue taxes on behalf of government based on regulation. | ^^^amount |string |1 |The actual creator ISR amount. | ^^^currency |string |USD |The currency code. | ^^actual_creator_tax_iva |object | |Only for Mexico creator, the platform collected related revenue taxes on behalf of government based on regulation. | ^^^amount |string |1 |The actual creator IVA amount. | ^^^currency |string |USD |The currency code. | ^^actual_creator_tax_pit |object | |Only for VN/TH/PH/ID creators, sellers collected related withholding taxes based on regulation. | ^^^amount |string |1 |The actual creator PIT amount. | ^^^currency |string |USD |The currency code. | ^^actual_creator_total_earnings_after_tax |object | |Total after-tax earnings for creator before splitting revenue with agency | ^^^amount |string |1 |The actual creator's earnings amount | ^^^currency |string |USD |The currency code. | ^^actual_total_agency_commission |object | |Total after-tax earnings for agency | ^^^amount |string |1 |The actual agency earnings amount | ^^^currency |string |USD |The currency code. | ^^actual_agency_isr |object | |The actual ISR tax amount for Mexico agency | ^^^amount |string |99 |Tax amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_agency_iva |object | |The actual IVA tax amount for Mexico agency | ^^^amount |string |99 |Tax amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^fully_return |string |Yes |Return “Yes” when this sku is fully returned/refunded. No commission given when full return/refund | ^^settlement_time |int |1775548800 |Time and date of order commission settled. UTC+0 Timing | ^^last_update_time |int |1685548800 |The time when the record was last updated. | ^^is_carousel |bool |false |Carousel content may involve a commission rate discount. Return [True] when orders is attributed to carousel content | ^next_page_token |string |6AsPQsUMvH3RkchNUPPh22NROHkE0D8pmq/N5M1kHYcZmtRyv9aVrNv65W7Q6tFA+7D1ud64MPNz5OaT |Cursor used for searching for more information | ^total_count |int |100 |The total number of sku orders |
§9 Response Sample
{"code":0,"data":{"sku_orders":[{"id":"576962796354307765","tags":"test-01","create_time":1685548800,"delivery_time":1685548800,"settle_status":"SETTLED","sku_id":"1729478689395213981","open_collaboration_id":"7324371012170024705","target_collaboration_id":"7324371012170024705","creator_username":"liuyi_id_creator1jigo","product_name":"Black Hoodie","product_id":"1729435310697057093","price":{"amount":"99","currency":"USD"},"quantity":1,"shop_name":"xuyann aaaaa","content_type":"VIDEO","content_id":"7494337156519332665","attribution_type":"Direct","commission_model":"Tiered commission","commission_tier_setting":"3.0 OR 5.0","standard_commission_rate":3000,"commission_bonus_rate":3000,"shop_ads_commission_rate":3000,"tap_bonus_commission_rate":3000,"revenue_sharing_portion_rate":3000,"estimated_commission_base":{"amount":"99","currency":"USD"},"estimated_standard_commission":{"amount":"99","currency":"USD"},"estimated_bonus_commission":{"amount":"99","currency":"USD"},"estimated_shop_ads_commission":{"amount":"99","currency":"USD"},"estimated_tap_bonus_commission":{"amount":"99","currency":"USD"},"estimated_creator_tax_isr":{"amount":"99","currency":"USD"},"estimated_creator_tax_iva":{"amount":"99","currency":"USD"},"estimated_creator_tax_pit":{"amount":"99","currency":"USD"},"estimated_creator_total_earnings_after_tax":{"amount":"99","currency":"USD"},"estimated_total_agency_earnings":{"amount":"1","currency":"USD"},"estimated_agency_isr":{"amount":"99","currency":"USD"},"estimated_agency_iva":{"amount":"99","currency":"USD"},"actual_commission_base":{"amount":"100","currency":"USD"},"actual_standard_commission":{"amount":"100","currency":"USD"},"actual_bonus_commission":{"amount":"100","currency":"USD"},"actual_shop_ads_commission":{"amount":"100","currency":"USD"},"actual_tap_bonus_commission":{"amount":"100","currency":"USD"},"actual_creator_tax_isr":{"amount":"1","currency":"USD"},"actual_creator_tax_iva":{"amount":"1","currency":"USD"},"actual_creator_tax_pit":{"amount":"1","currency":"USD"},"actual_creator_total_earnings_after_tax":{"amount":"1","currency":"USD"},"actual_total_agency_commission":{"amount":"1","currency":"USD"},"actual_agency_isr":{"amount":"99","currency":"USD"},"actual_agency_iva":{"amount":"99","currency":"USD"},"fully_return":"Yes","settlement_time":1775548800,"last_update_time":1685548800,"is_carousel":false}],"next_page_token":"6AsPQsUMvH3RkchNUPPh22NROHkE0D8pmq/N5M1kHYcZmtRyv9aVrNv65W7Q6tFA+7D1ud64MPNz5OaT","total_count":100},"message":"Success","request_id":"202203070749000101890810281E8C70B7"}
§10 Error Code
For common error codes, refer to How to call TikTok Shop APIs - Common Error Code
| Code | Message |
|---|---|
| 36009003 | Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support. |
