curl --request POST \
--url https://api.cloud.flexprice.io/v1/customers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"address_city": "<string>",
"address_country": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_postal_code": "<string>",
"address_state": "<string>",
"email": "<string>",
"external_id": "<string>",
"metadata": {},
"name": "<string>",
"tax_rate_overrides": [
{
"auto_apply": true,
"currency": "<string>",
"metadata": {},
"priority": 123,
"tax_rate_code": "<string>"
}
]
}'
{
"address_city": "<string>",
"address_country": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_postal_code": "<string>",
"address_state": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"email": "<string>",
"environment_id": "<string>",
"external_id": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"status": "published",
"tenant_id": "<string>",
"updated_at": "<string>",
"updated_by": "<string>"
}
Create a customer
curl --request POST \
--url https://api.cloud.flexprice.io/v1/customers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"address_city": "<string>",
"address_country": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_postal_code": "<string>",
"address_state": "<string>",
"email": "<string>",
"external_id": "<string>",
"metadata": {},
"name": "<string>",
"tax_rate_overrides": [
{
"auto_apply": true,
"currency": "<string>",
"metadata": {},
"priority": 123,
"tax_rate_code": "<string>"
}
]
}'
{
"address_city": "<string>",
"address_country": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_postal_code": "<string>",
"address_state": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"email": "<string>",
"environment_id": "<string>",
"external_id": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"status": "published",
"tenant_id": "<string>",
"updated_at": "<string>",
"updated_by": "<string>"
}
Enter your API key in the format x-api-key <api-key>*
Customer
Request object for creating a new customer in the system
Created
Customer response object containing all customer information