Skip to main content
GET
Get subscription details

Headers

Content-Type
string
default:application/json
required

Media type of the body sent to the API.

X-Date
string<date-time>
required

ISO8601 Datetime with Timezone (yyyy-MM-dd'T'HH:mm:ssZ)

X-Login
string
required

Merchant X-Login API Key.

Authorization
string
required

Authorization control hash.

X-Idempotency-Key
string

Unique idempotency key for ensuring that the same request is not processed more than once.

Path Parameters

subscription_id
integer<int64>
required

Unique numeric identifier of the subscription to retrieve.

Response

Subscription details retrieved successfully

id
integer
required

Unique identifier of the subscription.

status
enum<string>
required

Current status of the subscription.

Available options:
PENDING,
ACTIVE,
COMPLETED,
CANCELLED,
TERMINATED
start_date
string<date>
required

Date when the subscription started or will start.

creation_date
string<date-time>
required

Timestamp when the subscription was created.

subscription_plan
enum<string>
required

Frequency plan of the subscription.

Available options:
DAILY,
WEEKLY,
MONTHLY,
ANNUALLY
plan_unit
integer
required

The number of units for the subscription plan.

amount
number<double>
required

Amount charged for the subscription.

auto_renewal
boolean
required

Whether the subscription will automatically renew.

renewals
integer
required

The number of times the subscription has been renewed.

currency
string
required

The currency of the subscription amount.

country
string
required

The two-letter country code (ISO 3166-1 alpha-2).

end_date
string<date>

Date when the subscription ended or will end.

last_renovation_date
string<date>

Date of the last renovation.

last_modified_date
string<date-time>

Timestamp when the subscription was last modified.

cancellation_date
string<date> | null

The date the subscription was cancelled.

last_charge_date
string<date>

The date of the last charge attempt.

payment_method
string

The payment method used for the subscription.

invoice_id
string

The identifier for the invoice.

error_url
string<uri>

URL to redirect the user to in case of an error.

success_url
string<uri>

URL to redirect the user to upon successful payment.

back_url
string<uri>

URL to redirect the user back to your site.

description
string

A brief description of the subscription.

deposits
object[]

A list of all deposits that the subscription has generated.