Curl Command:
curl --location --request POST 'https://app.inchargeads.com/api/v1/customize/record/[YOUR-CID]/[YOUR-HID]' \
--header 'Content-Type: text/plain' \
--data-raw '{
"data":{
"cookies": "[Get cookie __CID]",
"type": "purchase",
"phone": "6574637657",
"email": "myemail@gmail.com",
"ip": "127.0.0.2",
"ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15",
"purchased":"48.80",
"checkout":{
"email":"morgan.n.carrier@gmail.com",
"phone":null,
"version":"edge",
"currency":"USD",
"order_id":14829185900625,
"created_at":"2022-10-19T13:48:44-05:00",
"line_items":[
{
"id":"244ce3661b172b527e01ad6053e771f8",
"key":"244ce3661b172b527e01ad6053e771f8",
"sku":"HGWMBBP",
"grams":907,
"price":"54.95",
"title":"Product A",
"vendor":"Manufacturer-B",
"quantity":1,
"gift_card":false,
"image_url":"https://cdn.shopify.com/s/files/1/0068/9120/8769/.....",
"line_price":"54.95",
"product_id":2108210118721,
"properties":[
],
"variant_id":3249528061601,
"variant_title":"28.5 in.",
"compare_at_price":"0.00",
"cost": "40.05"
}
],
"updated_at":"2022-10-19T13:58:32-05:00",
"total_price":"48.80",
"subtotal_price":"46.70",
"billing_address":{
"id":10852854530129,
"zip":"73142",
"city":"Oklahoma City",
"phone":"",
"company":"",
"country":"United States",
"address1":"12401 Doons",
"address2":"",
"province":"Oklahoma",
"last_name":"Carrier",
"first_name":"Morgan",
"country_code":"US",
"province_code":"OK"
},
"shipping_address":{
"id":10852854530129,
"zip":"73142",
"city":"Oklahoma City",
"phone":"",
"company":"",
"country":"United States",
"address1":"12401 Doons Dr",
"address2":"",
"province":"Oklahoma",
"last_name":"Carrier",
"first_name":"Morgan",
"country_code":"US",
"province_code":"OK"
}
}
}
}'
The small number in the middle will be the account CID and the HID is at the bottom (seen in image below.)
You will see Purchase events in both records and customer section if the event is firing correctly, make sure to check the information in the cutomers section to see if any of the information is missing. Contact
support@inchargeads.com for any assistance.