Create payment plan
Create a new payment plan.
Path parameters
Unique identifier that we assigned to the terminal.
Headers
Bearer authentication of the form Bearer <token>, where token is your auth token.
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
Unique identifier that the merchant assigns to the payment plan.
Name of the payment plan.
Indicates how the merchant takes the payment from the customer’s account.
manual
- The merchant manually collects payments from the customer.automatic
- The terminal automatically collects payments from the customer.
Indicates how often the merchant or the terminal collects a payment from the customer.
Indicates whether any changes that the merchant makes to the payment plan apply to existing subscriptions.
update
- Changes apply to existing subscriptions.continue
- Changes don’t apply to existing subscriptions.
Indicates what happens to existing subscriptions if the merchant deletes the payment plan.
complete
- Stops existing subscriptions.continue
- Continues existing subscriptions.
Unique identifier of the terminal that the payment plan is assigned to.
Description of the payment plan.
Object that contains information about the initial cost that a customer pays to set up the subscription.
Object that contains information about the cost of each payment.
Note: Send this object only if the value for type is automatic
.
Object that contains information about the cost of each payment.
To indicate that the payment plan should run indefinitely, send a value of 0
.
Array of custom fields that you can use in subscriptions linked to the payment plan.
Response
Successful request. We created the payment plan.
Unique identifier that the merchant assigns to the payment plan.
Name of the payment plan.
Indicates how the merchant takes the payment from the customer’s account.
manual
- The merchant manually collects payments from the customer.automatic
- The terminal automatically collects payments from the customer.
Indicates how often the merchant or the terminal collects a payment from the customer.
Indicates whether any changes that the merchant makes to the payment plan apply to existing subscriptions.
update
- Changes apply to existing subscriptions.continue
- Changes don’t apply to existing subscriptions.
Indicates what happens to existing subscriptions if the merchant deletes the payment plan.
complete
- Stops existing subscriptions.continue
- Continues existing subscriptions.
Unique identifier of the terminal that the payment plan is assigned to.
Description of the payment plan.
Object that contains information about the initial cost that a customer pays to set up the subscription.
Object that contains information about the cost of each payment.
Note: Send this object only if the value for type is automatic
.
Object that contains information about the cost of each payment.
To indicate that the payment plan should run indefinitely, send a value of 0
.
Array of custom fields that you can use in subscriptions linked to the payment plan.