Retrieve the details of a specific subscription using its token.
Notes:
- Requires a valid API Key with access to the profile.
- The token must match a subscription created under your profile.
Method: GET
Path: https://api.blockbee.io/subscription/fetch/
Parameters
Query Parameters
apikey
string
•Required
API Key provided by BlockBee's Dashboard. Unsure how to get yours? Check this tutorial.
Note: The API key can also be sent as a header named apikey
.
Returns
Returns the details of the specified subscription.
subscription
object
Contains detailed information about the subscription.
Token associated with the subscription.
Subscription or payment link for the customer.
Indicates if the subscription is active.
User identifier in your system.
Customer e-mail.
Timestamp of the subscription's expiration (may be null).
List of completed payments for the subscription.
Token for the specific payment.
The value of the payment.
The cryptocurrency used for the payment.
Duration in seconds.
FIAT amount received for the payment.
true
if the payment is paid.
true
if the payment is pending blockchain confirmation.
true
if the payment is partially paid.