Create a customer
POST {{baseUrl}}/customers
Create a new Direct Debit customer
Parameter | Type | Required | Description |
---|---|---|---|
firstname | string | true | Your user's first name. |
lastname | string | true | Your user's last name. |
documentType | string | true | Your user's ID document type. For 🇲🇽 Mexico, this can be one of the following: - mx_rfc : Tax Identification Number (Registro Federal de Contribuyentes) - mx_curp : Unique Population Registry Code (Clave Única de Registro de Población) |
documentNumber | string | true | The document number of the user. |
email | string | true | The email of the user. |
phone | string | false | The phone number of the user (including country code). |
You’ll receive the following response from our API, confirming that the customer was created. Make sure to save the customerId
you receive, as this ID is required when creating a payment method.
{
"customerId": "uuid"
}
Request Body
{"firstname"=>"Carlos", "lastname"=>"Azules", "email"=>"carlos.azules@demo.com", "documentType"=>"mx_rfc", "documentNumber"=>"WFB1604128E2"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"customerId":"0d1a377b-b4c5-4a94-9e2e-83e59d1f6a9c"}