Rivier/ Reference/ accounting

Draft a supplier bill; it reaches the books when a person approves it

post/accounting/bills

Before you call

Credential
Authorization: Bearer $KEY
Scope
accounting:write
Mcp
rivier_accounting_bill_draft
Graphql
Mutation.accountingDraftBill
Sdk
accounting.bill.draft
Cli
accounting bill draft

Request bodyapplication/json, required

  • supplierIdstring (uuid)required
  • numberstring
    Default: . At most 80 characters.
  • currencystring
    Pattern: ^[a-z]{3}$.
  • issueDatestringrequired
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • dueDatestring
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • lineslist of objectrequired
    • descriptionstringrequired
      At most 300 characters.
    • accountstringrequired
      expense or asset account code At most 40 characters.
    • netMinorintegerrequired
      At least 0. At most 99999999999.
    • taxRateBpinteger
      Default: 0. At least 0. At most 10000.
    • taxCategorystring
      One of: S, Z, E, AE, K, G, O, L, M. Default: S.
  • poKindstring
    At most 40 characters.
  • poIdstring
    At most 120 characters.
  • receiptIdstring (uuid)
  • memostring
    Default: . At most 500 characters.
  • idempotencyKeystringrequired
    At most 120 characters.

Responses

  • 201application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown