Push a usage figure
Push a usage figure
Finance reviewers, delivery staff and integration keys. Stages a figure from another system for review; only finance accepts it and nothing here bills.
Headers
Idempotency-KeystringA unique value per intended change, such as a UUID. Sending the same key again replays the first answer instead of acting twice.
X-Tenant-SlugstringThe workspace the request acts in.
X-Valtor-Advisor-Sessionstring
Request body
obligation_iduuidnullablecharge_rule_iduuidnullableperioddatenullablevaluenumber or stringrequiredunitstringnullablesource_systemstringrequiredsource_refstringrequirednotestringnullable
Response 201
dataobjectrequiredThe pushed figure, staged for review.
Show 4 child fields
import_idstringrequiredThe import batch holding the figure.
idstringrequiredThe actual created.
obligation_idstringrequiredThe obligation the figure was matched to.
statestringrequiredAlways review_required: only finance accepts it.
Errors
Every error has the same shape: an error object with a stable code and a message for people. 403 is a missing role, 404 a row this workspace does not hold, 409 a state conflict, 422 a broken business rule. A missing or invalid token answers 401 on every signed-in route.
| Status | Code | Meaning |
|---|---|---|
| 404 | usage_obligation_not_found | No open usage charge matches; list them at /v1/intake/usage/obligations |
| 409 | actual_already_accepted | This charge already has an accepted figure; a correction is made in Valtor |
| 409 | actual_already_awaiting_review | A figure for this charge is already waiting for review |
| 422 | request_validation_failed | One or more request fields are invalid |