Customer POST
The “Customer Lifetime” endpoint shows the total amount of orders and the total amount of revenue per customer for every new conversation. But for older conversation you'll need the POST to update this information.
POST https://api.robinhq.com/dynamic/customers/
Response codes
Code | Description |
---|---|
201 | Created |
400 | Bad Request |
401 | Invalid authorisation data |
Request body
{
"customers": [
{
"email_address": "[email protected]",
"customer_since": "2021-01-29T12:34:56Z",
"order_count": 12,
"total_revenue": 123.45,
"currency": "$",
"last_order_date": "2021-04-05T12:34:56Z"
}
]
}
Request schema
Name | Type | Required | Description |
---|---|---|---|
email_address | String | Yes | Email address of the customer |
customer_since | String | Yes | Date of the first order |
order_count | Integer | Yes | Total amount of orders the customer has |
currency | String | Yes | Default currency of the customer |
total_revenue | Float | Yes | Total amount of revenue the customer has brought in |
last_order_date | String | Yes | Date of the last order |
Updated 7 months ago