CostSheets
CreditGrants
Credit Notes
Customers
Wallets
Invoices
Entitlements
Environments
Events
Features
Payments
Plans
Integrations
Subscriptions
Tenants
Users
CreditGrants
Get credit grants
Get credit grants with the specified filter
GET
/
creditgrants
Copy
curl --request GET \
--url https://api.cloud.flexprice.com/v1/creditgrants \
--header 'x-api-key: <api-key>'
Copy
{
"items": [
{
"cadence": "ONETIME",
"created_at": "<string>",
"created_by": "<string>",
"credits": 123,
"currency": "<string>",
"environment_id": "<string>",
"expiration_duration": 123,
"expiration_duration_unit": "DAY",
"expiration_type": "NEVER",
"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
Enter your API key in the format x-api-key <api-key>*
Query Parameters
Required range:
1 <= x <= 1000
Required range:
x >= 0
Available options:
asc
, desc
Specific filters for credit grants
Available options:
published
, deleted
, archived
Response
200
application/json
OK
The response is of type object
.
Copy
curl --request GET \
--url https://api.cloud.flexprice.com/v1/creditgrants \
--header 'x-api-key: <api-key>'
Copy
{
"items": [
{
"cadence": "ONETIME",
"created_at": "<string>",
"created_by": "<string>",
"credits": 123,
"currency": "<string>",
"environment_id": "<string>",
"expiration_duration": 123,
"expiration_duration_unit": "DAY",
"expiration_type": "NEVER",
"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
}
}
Assistant
Responses are generated using AI and may contain mistakes.