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)
Example: Increase grantedUnits
Example: Increase grantedUnits
Initial:
Action: Update granted units to 120 units
POST /accounts/acc.fdjsl.313/features/feat.fdjsl.313/entries/<entry_id>
Output
Adjustment units = new granted units - previous granted units
New balance = current balance + adjustment units
Example: Reduce grantedUnits
Example: Reduce grantedUnits
Initial:
Action: Update granted units to 70 units
POST /accounts/acc.fdjsl.313/features/feat.fdjsl.313/entries/<entry_id>
Output
Adjustment units = new granted units - previous granted units
New balance = current balance + adjustment units -> 400 Bad Request
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
account_id corresponding to an account
50
"ACC00001"
feature_id corresponding to a feature
50
"feat.fdjskl.sdkjl"
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
50
"purchase.21HbazIT3JQ.D90jC#1$PURCHASE"
Body
Response
Success response
Get feature credits response