Rápido Pagos
Checkouts

Create a new checkout

POST
/checkout

Creates a new checkout that can be used to process a card payment. The checkout must be paid using the pay endpoint before it expires: 10 minutes after its creation, or 24 hours after it with subscription. An unpaid checkout then ends expired.

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

Checkout configuration

application/json
  1. body
amount*integer

Payment amount in cents

Range1 <= value <= 2147483647
Example10000
ITBIS*integer

Tax amount (ITBIS) in cents

Range0 <= value <= 2147483647
Example1800
currency?string

ISO 4217 currency of amount and ITBIS. The card is always charged in Dominican pesos, so a USD checkout is converted at the exchange rate current when the checkout is created.

Default"DOP"
Example"DOP"
Value in"DOP""USD"
metadata*|

Optional metadata to associate with the checkout

Example"order-12345"
webhookURL*string

URL to receive payment status webhook notifications

Formaturi
Example"https://example.com/webhooks/payment"
forceNo3DS*boolean

Skip 3D Secure authentication (use with caution)

Examplefalse
statementDescriptor?string

What the cardholder sees on their statement, sent to Azul as AltMerchantName. At most 25 characters, with no quotes or backslashes.

Length1 <= length <= 25
Example"RAPIDOTICKETS BOLETAS"
customer?

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

items?array<>

What is being sold, at most 100 items. Each product is created on first use and renamed on later checkouts. The items must add up to amount.

Items1 <= items <= 100
subscription?

Subscribes the customer to the items at amount per period. Needs customer, 1 to 20 items with one product each, and unitItbis on every item. The organization needs a webhook endpoint. The subscription exists once this checkout is paid, active for its first period with a paid subscription-start invoice. The checkout takes card payments only, and its webhookURL receives no payment notice. Each renewal charges the saved card.

Response Body

Successfully created checkout

application/json
  1. response
id*string

Unique identifier for the created checkout

Formatuuid
Example"550e8400-e29b-41d4-a716-446655440000"
Create a new checkout
curl -X POST 'https://api.rapidopagos.com/checkout' \  -H 'Content-Type: application/json' \  -d '{  "amount": 10000,  "ITBIS": 1800,  "currency": "DOP",  "metadata": "order-12345",  "webhookURL": "https://example.com/webhooks/payment",  "forceNo3DS": false,  "statementDescriptor": "RAPIDOTICKETS BOLETAS",  "items": [    {      "product": {        "externalId": "ticket-type-vip",        "name": "Concierto X, VIP"      },      "quantity": 2,      "unitPrice": {        "amount": 5000,        "currency": "DOP"      },      "unitItbis": 763    }  ]}'
Example Response
{  "id": "550e8400-e29b-41d4-a716-446655440000"}