curl --request POST \
--url http:localhost:3000/v2/objects/ \
--header 'Content-Type: application/json' \
--header 'x-API-Key: <api-key>' \
--data '{
"customerId": "<string>",
"number": 123,
"name": "<string>",
"objectManagerId": "<string>",
"address": {
"street": "<string>",
"zip": "<string>",
"city": "<string>",
"country": "<string>"
},
"contact": {
"phone": "<string>",
"email": "jsmith@example.com",
"fax": "<string>"
},
"description": "<string>",
"securityCode": "<string>",
"key": "<string>",
"tags": [
"<string>"
]
}'
{
"_id": "<string>"
}
Create a new customer object. If no customer ID is provided, a new customer will be created automatically.
curl --request POST \
--url http:localhost:3000/v2/objects/ \
--header 'Content-Type: application/json' \
--header 'x-API-Key: <api-key>' \
--data '{
"customerId": "<string>",
"number": 123,
"name": "<string>",
"objectManagerId": "<string>",
"address": {
"street": "<string>",
"zip": "<string>",
"city": "<string>",
"country": "<string>"
},
"contact": {
"phone": "<string>",
"email": "jsmith@example.com",
"fax": "<string>"
},
"description": "<string>",
"securityCode": "<string>",
"key": "<string>",
"tags": [
"<string>"
]
}'
{
"_id": "<string>"
}
Customer object data
The body is of type object
.
Customer object created successfully
The response is of type object
.
Was this page helpful?