Requires read_data_report access scope.
For more info , refer to:
POST https://{handle}.myshopline.com/admin/openapi/v20250601/cdp/identify.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .
Report buyer identity information for personalized recommendations and targeted marketing.
Request Headers
  • Content-Type required
    The value of this field is fixed to application/json; charset=utf-8
  • Authorization string required
    The access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
  • channel_id string required
    Marketing channel ID, generated by the CDP system.
    Example: 6689609588495885399
  • user_idobject[]
    List of buyer behavior events. Maximum size: 32
  • channel_type string
    Marketing channel type.
    Example: Z_store
  • type string
    Buyer identity type. Maximum length: 128
    Example: idCard
  • value string
    Value of buyer identity information.
    Example: 324568754
  • user_traits map
    Attributes of the buyer, such as name, age, email, etc. Refer to the buyer attribute metadata in the CDP system for filling in the values.
    Example: [object Object]
Response
For more information about status codes, see Http status code.

Response Headers
  • traceId
    traceId
Response Body
  • dataobject
    Response data.
  • one_id string
    A unique ID for a buyer in the CDP system, which is generated by the CDP system.
    Example: 0155eb0038b6f96a3b6d5f977ad076fa
  • user_traits map
    Attributes of the buyer, such as name, age, email, etc.
    Example: [object Object]
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601

ParamOptions

header required

Body

required
{
  "channel_id": "6689609588495885399",
  "user_id": [
    {
      "channel_type": "Z_store",
      "type": "idCard",
      "value": "324568754"
    }
  ],
  "user_traits": {}
}

Language

curl --request POST \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601/cdp/identify.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json' \
--data '
{
"channel_id": "6689609588495885399",
"user_id": [
{
"channel_type": "Z_store",
"type": "idCard",
"value": "324568754"
}
],
"user_traits": {}
}
'
Examples
Report buyer identity information
Request
{
"channel_id": "6689609588495885399",
"user_id": [
{
"type": "idCard",
"value": "32054678"
},
{
"type": "email",
"value": "example@shopline.com"
},
{
"type": "mobilePhone",
"value": "008613917692706"
},
{
"channel_type": "Z_store",
"type": "uid",
"value": "U03356"
},
{
"type": "anonymousId",
"value": "OPENAPI_TEST_ANONYMOUSID_1234567890"
}
],
"user_traits": {
"address_1": "HYATT PLACE SANJOSE AIRPORT 82 KARINA CT",
"address_2": "SAN JOSE CA 95131",
"age": 18,
"birthday": 1577808000000,
"country": "US",
"firstname": "Tao",
"language": "CN",
"lastname": "Xu",
"nickName": "Tao",
"state": "CA"
}
}
Response
{
"data": {
"one_id": "6689609588495812345",
"user_traits": {
"address_1": "HYATT PLACE SANJOSE AIRPORT 82 KARINA CT",
"address_2": "SAN JOSE CA 95131",
"age": 18,
"birthday": 1577808000000,
"country": "US",
"firstname": "Tao",
"language": "CN",
"lastname": "Xu",
"nickName": "Tao",
"state": "CA"
}
}
}
Was this article helpful to you?

Error loading component.

Error loading component.