Skip to main content
POST
Create a new subscription with credit card 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.

Body

application/json

Subscription details with credit card information

invoice_id
string
required

Unique identifier for the invoice

amount
number<double>
required

Amount to be charged for the subscription

currency
string
required

Three-letter currency code (ISO 4217)

country
string
required

Two-letter country code (ISO 3166-1 alpha-2)

payer
object
required
subscription
object
required
credit_card
object
required
description
string

Description of the subscription

client_ip
string

IP address of the client

back_url
string<uri>

URL to redirect after payment process

success_url
string<uri>

URL to redirect after successful payment

error_url
string<uri>

URL to redirect after failed payment

notification_url
string<uri>

URL to send payment status notifications

Response

Subscription created successfully

subscription_id
integer

Unique identifier of the created subscription