Create Subscription
Outcome - Create a subscription for a user under a specific subscription plan.
Download the Postman Collection from this link.
Subscription Creation Mechanism
Subscription creation is being done by completing one 3DS transaction to save the customer's card and connect it with the subscription. To implement this, please check the Create Intention API documentation
Below are the specific technical details related to the subscription itself, not the Intention in general.
Request Body
Below are the parameters related to the subscription creation; other parameters are explained in the Create Intention API documentation
Subscription Plan ID (subscription_plan_id) | The subscription plan ID from which the subscription inherits its characteristics. | Yes |
Subscription Start Date (subscription_start_date) | The date from which the subscription will start. It's effective if the use_transaction_amount value is false. | No |
Common errors
Common errors
Wrong secret key was used for authentication
404 Not Found
{
"message": "invalid subscription plan id"
}Solution: Make sure that the secret key and plan ID belong to the same Paymob account.
What made this section helpful for you?
What made this section unhelpful for you?
On this page
- Create Subscription