stable本次发布有变化全部展示
来自 TikTok Shop 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 Path: /affiliate_partner/202603/orders/search
#§2 Method: [POST]
#§3 Function Description
TAP can use this API to retrieve a list of affiliate orders and track the affiliate conversions.
§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 |
|---|---|---|---|---|
| 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_ge and create_time_lt together constitute the creation time filter condition. | ||||
create_time_ge and create_time_lt must 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 | Filter orders to show only those that are created before the specified date and time. Unix timestamp. |
Refer to notes in create_time_ge for more usage information. | ||||
| campaign_id | string | N | 7324371012170024705 | Filter orders by a TAP campaign using its identifier. |
§7 Request Sample
Query
https://open-api.tiktokglobalshop.com/affiliate_partner/202603/orders/search?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c×tamp=1625484268&category_asset_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY&page_token=6AsPQsUMvH3RkchNUPPh22NROHkE0D8pmq/N5M1kHYcZmtRyv9aVrNv65W7Q6tFA+7D1ud64MPNz5OaT&page_size=20
Body
{"create_time_ge":1623812664,"create_time_lt":1623812664,"campaign_id":"7324371012170024705"}
§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 |
| ^^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 |1729793769377925388 |sku ID | ^^campaign_id |string |7324371012170024705 |New seller campaign | ^^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 | |Price | ^^^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 | ^^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 | ^^creator_standard_commission_rate |int |3000 |Between TAP & creator percentage commission | ^^partner_standard_commission_rate |int |4000 |Between seller & TAP percentage commission | ^^creator_shop_ads_commission_rate |int |3000 |Between TAP & creator percentage shop ads commission | ^^partner_shop_ads_commission_rate |int |4000 |Between TAP & seller percentage shop ads commission | ^^partner_tap_bonus_commission_rate |int |1000 |The additional commission rate TikTok Shop offers to affiliate partners for driving product sales in specific campaigns | ^^creator_tap_bonus_commission_rate |int |2000 |The commission reward rate affiliate partners allocate to creators | ^^estimated_commission_base |object | |The estimated commission base is the item price multiplied by the number of items ordered at the time the order is created. | ^^^amount |string |99 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_creator_standard_commission |object | |Estimated TAP commission x creator commission rate | ^^^amount |string |100 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_partner_standard_commission |object | |Estimated commission base x TAP commission rate | ^^^amount |string |100 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_creator_shop_ads_commission |object | |Estimated commission base x creator shop ads commission rate | ^^^amount |string |99 |Commission amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_partner_shop_ads_commission |object | |Estimated commission base x partner shop ads commission rate | ^^^amount |string |99 |Commission amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_partner_tap_bonus_commission |object | |Estimated partner commission reward fee | ^^^amount |string |100 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_creator_tap_bonus_commission |object | |Estimated creator commission reward fee | ^^^amount |string |100 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_partner_isr |object | |Estimated ISR tax amount for Mexico partner | ^^^amount |string |99 |Tax amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^estimated_partner_iva |object | |Estimated IVA tax amount for Mexico partner | ^^^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 item price multiplied by the number of items ordered minus returns at the time the order is completed. | ^^^amount |string |200 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_creator_standard_commission |object | |Actual TAP commission x creator commission rate | ^^^amount |string |100 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_partner_standard_commission |object | |Actual commission base x TAP commission rate | ^^^amount |string |99 |Price amount for product, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_creator_shop_ads_commission |object | |actual commission base x creator shop ads commission rate | ^^^amount |string |99 |Commission amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_partner_shop_ads_commission |object | |actual commission base x partner shop ads commission rate | ^^^amount |string |99 |Commission amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_partner_isr |object | |Actual ISR tax amount for Mexico partner | ^^^amount |string |99 |Tax amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_partner_iva |object | |actual IVA tax amount for Mexico partner | ^^^amount |string |99 |Tax amount, such as Rp 1000 | ^^^currency |string |USD |Type of currency use | ^^actual_partner_tap_bonus_commission |object | |Actual partner commission reward fee | ^^^amount |string |200 |The actual fee affiliate partners earn from commission rewards | ^^^currency |string |USD |Type of currency use | ^^actual_creator_tap_bonus_commission |object | |Actual creator commission reward fee | ^^^amount |string |100 |The actual fee creators receive from affiliate partners through commission rewards | ^^^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 |1685548800 |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","create_time":1685548800,"delivery_time":1685548800,"settle_status":"SETTLED","sku_id":"1729793769377925388","campaign_id":"7324371012170024705","creator_username":"liuyi_id_creator1jigo","product_name":"Black Hoodie","product_id":"1729435310697057093","price":{"amount":"99","currency":"USD"},"quantity":1,"content_type":"VIDEO","content_id":"7494337156519332665","creator_standard_commission_rate":3000,"partner_standard_commission_rate":4000,"creator_shop_ads_commission_rate":3000,"partner_shop_ads_commission_rate":4000,"partner_tap_bonus_commission_rate":1000,"creator_tap_bonus_commission_rate":2000,"estimated_commission_base":{"amount":"99","currency":"USD"},"estimated_creator_standard_commission":{"amount":"100","currency":"USD"},"estimated_partner_standard_commission":{"amount":"100","currency":"USD"},"estimated_creator_shop_ads_commission":{"amount":"99","currency":"USD"},"estimated_partner_shop_ads_commission":{"amount":"99","currency":"USD"},"estimated_partner_tap_bonus_commission":{"amount":"100","currency":"USD"},"estimated_creator_tap_bonus_commission":{"amount":"100","currency":"USD"},"estimated_partner_isr":{"amount":"99","currency":"USD"},"estimated_partner_iva":{"amount":"99","currency":"USD"},"actual_commission_base":{"amount":"200","currency":"USD"},"actual_creator_standard_commission":{"amount":"100","currency":"USD"},"actual_partner_standard_commission":{"amount":"99","currency":"USD"},"actual_creator_shop_ads_commission":{"amount":"99","currency":"USD"},"actual_partner_shop_ads_commission":{"amount":"99","currency":"USD"},"actual_partner_isr":{"amount":"99","currency":"USD"},"actual_partner_iva":{"amount":"99","currency":"USD"},"actual_partner_tap_bonus_commission":{"amount":"200","currency":"USD"},"actual_creator_tap_bonus_commission":{"amount":"100","currency":"USD"},"fully_return":"Yes","settlement_time":1685548800,"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. |
