GET
/
plans
/
{id}
/
creditgrants
curl --request GET \
  --url https://api.cloud.flexprice.io/v1/plans/{id}/creditgrants \
  --header 'x-api-key: <api-key>'
{
  "items": [
    {
      "amount": 123,
      "cadence": "ONETIME",
      "created_at": "<string>",
      "created_by": "<string>",
      "currency": "<string>",
      "environment_id": "<string>",
      "expire_in_days": 123,
      "id": "<string>",
      "metadata": {},
      "name": "<string>",
      "period": "DAILY",
      "period_count": 123,
      "plan_id": "<string>",
      "priority": 123,
      "scope": "PLAN",
      "status": "published",
      "subscription_id": "<string>",
      "tenant_id": "<string>",
      "updated_at": "<string>",
      "updated_by": "<string>"
    }
  ],
  "pagination": {
    "limit": 123,
    "offset": 123,
    "total": 123
  }
}

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Path Parameters

id
string
required

Plan ID

Response

200
application/json

OK

The response is of type object.