v1

latestOpenAPI 3.0.02026-07-26355499.1 KB
Subscriptions

Create a new subscription with credit card details

This endpoint allows PCI merchants to create a new subscription with direct credit card details.

post/v3/subscriptions

Headers

Content-Typestring required

Media type of the body sent to the API.

X-Datestring date-time required

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

X-Loginstring required

Merchant X-Login API Key.

Authorizationstring required

Authorization control hash.

X-Idempotency-Keystring

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

Request body

invoice_idstring required

Unique identifier for the invoice

amountnumber double required

Amount to be charged for the subscription

currencystring required

Three-letter currency code (ISO 4217)

countrystring required

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

descriptionstring

Description of the subscription

client_ipstring

IP address of the client

back_urlstring uri

URL to redirect after payment process

success_urlstring uri

URL to redirect after successful payment

error_urlstring uri

URL to redirect after failed payment

notification_urlstring uri

URL to send payment status notifications

Response

Subscription created successfully

subscription_idinteger

Unique identifier of the created subscription