Create Customer
Intent
Creates a customer from the values supplied in the request.
When to call it
Call this when your application has collected the required values and is ready to create a customer.
Access boundary
Authorize the request with a token that carries customers:write.
Successful result
A successful request returns 201. The response schema below defines the body your integration receives.
Authorizations
Body
- CustomerIndividualCreate
- CustomerTeamCreate
Email: Email address of the customer. This must be unique within the organization.
"customer@example.com"
Metadata map for information your integration needs to retain.
The key must be a string with a maximum length of 40 characters. The value must be either:
- A string with a maximum length of 500 characters
- An integer
- A floating-point number
- A boolean
You can store up to 50 key-value pairs.
Unique identifier for the customer in your system. This must be unique within the organization. Once set, it can't be updated.
"usr_1337"
Name assigned to the customer.
256"John Doe"
Locale: Locale of the customer, given as an IETF BCP 47 language tag. Supported: language code (e.g. en) or language + region (e.g. en-US). If null or unsupported, the locale will default to en.
^[a-zA-Z]{2,3}(-[a-zA-Z]{2}|-[0-9]{3})?$"en"
Identifier of the organization.
"1dbfc517-0bbf-4301-9ba8-555ca42b9737"
Owner: Optional owner member to create with the customer. If not provided, an owner member will be automatically created using the customer's email and name.
"individual"Response
Response: Customer created.
- CustomerIndividual
- CustomerTeam
Object representing customer in an organization.
Unique identifier for the customer.
"992fae2a-2a17-4b7a-8d9e-e287cf90131b"
The time Ruba created this record.
The time this record last changed.
Email: Email address of the customer. This must be unique within the organization.
"customer@example.com"
Indicates whether the customer email address is verified. The address is automatically verified when the customer accesses the customer portal using their email address.
true
Type: Type of customer.
"individual""individual"
Name assigned to the customer.
"John Doe"
Billing Name: Name that should appear on the customer's invoices. Falls back to the customer name when not explicitly set.
"John Doe"
Unique identifier for the organization owning the customer.
"1dbfc517-0bbf-4301-9ba8-555ca42b9737"
Deleted At: Timestamp for when the customer was soft deleted.
"https://www.gravatar.com/avatar/xxx?d=404"
Unique identifier for the customer in your system. This must be unique within the organization. Once set, it can't be updated.
"usr_1337"
Unique identifier for the customer's default payment method, if any. Use the payment methods endpoint to retrieve its details.