v1
latestOpenAPI 3.1.02026-08-04170116.0 KBData In
Create Customer Record
Ingest customer data into Triple Whale. This endpoint allows users to upload detailed customer information — including contact details, address, consent status, and purchase history metadata.
post/data-in/customers
Request body
Example request
{
"shop": "madisonbraids.myshopify.com",
"customer_id": "5209503793328",
"platform": "magento",
"platform_account_id": "shop_account_123",
"address1": "764 Example Dr",
"address2": "Apt 603",
"amount_spent": 1250.75,
"city": "San Francisco",
"country": "United States",
"country_code": "US",
"created_at": "2022-06-15T19:26:30.000Z",
"customer_tags": [
"Active Subscriber",
"PayPal_user",
"Login with FB"
],
"display_name": "John Doe",
"email_address": "customer@example.com",
"email_marketing_consent_collected_from": "website_signup",
"email_marketing_consent_opt_in_level": "SINGLE_OPT_IN",
"email_marketing_consent_status": "SUBSCRIBED",
"email_marketing_consent_updated_at": "2019-05-22 21:01:29",
"first_name": "John",
"last_name": "Doe",
"last_order_id": "4930225799243",
"latitude": 34.1413713,
"locale": "en-US",
"longitude": -118.8639169,
"note": "VIP customer",
"orders": 15,
"phone": "18005550199",
"product_subscriber_status": "ACTIVE",
"sms_marketing_consent_collected_from": "checkout",
"sms_marketing_consent_opt_in_level": "CONFIRMED_OPT_IN",
"sms_marketing_consent_updated_at": "2019-05-22 21:01:29",
"state": "Oregon",
"state_code": "OR",
"status": "ENABLED",
"zip": "48104"
}Response
Customer record successfully received.
Example response
{
"success": true,
"message": "customer received"
}