Valqio Docs
Reference

Reason codes

Common Valqio reason codes for runtime decisions, access checks, and settlement.

Reason codes explain why Valqio allowed, denied, or settled a runtime request.

Enforcement codes

CodeMeaningRetry automatically?
ALLOWEDThe action can run.No
SOFT_CAPA soft usage threshold was reached.No
HARD_CAPA hard usage limit blocked the action.No
RATE_LIMITEDA rate limit blocked the action.Sometimes, after backoff
INSUFFICIENT_CREDITSThe subject does not have enough credits.No
METER_NOT_FOUNDThe request referenced an unknown meter.No
ENTITLEMENT_MISSINGRequired access was missing.No
INVALID_REQUESTThe request shape was invalid.No

Access and parameter codes

Feature and parameter checks can also return:

  • PLAN_BOOLEAN_FLAG_GRANTED
  • PLAN_FLAG_VALUE_GRANTED
  • DENIED_NO_ENTITLEMENT
  • DENIED_NO_GRANT
  • FLAG_NOT_FOUND
  • CONFIG_NOT_FOUND
  • DEFAULT_SELECTED
  • VARIANT_SELECTED

Use these for product routing, support, and logs. Do not expose raw integration detail to end users.

Settlement codes

Settlement operations can return the following codes. The amount codes apply to adjustment APIs, not SDK commit or release calls.

CodeMeaning
SETTLEMENT_APPLIEDCommit or release was applied.
SETTLEMENT_INVALID_TRANSITIONThe reservation is not in a state that allows the requested command.
SETTLEMENT_AMOUNT_REQUIREDAn adjustment omitted its target amount.
SETTLEMENT_AMOUNT_INVALIDAn adjustment target was not a positive integer.
SETTLEMENT_NOT_FOUNDThe reservation ID was not found.
SETTLEMENT_IDEMPOTENCY_CONFLICTThe idempotency key was reused for a conflicting command.
SETTLEMENT_BALANCE_INSUFFICIENTSettlement could not complete because balance state no longer allows it.

For customer responses, map reason codes to your own product language. For investigation, search Console by request ID, subject, meter, reservation ID, or idempotency key.

On this page