Create or update a 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.
apiKeyAuthorizationBearer <token>An API key of the organization the request acts for, created in the dashboard and sent as "Authorization: Bearer ".
Customer details
application/json- body
Who is paying. Creates the customer on first use and updates its details on later checkouts.
externalId*stringThe customer's ID in the merchant's system. Checkouts with the same externalId share one customer.
1 <= length <= 256"user_8f2c1a"email*stringemail"ana.perez@example.com"name?string1 <= length <= 256"Ana Pérez"The customer as stored
application/json- response
id*stringuuid"7d4f1c2e-3b5a-4e8f-9a1d-2c6b8e0f4a13"externalId*string"user_8f2c1a"email*stringemail"ana.perez@example.com"name*|"Ana Pérez"createdAt*stringdate-time"2026-10-01T16:45:18.000Z"updatedAt*stringdate-time"2026-10-01T16:45:18.000Z"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"}'{ "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"}Create an Apple Pay merchant session POST
Requests a merchant session from the Apple Pay gateway named in validationURL, over mTLS with the Merchant Identity certificate. The service accepts only the Apple Pay gateway hosts, and the sandbox hosts only in development.
Start a trial POST
Starts a subscription on a free trial, with no card and no charge. It starts trialing, its current period runs from the start to trialEnd, and nextBillingAt is null. subscription.trial-will-end goes out 3 days before trialEnd, or at the start of a trial of 3 days or less. A trial that ends without a card pauses or cancels per trialEndBehavior. The organization needs a webhook endpoint.