Entitlements
List feature credits entries of a feature for an account
This API let’s you to list the feature credits entries of a feature for an account
GET
/
accounts
/
{account_id}
/
features
/
{feature_id}
/
entries
curl --request GET \
--url https://api.togai.com/accounts/{account_id}/features/{feature_id}/entries \
--header 'Authorization: <authorization>'
{
"data": [
{
"id": "purchase.20rvWRxQcQK.0ZwPG",
"source": "PURCHASE",
"status": "ACTIVE",
"granted": 10,
"balance": 5,
"effectiveFrom": "2020-01-01T00:00:00Z",
"effectiveUntil": "2021-03-04T14:25:10Z"
},
{
"id": "purchase.20rvWRxQcQK.0ZwPG",
"source": "PURCHASE",
"status": "ACTIVE",
"granted": 10,
"balance": 5,
"effectiveFrom": "2020-01-01T00:00:00Z",
"effectiveUntil": "2021-03-04T14:25:10Z"
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
account_id
string
requiredaccount_id corresponding to an account
feature_id
string
requiredfeature_id corresponding to a feature
Query Parameters
pageSize
integer
Maximum page size expected by client to return the record list.
NOTE: Max page size cannot be more than 50. Also 50 is the default page size if no value is provided.
nextToken
string
Pagination token used as a marker to get records from next page.
Response
200 - application/json
data
object[]
nextToken
string
curl --request GET \
--url https://api.togai.com/accounts/{account_id}/features/{feature_id}/entries \
--header 'Authorization: <authorization>'
{
"data": [
{
"id": "purchase.20rvWRxQcQK.0ZwPG",
"source": "PURCHASE",
"status": "ACTIVE",
"granted": 10,
"balance": 5,
"effectiveFrom": "2020-01-01T00:00:00Z",
"effectiveUntil": "2021-03-04T14:25:10Z"
},
{
"id": "purchase.20rvWRxQcQK.0ZwPG",
"source": "PURCHASE",
"status": "ACTIVE",
"granted": 10,
"balance": 5,
"effectiveFrom": "2020-01-01T00:00:00Z",
"effectiveUntil": "2021-03-04T14:25:10Z"
}
],
"nextToken": "eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEwMCwgInNvcnRPcmRlciI6ICJhc2MifQ=="
}