Rápido Pagos
Customers

Create or update a customer

POST
/customer

Creates the customer for an externalId, or updates its email and name when one already exists. Checkouts created with the same externalId link to this customer.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key of the organization the request acts for, created in the dashboard and sent as "Authorization: Bearer ".

Request Body

Customer details

application/json
  1. body

Who is paying. Creates the customer on first use and updates its details on later checkouts.

externalId*string

The customer's ID in the merchant's system. Checkouts with the same externalId share one customer.

Length1 <= length <= 256
Example"user_8f2c1a"
email*string
Formatemail
Example"ana.perez@example.com"
name?string
Length1 <= length <= 256
Example"Ana Pérez"

Response Body

The customer as stored

application/json
  1. response
id*string
Formatuuid
Example"7d4f1c2e-3b5a-4e8f-9a1d-2c6b8e0f4a13"
externalId*string
Example"user_8f2c1a"
email*string
Formatemail
Example"ana.perez@example.com"
name*|
Example"Ana Pérez"
createdAt*string
Formatdate-time
Example"2026-10-01T16:45:18.000Z"
updatedAt*string
Formatdate-time
Example"2026-10-01T16:45:18.000Z"
Create or update a customer
curl -X POST 'https://api.rapidopagos.com/customer' \  -H 'Content-Type: application/json' \  -d '{  "externalId": "user_8f2c1a",  "email": "ana.perez@example.com",  "name": "Ana Pérez"}'
Example Response
{  "id": "7d4f1c2e-3b5a-4e8f-9a1d-2c6b8e0f4a13",  "externalId": "user_8f2c1a",  "email": "ana.perez@example.com",  "name": "Ana Pérez",  "createdAt": "2026-10-01T16:45:18.000Z",  "updatedAt": "2026-10-01T16:45:18.000Z"}