Create subscription
Create a new subscription.
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 assigned to the subscription.
Unique identifier that the merchant assigned to the payment plan.
Object that contains information about the customer’s payment details.
Format: YYYY-MM-DD
Subscription’s start date.
Name of the subscription. This value replaces the name inherited from the payment plan.
Description of the subscription. This value replaces the description inherited from 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
.
Format: YYYY-MM-DD
Subscription’s end date.
Note: If you provide values for both length and endDate,
our gateway uses the value for endDate to determine when the subscription should end.
Total number of billing cycles. To indicate that the subscription should run indefinitely, send a value of 0
.
This value replaces the length inherited from the payment plan.
Note: If you provide values for both length and endDate,
our gateway uses the value for endDate to determine when the subscription should end.
Number of billing cycles that the merchant wants to pause payments for. For example, if the merchant wants to offer a free trial period.
Array of customField objects.
Response
Successful request. We created the subscription.
Unique identifier that the merchant assigned to the subscription.
Unique identifier of the terminal that the subscription is linked to.
Object that contains information about the secure token.
Name of the subscription.
A snapshot of the subscription’s current state.
Format: YYYY-MM-DD
Subscription’s start date.
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.
Description of the subscription.
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
.
Format: YYYY-MM-DD
Subscription’s end date.
Note: If you provide values for both length and endDate,
our gateway uses the value for endDate to determine when the subscription should end.
Total number of billing cycles. To indicate that the subscription should run indefinitely, send a value of 0
. This value replaces the length inherited from the payment plan.
Note: If you provide values for both length and endDate, our gateway uses the value for endDate to determine when the subscription should end.
Number of billing cycles that the merchant wants to pause payments for. For example, if the merchant wants to offer a free trial period.
Array of customField objects.