Customers
Create Customer
Creates a customer object.
📘 Upsert Mode
If you pass an id or a source_id that already exists in the customer database, Voucherify will return a related customer object with updated fields.
post/v1/customers
Request body
Response
Returns a customer object.
Example response
{
"summary": {
"orders": {
"last_order_date": "2022-08-30T11:51:08.029Z"
}
},
"referrals": {
"campaigns": [
{
"campaign_id": "camp_rRsfatlwN7unSeUIJDCYedal",
"referrer_id": "cust_sehkNIi8Uq2qQuRqSr7xn4Zi",
"related_object_id": "r_0b9d4cc4aa164dd073",
"date": "2022-08-30T10:19:39.196Z"
}
]
},
"created_at": "2022-08-30T06:32:07.380Z",
"updated_at": "2022-08-31T06:32:07.380Z"
}