subscriptions
Get Subscription
subscriptions
Get Subscription
Retrieve detailed information about a specific Subscription.
GET
/
v0
/
subscriptions
/
{subscriptionIdOrNumber}
curl --request GET \
--url https://api.fungies.io/v0/subscriptions/{subscriptionIdOrNumber} \
--header 'x-fngs-public-key: <api-key>'
{
"status": "<string>",
"data": {
"subscription": {
"object": "subscription",
"id": "<string>",
"status": "all",
"createdAt": 4503599627370495,
"currentIntervalEnd": 4503599627370495,
"currentIntervalStart": 4503599627370495,
"cancelAtIntervalEnd": false,
"canceledAt": null,
"userId": null,
"user": null,
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderNumber": "<string>",
"order": {
"object": "order",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "<string>",
"status": "PENDING"
},
"lastPaymentId": null,
"lastPaymentNumber": null,
"lastPayment": null
},
"lastPayment": {
"object": "payment",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "one_time",
"number": "<string>",
"status": "PENDING",
"value": 0,
"tax": 0,
"fee": 0,
"currency": null,
"currencyDecimals": null,
"createdAt": 4503599627370495,
"userId": null,
"user": null,
"orderId": null,
"orderNumber": null,
"order": null,
"subscriptionId": null,
"subscription": null,
"invoiceNumber": null,
"invoiceUrl": null
},
"items": [
{
"object": "item",
"quantity": 0,
"value": 0,
"currency": "AFN",
"name": "<string>",
"variant": null,
"plan": null,
"product": {
"object": "product",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "DigitalDownload",
"internalId": null
},
"offer": {
"object": "offer",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalId": null
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customFields": null
}
],
"user": {
"object": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": null,
"email": null,
"details": null,
"internalId": null
}
}
}
Authorizations
Path Parameters
Subscription ID or order number
Response
200
application/json
GET /v0/subscriptions/:subscriptionIdOrNumber Positive response
The response is of type object
.
curl --request GET \
--url https://api.fungies.io/v0/subscriptions/{subscriptionIdOrNumber} \
--header 'x-fngs-public-key: <api-key>'
{
"status": "<string>",
"data": {
"subscription": {
"object": "subscription",
"id": "<string>",
"status": "all",
"createdAt": 4503599627370495,
"currentIntervalEnd": 4503599627370495,
"currentIntervalStart": 4503599627370495,
"cancelAtIntervalEnd": false,
"canceledAt": null,
"userId": null,
"user": null,
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderNumber": "<string>",
"order": {
"object": "order",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "<string>",
"status": "PENDING"
},
"lastPaymentId": null,
"lastPaymentNumber": null,
"lastPayment": null
},
"lastPayment": {
"object": "payment",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "one_time",
"number": "<string>",
"status": "PENDING",
"value": 0,
"tax": 0,
"fee": 0,
"currency": null,
"currencyDecimals": null,
"createdAt": 4503599627370495,
"userId": null,
"user": null,
"orderId": null,
"orderNumber": null,
"order": null,
"subscriptionId": null,
"subscription": null,
"invoiceNumber": null,
"invoiceUrl": null
},
"items": [
{
"object": "item",
"quantity": 0,
"value": 0,
"currency": "AFN",
"name": "<string>",
"variant": null,
"plan": null,
"product": {
"object": "product",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "DigitalDownload",
"internalId": null
},
"offer": {
"object": "offer",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalId": null
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customFields": null
}
],
"user": {
"object": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": null,
"email": null,
"details": null,
"internalId": null
}
}
}