Create a new enduser to with person or company entity and metadata.
Request
Body Params application/json
{
"person": {
"first_name": "Sam",
"last_name": "Jhon",
"email": "abn@bbc.com",
"birthday": "1970-01-01",
"phone_number": "+111111111111"
},
"metadata": {}
}
Request Code Samples
curl --location --request POST '/customers/v1/endusers' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"person": {
"first_name": "Sam",
"last_name": "Jhon",
"email": "abn@bbc.com",
"birthday": "1970-01-01",
"phone_number": "+111111111111"
},
"metadata": {}
}'
Responses
application/json {
"id": "07777ee5-491f-46cd-bc66-0bb5c02fcb7e",
"company": {
"id": "07777ee5-491f-46cd-bc66-0bb5c02fcb7e",
"name": "sam"
},
"company_id": "b55d4ef2-7cc2-49c1-a718-f71d3ae9fef5",
"metadata": {}
}
Modified at 2025-01-22 15:29:27