Create a subscription
The method allows you to connect a subscription
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/jsonBody
Subscription request body
merchantIdstringRequiredExample:
Merchant ID in the system
86f1f78d-77c6-4bb1-b67c-8389218ce646billingLinkIdstringRequiredExample:
Payment link identifier (coins will be debited from the linked address)
9b0838e7-54ca-4da7-9634-d497a47f9381titlestringRequiredExample:
Subscription name
PremiumdescriptionstringOptionalExample:
Subscription Description
Premium subscription. With premium subscription u can use premium functionsspendIntervalintegerRequiredExample:
Write-off period in minutes. For convenience, you can specify: -1 - daily write-off; -2 - weekly write-off; -3 - monthly write-off;
-1currencystringRequiredExample:
Payment currency. You can specify a fiat currency or any other, the amount will be automatically converted to the currency of the payment link
USDamountstringRequiredExample:
Payment amount in the specified currency
7.99webhookUrlstringOptionalExample:
Subscription charge notification URL
https://merchant.domain/webhooks/subscriptionResponses
200Success
application/json
post
/api-gateway/recurrents/create-subscription200Success
Last updated