Skip to content

List usage charges to report

Integration API

List usage charges to report

GET/v1/intake/usage/obligations

Finance reviewers, delivery staff and integration keys. Read-only; lists open usage charges another system may report a figure for, without any billed amount.

Query parameters

  • contract_iduuid

Headers

  • X-Tenant-Slugstring

    The workspace the request acts in.

  • X-Valtor-Advisor-Sessionstring

Response 200

  • dataarray of objectrequired

    Every open usage or percentage charge another system may report a figure for.

    Show 12 child fields
    • obligation_idstringrequired

      The open obligation to report a figure for.

    • contract_idstringrequirednullable

      Its contract.

    • contract_namestringrequirednullable

      The contract's display name.

    • customer_namestringrequirednullable

      The invoice recipient's name.

    • charge_rule_idstringrequired

      The charge rule to report against.

    • charge_labelstringrequirednullable

      Human wording of the charge.

    • inputstringrequired

      amount when the figure is a currency base, quantity otherwise.

    • unitstringrequirednullable

      Unit the quantity is reported in.

    • currencystringrequirednullable

      ISO 4217 currency, only for amount charges.

    • period_startstringrequirednullable

      First day of the service period.

    • period_endstringrequirednullable

      Last day of the service period, inclusive.

    • statusstringrequired

      needs_figure, awaiting_review or accepted. Never shows what the charge bills.

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.

StatusCodeMeaning
422request_validation_failedOne or more request fields are invalid