Get subscription

Retrieves a subscription created by a recurring checkout (recurring on POST /api/v1/checkout/init). A subscription of another merchant or another shopper is 404, as an unknown one is.

Call this from your server with your merchant credentials — never from a browser or app. The shopper is identified by email in the X-Customer-Email header; you only see that shopper's subscriptions.

Status values:

ValueDescription
pending_paymentThe first payment is not confirmed yet
creatingThe first payment is confirmed; the subscription is being created
activeRenewing every period
past_dueA renewal failed and is being retried
canceledEnded
failedThe first payment was rejected; nothing was created
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The subscription_id (sub_…).

Headers
string
required
length ≥ 3

The shopper's email, as sent to POST /api/v1/checkout/init (case-insensitive).

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json