Create payment plan
Use this method to create a payment schedule that you can assign customers to.
Note: This method is part of our Repeat Payments feature. To help you understand how this method works with our Subscriptions endpoints, go to Repeat Payments.
When you create a payment plan you need to provide a unique paymentPlanId that you use to run follow-on actions:
- Retrieve Payment Plan - View the details of the payment plan.
- Update Payment Plan - Update the details of the payment plan.
- Delete Payment Plan - Delete the payment plan.
- Create Subscription - Subscribe a customer to the payment plan.
The request includes the following settings:
- type - Indicates if our gateway or the merchant collects payments. If the merchant manually collects payments, integrate with the Pay Manual Subscription method.
- recurringOrder - Amount of each payment if the gateway automatically collect payments.
- setupOrder - Setup fee that our gateway immediately collects from the customer's payment method.
- onUpdate and onDelete - Indicates what happens to associated subscriptions if the merchant updates or deletes the payment plan.
Path parameters
Unique identifier that we assigned to the terminal.
Headers
Bearer authentication
Unique identifier that you generate for each request. You must use the UUID v4 format for the identifier. For more information about the idempotency key, go to Idempotency.
Request body
Response
Successful request. We created the payment plan.
Changes
No recorded changes to this endpoint across all 1 revision of this API.