SubScrypt API

Sections

Theme switcher

Create A Purchase Session

Header Parameters

Content-Typestring
API-Keystring Required
Merchant-IDstring Required

Body Parameters

namestring Required

Shown to payer on payment screen.

detailsstring Required

Shown to payer on payment screen.

currencystring

Defaults to USD. Can use another currency type.

recurringboolean

Set as true if used for subscription. Defaults to false

amountnumber Required

Amount of currency.

metadataobject

Optional json data (e.g., invoice number, product ID).

Show child attributes

success_urlstring

The url to redirect your payer upon successful payment.

cancel_urlstring

This url to redirect the payer to if they cancel the payment process.

intervalstring

Required if recurring is set as true.

Enum values:
DayWeekMonthYear
frequencystring

Required if recurring is set a true. Defaults to 0 if not provided

Enum values:
EveryEvery OtherEvery ThirdEvery FourthEvery FifthEvery SixthEvery Seventh
Durationstring
expires_in_hoursnumber

Number of hours before the payment request expires. After expiration, no purchase requests or signature submission requests will be processed.

Response

200
Object

Response Attributes

dataobject

Show child attributes

statusnumber
401
Object

Response Attributes

errorstring

A human-readable text providing additional information, intended to aid the client developer in understanding the error that occurred. This field is optional and should be avoided if there is a concern that it could leak sensitive information.

statusinteger

A code indicating the type of error that occurred. For client authentication failures, invalid_client is commonly used.

400
Object
Invalid

Response Attributes

errorstring

A human-readable text providing additional information, intended to aid the client developer in understanding the error that occurred. This field is optional and should be avoided if there is a concern that it could leak sensitive information.

statusinteger

A code indicating the type of error that occurred. For client authentication failures, invalid_client is commonly used.

500
Object

Response Attributes

errorstring

A human-readable text providing additional information, intended to aid the client developer in understanding the error that occurred. This field is optional and should be avoided if there is a concern that it could leak sensitive information.

statusinteger

A code indicating the type of error that occurred. For client authentication failures, invalid_client is commonly used.

Was this section helpful?

What made this section helpful for you?

What made this section unhelpful for you?

POST

/

Select
1

Response

Was this section helpful?

What made this section helpful for you?

What made this section unhelpful for you?