Create a customer
1 min
POST
https://app.amberflo.io/customers
autoCreateCustomerInStripestring<p>Indicates whether to create the customer in your Stripe account or not.</p>
<p>Its Stripe id is saved as the <code>stripeId</code> trait after it is created there.</p>
<p>When set to <code>if_payment_provider</code>, then it will only be created in Stripe if the <code>paymentProviderName</code> trait is set to <code>STRIPE</code></p>
bodyobjectCustomer information required to create or update a customer in the system.
200Successfully created new customer record with generated timestamps and metadata
400Invalid customer data, missing required fields, or customer ID already exists
401Authentication required or API key is invalid
403Insufficient permissions to create customer records
500Internal server error occurred while creating customer
curl --request POST \
--url https://app.amberflo.io/customers \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"customerId": "",
"customerName": "",
"address": {
"line1": "",
"city": "",
"country": ""
}
}'