Create a customer for a merchant with a first name, last name, and optional merchant customer reference ID.

Upon success, a status code of 201 (Created) will be returned. If a customer cannot be created with the provided data, a status code of 400 (Bad Request) will be returned.

Additionally, subscriptions can be created simultaneously with the customer. If there are one of more subscription failed during the creation, a status code of 207 (Multi-Status) will be returned. A 207 status code response is an array of success (201) and failure (400) responses. The response field can be either Customer (Create Customer 201 response), Subscription (Create Subscription 201 response) or CreateSubscriptionFailure type. CreateSubscriptionFailure response type has a MerchantSubscriptionRefId field for the failure subscription, and an ErrorMessage field for the error description. For a sample of each response type, refer to the 207 response sample below.

For additional details on how to create subscriptions, refer to the specifications at Create Subscription.

Required Fields
FirstNameCustomer's first name
LastNameCustomer's last name
Optional Fields
NameDescriptionDefault value
EntityUseCodeAvalara tax exemption codenull
MerchantCustomerRefIdMerchant's identifier for the customernull
BillingAddressesCustomer's associated address(es) for billing purposes. A required set of Address details: AddressLine1, City and State or AddressLine1 and PostalCode or State and PostalCode[]
ShippingAddressesCustomer's associated address(es) for shipping purposes[]
Click Try It! to start a request and see the response here!