Rápido Pagos
Subscriptions

Get a subscription

GET
/subscription/{id}

Retrieves a subscription with its status, its items and its current period.

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

The subscription

application/json
  1. response
id*string
Formatuuid
Example"9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19"
customerId*string
Formatuuid
Example"7d4f1c2e-3b5a-4e8f-9a1d-2c6b8e0f4a13"
externalId*|

The subscription's ID in the merchant's system

status*string

canceled is final. A subscription exists only once its first payment is approved or its trial starts.

Value in"trialing""active""past-due""paused""canceled"
statusReason*string

Why the subscription has its status. sign-up-abandoned marks a sign-up that was never paid.

Value in"payment-approved""trial-started""payment-declined""payment-method-invalid""payment-method-missing""processor-setup""dunning-exhausted""hard-decline""trial-ended-without-payment-method""cancel-requested""pause-requested""sign-up-abandoned"
currency*string
Example"DOP"
Value in"DOP""USD"
recurringInterval*string
Example"month"
Value in"week""month""year"
billingAnchor*|

The time each period starts from

Formatdate-time
currentPeriodStart*|
Formatdate-time
Example"2026-10-10T16:45:18.000Z"
currentPeriodEnd*|
Formatdate-time
Example"2026-11-10T16:45:18.000Z"
nextBillingAt*|

When the next period is billed

Formatdate-time
paymentMethodId*|

The card that pays the subscription

Formatuuid
scheduledChange*|||

A change that waits for its effectiveAt

onDunningExhausted*string

What happens when collection ends without payment

Value in"cancel""pause"
trialStart*|
Formatdate-time
trialEnd*|
Formatdate-time
trialEndBehavior*|

What happens when the trial ends without a card

Value in"pause""cancel"null
resumeAt*|

When a paused subscription resumes

Formatdate-time
metadata*string|null
canceledAt*|

When the cancel was requested

Formatdate-time
endedAt*|

When the subscription stopped

Formatdate-time
endReason*|

The reason of the change that canceled or paused it

Value in"payment-approved""trial-started""payment-declined""payment-method-invalid""payment-method-missing""processor-setup""dunning-exhausted""hard-decline""trial-ended-without-payment-method""cancel-requested""pause-requested""sign-up-abandoned"null
endInitiator*|

Who canceled or paused it

Value in"customer""merchant""system"null
cancellationReason*|
Value in"too-expensive""missing-features""switched-service""unused""customer-service""low-quality""too-complex""other"null
cancellationComment*string|null
lastDeclineCode*|

The ISO code of the last decline once collection ends

startedFromCheckoutId*|

The checkout whose payment started the subscription

Formatuuid
Example"550e8400-e29b-41d4-a716-446655440000"
version*integer

Goes up on every change of a field or an item that this object shows

Example1
items*array<>

What each period bills. Amounts are in cents of the subscription currency, ITBIS included.

paymentMethod*|null
creditBalance*integer

The customer's credit in the subscription currency, in cents

Example0
createdAt*string
Formatdate-time
Example"2026-10-10T16:44:02.000Z"
updatedAt*string
Formatdate-time
Example"2026-10-10T16:45:18.000Z"
Get a subscription
curl -X GET 'https://api.rapidopagos.com/subscription/9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19'
Example Response
{  "id": "9b2e7c41-5d8a-4f3e-b6c1-0a4d2e8f7b19",  "customerId": "7d4f1c2e-3b5a-4e8f-9a1d-2c6b8e0f4a13",  "externalId": "string",  "status": "trialing",  "statusReason": "payment-approved",  "currency": "DOP",  "recurringInterval": "month",  "billingAnchor": "2019-08-24T14:15:22Z",  "currentPeriodStart": "2026-10-10T16:45:18.000Z",  "currentPeriodEnd": "2026-11-10T16:45:18.000Z",  "nextBillingAt": "2019-08-24T14:15:22Z",  "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",  "scheduledChange": {    "action": "cancel",    "effectiveAt": "2019-08-24T14:15:22Z",    "initiator": "customer",    "cancellationReason": "too-expensive",    "cancellationComment": "string"  },  "onDunningExhausted": "cancel",  "trialStart": "2019-08-24T14:15:22Z",  "trialEnd": "2019-08-24T14:15:22Z",  "trialEndBehavior": "pause",  "resumeAt": "2019-08-24T14:15:22Z",  "metadata": "string",  "canceledAt": "2019-08-24T14:15:22Z",  "endedAt": "2019-08-24T14:15:22Z",  "endReason": "payment-approved",  "endInitiator": "customer",  "cancellationReason": "too-expensive",  "cancellationComment": "string",  "lastDeclineCode": "string",  "startedFromCheckoutId": "550e8400-e29b-41d4-a716-446655440000",  "version": 1,  "items": [    {      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",      "quantity": 0,      "unitAmount": 0,      "unitItbis": 0    }  ],  "paymentMethod": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "brand": "string",    "maskedPan": "string",    "expiration": "string",    "status": "active"  },  "creditBalance": 0,  "createdAt": "2026-10-10T16:44:02.000Z",  "updatedAt": "2026-10-10T16:45:18.000Z"}