This request creates a customer resource. You need to provide several parameters of the customer in the request body, including the unique identifier of the customer in the external merchant, personal information, as well as billing and shipping addresses.
Creating a customer generates a customer id that can be used to initialize the checkout.
Important
There are certain objects that are not mandatory when creating a “Customer.” However, the more information you provide, the more it can help approval, conversion, and fraud prevention rates.
POST/customers
Body application/json
merchant_customer_idstringrequired
The unique identifier of the customer in the external merchant (MAX 255; MIN 3).
merchant_customer_created_atstring<date-time>
Customer’s registration date on the merchants platform (MAX 27; MIN 27; ISO 8601)
first_namestring
The customer’s first name (MAX 255; MIN 3).
last_namestring
The customer’s last name (MAX 255; MIN 3).
genderstring
The customer’s gender.
date_of_birthstring
The customer’s date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).
The customer’s country (MAX 2; MIN 2; ISO 3166-1).
documentobject
Specifies the customer’s document object, including its number and type. This object is not mandatory. However, if you send this information, the payment experience will be enhanced for your user.
Show document properties
document_numberstring
The customer’s document number (MAX 40; MIN 3). This field is required if the ‘document’ object is included in the request.
Specifies the customer’s phone number object. This object is not mandatory. However, if you send this information, the payment experience will be enhanced for your user.
Show phone properties
country_codestring
The country calling code of the customer’s phone (MAX 3; MIN 1). Possible values values: Check the Country reference. This field is required if the ‘phone’ object is included in the request.
numberstring
The customer’s phone number, without the country code (MAX 32; MIN 1). This field is required if the ‘phone’ object is included in the request.
billing_addressobject
Specifies the customer’s billing address object. This object is not mandatory. However, if you send this information, the payment experience will be enhanced for your user.
Show billing_address properties
address_line_1stringrequired
The primary billing address line of the customer (MAX 255; MIN 3). This field is required if the ‘billing_address’ object is included in the request.
address_line_2string
The secondary billing address line of the customer (MAX 255; MIN 3).
building_number_1string
The primary building number of the customer (MAX 255; MIN 3)
building_number_2string
The secondary building number of the customer (MAX 255; MIN 3)
citystringrequired
The city considered for the billing address (MAX 255; MIN 3). This field is required if the ‘billing_address’ object is included in the request.
The country considered for the billing address (MAX 2; MIN 2; ISO 3166-1). This field is required if the ‘billing_address’ object is included in the request.
statestring
The state considered for the billing address (MAX 255; MIN 3).
zip_codestring
The zipcode considered for the billing address (MAX 10; MIN 5).
neighborhoodstring
The neighborhood of the address line of the customer (MAX 255; MIN 1).
shipping_addressobject
Specifies the customer’s shipping address object. This object is not mandatory. However, if you send this information, the payment experience will be enhanced for your user.
Show shipping_address properties
address_line_1stringrequired
The primary shipping address line of the customer (MAX 255; MIN 3). This field is required if the ‘shipping_address’ object is included in the request.
address_line_2string
The secondary shipping address line of the customer (MAX 255; MIN 3).
building_number_1string
The primary building number of the customer (MAX 255; MIN 3)
building_number_2string
The secondary building number of the customer (MAX 255; MIN 3)
citystringrequired
The city considered for the shipping address (MAX 255; MIN 3). This field is required if the ‘shipping_address’ object is included in the request.
The country considered for the shipping address (MAX 2; MIN 2; ISO 3166-1). This field is required if the ‘shipping_address’ object is included in the request.
statestring
The state considered for the shipping address (MAX 255; MIN 3).
zip_codestring
The zipcode considered for the shipping address (MAX 10; MIN 5).
neighborhoodstring
The neighborhood of the address line of the customer(MAX 255; MIN 1).
metadataobject[]
Specifies a list of metadata objects. You can add up to 50 metadata objects.