cURL
curl --request POST \ --url https://api.salesbricks.com/api/v2/customers \ --header 'Content-Type: application/json' \ --header 'X-SALESBRICKS-KEY: <api-key>' \ --data ' { "name": "<string>", "external_id": "<string>", "address": { "line_1": "<string>", "city": "<string>", "region": "<string>", "zip": "<string>", "country": "<string>", "line_2": "<string>" }, "stripe_customer_id": "<string>" } '
{ "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "external_id": "<string>", "address": { "line_1": "<string>", "city": "<string>", "region": "<string>", "zip": "<string>", "country": "<string>", "line_2": "<string>" }, "stripe_customer_id": "<string>" }
Creates a new customer.
API key for authentication
Customer post input serializer for creating a new customer.
The name of the customer
Optional external id of the customer
The address of the customer
Show child attributes
Optional Stripe customer ID to associate with this customer
Customer output serializer; we can represent the customer model differently depending on the request so we need a custom serializer for the output.
255
The companies stripe customer_id