Retrieve subscription
Use this method to retrieve information about a subscription.
To retrieve a subscription, you need its subscriptionId. You sent the subscriptionId in the request of the Create subscription method.
Note: If you don’t have the subscriptionId, use our List subscriptions method to search for the subscription.
Our gateway returns information about the following for the subscription:
- Payment plan the subscription is linked to.
- Secure token that represents cardholder’s payment details.
- Current state of the subscription, including its status, next due date, and invoices.
- Fees for setup and the cost of the recurring order.
- Subscription length, end date, and frequency.
We also return the paymentPlanId and the secureTokenId, which you can use to perform follow-on actions.
Path parameters
Headers
Bearer authentication of the form Bearer <token>, where token is your auth token.
Response
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.
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.