Entitlements
Update a feature credits entry
This API let's you to update the following attributes: effectiveUntil and granted
- effectiveUntil: must be in future
- granted: must be greater than the existing usage (previous granted - current balance)
patch/accounts/{account_id}/features/{feature_id}/entries/{entry_id}
Path parameters
account_idstring required
Example:ACC00001
account_id corresponding to an account
feature_idstring required
Example:feat.fdjskl.sdkjl
feature_id corresponding to a feature
entry_idstring required
Example:purchase.21HbazIT3JQ.D90jC#1$PURCHASE
entryId corresponding to a particular entitlement/overage grant entry
Formats:
- If source of entry is an entitlement grant rate card in price plan: schedule_id#pricing_cycle_start_date$PRICE_PLAN
- If source of entry is an entitlement overage rate card in price plan: schedule_id#pricing_cycle_start_date$OVERAGE
- If source of entry is a purchase: purchase_id#int_index$PURCHASE
Request body
Response
Success response
Example response
{
"id": "purchase.20rvWRxQcQK.0ZwPG$1",
"effectiveFrom": "2021-03-04T14:25:10Z",
"effectiveUntil": "2021-05-20T01:00:10Z",
"granted": 15,
"balance": 10,
"used": 10
}