Create a new 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.
apiKeyAuthorizationBearer <token>An API key of the organization the request acts for, created in the dashboard and sent as "Authorization: Bearer ".
Checkout configuration
application/json- body
amount*integerPayment amount in cents
1 <= value <= 214748364710000ITBIS*integerTax amount (ITBIS) in cents
0 <= value <= 21474836471800currency?stringISO 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.
"DOP""DOP""DOP""USD"metadata*|Optional metadata to associate with the checkout
"order-12345"webhookURL*stringURL to receive payment status webhook notifications
uri"https://example.com/webhooks/payment"forceNo3DS*booleanSkip 3D Secure authentication (use with caution)
falsestatementDescriptor?stringWhat the cardholder sees on their statement, sent to Azul as AltMerchantName. At most 25 characters, with no quotes or backslashes.
1 <= length <= 25"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.
1 <= items <= 100subscription?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.
Successfully created checkout
application/json- response
id*stringUnique identifier for the created checkout
uuid"550e8400-e29b-41d4-a716-446655440000"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 } ]}'{ "id": "550e8400-e29b-41d4-a716-446655440000"}