Get the details of a Custom Conversion
GET/custom_conversion/get/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/custom_conversion/get/
Description
Use this endpoint to retrieve the details of a Custom Conversion associated with a Pixel or an App.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/custom_conversion/get/
Authentication & shop
| Name | In | Type | Sample | Description |
|---|---|---|---|---|
| Authorization | header | header | Bearer q360_live_ab12cd34_… | Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand. |
| platform_shop_id | query | string | 7000000000000000001 | Tài sản TikTok Business đã kết nối — "Mã tài sản" ở trang Nền tảng hoặc GET /v1/platforms (tài khoản quảng cáo cho Marketing API, tài khoản TikTok cho Organic / Messaging). Có thể bỏ khi chỉ kết nối một tài sản. |
Request parameters
| Name | In | Type | Required | Sample | Description |
|---|---|---|---|---|---|
| custom_conversion_id | query | string | Yes | The ID of the Custom Conversion. To obtain the list of Custom Conversions associated with a Pixel or an App, use /custom_conversion/list/. | |
| event_source_type | query | string | Yes | Event source type.
Enum values:
- PIXEL: Pixel.
- APP: App. | |
| event_source_id | query | string | Yes | Event source ID.
- When event_source_type is PIXEL, specify a Pixel ID.
- To obtain IDs of Pixels within your ad account, use /pixel/list/ and check the returned pixel_id.
- When event_source_type is APP, specify the app platform ID of a Self Attribution Network (SAN) App.
- To obtain app platform IDs of SAN Apps within your ad account, use /app/list/. Confirm that the returned self_attribution_enabled for the App is true and check the returned app_platform_id. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/custom_conversion/get/?custom_conversion_id=&event_source_type=&event_source_id=" \ -H "Authorization: Bearer $KEY"
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.get(
"https://partner.quantri360.com/v1/tiktok_business/custom_conversion/get/",
params={
"custom_conversion_id": "",
"event_source_type": "",
"event_source_id": ""
},
headers={"Authorization": f"Bearer {KEY}"},
timeout=60,
)
print(r.status_code)
print(r.json())Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/tiktok_business/custom_conversion/get/');
for (const [k, v] of Object.entries({"custom_conversion_id":"","event_source_type":"","event_source_id":""})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'GET',
headers: { Authorization: `Bearer ${KEY}` },
});
console.log(r.status, await r.json());PHP
<?php $key = 'q360_live_...'; // khóa API của brand $url = 'https://partner.quantri360.com/v1/tiktok_business/custom_conversion/get/' . '?' . http_build_query(['custom_conversion_id' => '', 'event_source_type' => '', 'event_source_id' => '']); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key]); $res = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo $status, "\n", $res;
Response
Response fields (as returned by TikTok Business)
| Name | Type | Sample | Description |
|---|---|---|---|
| code | number | Response code. For the complete list of response codes and descriptions, see Appendix-Return Code. | |
| message | string | Response message. For details, see Appendix - Return Codes. | |
| request_id | string | The log ID of a request, which uniquely identifies the request. | |
| data | object | Returned data. | |
| custom_conversion_id | string | The ID of the Custom Conversion. | |
| name | string | The name of the Custom Conversion. | |
| description | string | The description of the Custom Conversion. | |
| event_source_type | string | Event source type. Enum values: - `PIXEL`: Pixel. - `APP`: App. | |
| event_source_id | string | Event source ID. - When `event_source_type` is `PIXEL`, this field represents a Pixel ID. - To obtain IDs of Pixels within your ad account, use /pixel/list/ and check the returned `pixel_id`. - When `event_source_type` is `APP`, this field represents the app platform ID of a Self Attribution Network (SAN) App. - To obtain app platform IDs of SAN Apps within your ad account, use /app/list/. Confirm that the returned `self_attribution_enabled` for the App is `true` and check the returned `app_platform_id`. | |
| activity_status | string | The status of the Custom Conversion. Enum values: - `NO_RECENT_ACTIVITY`: No recent activity. Activity received, but not in the past 7 days. - `ACTIVE`: Active. Activity received in the past 7 days. - `WAITING_FOR_ACTIVITY`: Inactive. No activity received in the past 90 days. | |
| optimization_event | string | The conversion event (standard event) associated with the Custom Conversion. For enum values, see List of values for `optimization_event`. | |
| rules | object[] | Details of the conversion rules for the Custom Conversion. Only actions that meet these conditions will count as Custom Conversions. | |
| parameter | string | Parameter. Enum values: - `BRAND`: `brand`. - `CONTENT_CATEGORY`: `content_category`. - `CONTENT_ID`: `content_id`. - `CONTENT_NAME`: `content_name`. - `CONTENT_TYPE`: `content_type`. - `CURRENCY`: `currency`. - `DESCRIPTION`: `description`. - `EVENT_ID`: `event_id`. - `NUM_ITEMS`: `num_items`. - `PRICE`: `price`. - `SEARCH_STRING`: `search_string`. - `STATUS`: `status`. - `URL`: `url`. - `VALUE`: `value`. | |
| operator | string | Operator. - When `parameter` is `BRAND`, `CONTENT_CATEGORY`, `CONTENT_ID`, `CONTENT_NAME`, `CONTENT_TYPE`, `DESCRIPTION`, `EVENT_ID`, `SEARCH_STRING`, `STATUS`, or `URL`, the enum values are: - `CONTAIN`: Contains. - `NOT_CONTAIN`: Does not contain. - `START_WITH`: Starts with. - `EQUAL`: Is equal to. - `NOT_EQUAL`: Is not equal to. - When `parameter` is `NUM_ITEMS`, `PRICE`, or `VALUE`, the enum values are: - `EQUAL`: Is equal to. - `NOT_EQUAL`: Is not equal to. - `LT`: Is less than. - `GT`: Is greater than. - `LTE`: Is less than or equal to. - `GTE`: Is greater than or equal to. - When `parameter` is `CURRENCY`, the enum values are: - `EQUAL`: Is equal to. - `NOT_EQUAL`: Is not equal to. | |
| values | string[] | Values for the parameter. - When `parameter` is `BRAND`, `CONTENT_CATEGORY`, `CONTENT_ID`, `CONTENT_NAME`, `CONTENT_TYPE`, `DESCRIPTION`, `EVENT_ID`, `SEARCH_STRING`, `STATUS`, `URL`, the field will be an array of strings, each with a maximum length of 100 characters and up to 100 entries. - When `parameter` is `NUM_ITEMS`, the field will be an integer between 0 and 1,000,000,000. - When `parameter` is `PRICE`, `VALUE`, the field will be a float kept to two decimal places, within the range from 0.00 to 1,000,000,000.00. - When `parameter` is `CURRENCY`, the field will be an array of strings. To learn about the enum values, see List of currency values. | |
| create_time | string | The time when the Custom Conversion was created, in the format of `YYYY-MM-DD HH:MM:SS`(UTC+0). Example: `2025-01-01 00:00:01`. | |
| update_time | string | The time when the Custom Conversion was last updated, in the format of `YYYY-MM-DD HH:MM:SS`(UTC+0). Example: `2025-01-01 00:00:01`. |
Response sample
HTTPS/1.1 200 OK
{
"code": 0,
"message": "OK",
"request_id": "{{request_id}}",
"data": {
"activity_status": "WAITING_FOR_ACTIVITY",
"create_time": "{{create_time}}",
"custom_conversion_id": "{{custom_conversion_id}}",
"description": "{{description}}",
"event_source_id": "{{event_source_id}}",
"event_source_type": "PIXEL",
"name": "{{name}}",
"optimization_event": "SHOPPING",
"rules": [
{
"operator": "NOT_CONTAIN",
"parameter": "EVENT_ID",
"values": [
"{{event_id}}",
"{{event_id}}"
]
},
{
"operator": "START_WITH",
"parameter": "DESCRIPTION",
"values": [
"{{description_value}}"
]
}
],
"update_time": "{{update_time}}"
}
}
Get started
- Sign up for Partner
- Enable a data type of the Ads (Marketing API) group on the platform page
- Create an API key (tick the TikTok Business channel)
- Call it as in the examples above