Rápido Pagos
Subscriptions

Create a checkout for a subscription's open invoice

POST
/subscription/{id}/checkout

Creates a checkout that lets the customer pay the subscription's open invoice by card, for the invoice's amounts. The sale runs with 3D Secure and saves the card. The checkout takes no wallet and expires 24 hours after its creation, and its outcome reaches the organization's webhook endpoint as invoice and subscription events. While a checkout of the invoice still waits for payment details, the route answers 200 with that checkout and creates no other.

Authorization

apiKey
headerAuthorizationBearer <token>

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

Path Parameters

id*string

The ID of the subscription

Formatuuid
Example"9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19"

Response Body

A checkout of the open invoice that still waits for payment details

application/json
  1. response
id*string

The ID of the checkout that pays the subscription's open invoice. Its page posts the card to POST /checkout/{id}.

Formatuuid
Example"550e8400-e29b-41d4-a716-446655440000"
Create a checkout for a subscription's open invoice
curl -X POST 'https://api.rapidopagos.com/subscription/9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19/checkout'
Example Response
{  "id": "550e8400-e29b-41d4-a716-446655440000"}