Request Example of Subscription Creation
Key Points
Subscription Creation
- This API enables the setup of subscription plans, allowing for automatic recurring payments. It supports various billing cycles and flexible configurations such as discounts and trial periods.
Subscription Configuration
- Merchants can define custom plans, including: Plan Name and Description.
- Cycle Type: Billing can be based on days, weeks, months, etc.
- Cycle Interval: Defines the frequency of billing (e.g., every 2 days, every month).
- Max Cycle Count: Sets the maximum number of billing cycles.
- Trial Period: Option to offer a trial period before the subscription starts.
- Discounts: Ability to apply discounts for a set number of billing cycles.
Flow diagram
Api Parameters
Authorizations
API Key for Authorization. Format: 'Basic YOUR_API_KEY_HERE'
API Key specific to x-api-key.
Body
Payload for processing subscription payments.
The transaction amount.
15
"1000"
ISO currency code for the transaction (e.g., JPY).
3
"JPY"
Details of the card used for the payment.
Payment method details.
Unique identifier of the merchant.
128
"< Merchant ID >"
Details of the cardholder's billing address.
Details of the subscription being processed.
Unique merchant transaction reference ID.
45
"qwe"
IP address of the customer initiating the transaction.
45
"127.0.0.1"
A JSON object containing the return URLs. (This field is mandatory for 3DS transactions.)
Details of the cardholder's shipping address.
Time zone of the transaction.
128
"Asia/Kuala_Lumpur"
Response
Subscription payment processed successfully.
Indicates whether the transaction was successful.
true
HTTP status code of the transaction.
201
Indicates whether the transaction was live or a test.
false
Type of transaction performed (e.g., CAPTURE).
"CAPTURE"
Response from the payment gateway.
Details about the merchant.
Details of the payment transaction.
Details of the transaction.
Risk assessment details.
Details of the subscription.