Saltar al contenido principal
GET
Get a subscription

Autorizaciones

x-api-key
string
header
requerido

Parámetros de ruta

id
string<uuid>
requerido

Respuesta

Success.

id
string<uuid>
requerido
status
enum<string>
requerido
Opciones disponibles:
ACTIVE,
FAILING,
PAUSED,
CANCELLED,
COMPLETED
amount
number
requerido
currency
string
requerido
billingPeriod
enum<string>
requerido
Opciones disponibles:
WEEKLY,
BIWEEKLY,
MONTHLY,
QUARTERLY,
SEMIANNUAL,
YEARLY
chargedPeriods
integer
maxBillingCycles
integer | null

Null means it runs until cancelled.

failedAttempts
integer

Consecutive failures within the current cycle.

maxFailedAttempts
integer
failedBillingCycles
integer
maxFailedBillingCycles
integer

The subscription is cancelled when this is reached.

nextBillingDate
string<date-time> | null
lastBillingDate
string<date-time> | null
startedAt
string<date-time>
cancelledAt
string<date-time> | null
endedAt
string<date-time> | null
createdAt
string<date-time>
updatedAt
string<date-time>
customer
object | null
card
object | null

The card, masked. The full number and the stored token are never returned.

totalCollected
number

Detail endpoint only. Sum of every pending and confirmed payment.

daysActive
integer

Detail endpoint only.