Skip to main content
GET
/
api
/
public
/
v1
/
subscriptions
/
{subscriptionId}
Get subscription by ID
curl --request GET \
  --url https://app.tagadapay.com/api/public/v1/subscriptions/{subscriptionId} \
  --header 'Authorization: Bearer <token>'
{
  "subscription": {
    "id": "sub_123",
    "status": "active",
    "currency": "USD",
    "quantity": 1,
    "createdAt": "2024-03-20T10:30:00Z",
    "currentPeriodStart": "2024-03-20T00:00:00Z",
    "currentPeriodEnd": "2024-04-20T00:00:00Z",
    "customer": {
      "id": "cus_456",
      "email": "john@example.com",
      "firstName": "John",
      "lastName": "Doe"
    },
    "product": {
      "id": "prod_123",
      "name": "Premium Plan"
    },
    "price": {
      "id": "price_123",
      "recurring": true,
      "interval": "month",
      "intervalCount": 1,
      "currencyOptions": {
        "USD": {
          "amount": 2999
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Enter your API key as: Bearer your-api-key

Path Parameters

subscriptionId
string
required

Response

Successful response

The response is of type any.