GET
/
v0
/
subscriptions
/
{subscriptionId}
curl --request GET \
  --url https://api.fungies.io/v0/subscriptions/{subscriptionId} \
  --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": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "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
    }
  }
}

Authorizations

x-fngs-public-key
string
header
required

Path Parameters

subscriptionId
string
required

GET /v0/subscriptions/:subscriptionId Parameter

Response

200
application/json
GET /v0/subscriptions/:subscriptionId Positive response
status
string
required
Allowed value: "success"
data
object
required