Rivier/ Reference/ shop

Shop invoice client

put/invoices/{id}/client

Set which client of the organisation an invoice is for (null clears it) and who receives it; without recipients they come from the client's primary and default-copied contacts.

Before you call

Credential
Authorization: Bearer $KEY
Scope
shop:write
Mcp
rivier_invoices_client
Graphql
Mutation.shopInvoiceClient
Sdk
shop.invoice.client
Cli
invoices client

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • clientIdstring (uuid) or nullrequired
  • recipientsobject
    • tolist of object
      Default: [].
      • namestring
        Default: . At most 200 characters.
      • emailstring (email)required
        At most 254 characters.
      • contactIdstring (uuid)
    • cclist of object
      Default: [].
      • namestring
        Default: . At most 200 characters.
      • emailstring (email)required
        At most 254 characters.
      • contactIdstring (uuid)

Responses

  • 200application/json
    Success
    • invoiceIdstring (uuid)required
    • clientIdstring (uuid) or nullrequired
    • recipientsobjectrequired
      • tolist of object
        Default: [].
        • namestring
          Default: . At most 200 characters.
        • emailstring (email)required
          At most 254 characters.
        • contactIdstring (uuid)
      • cclist of object
        Default: [].
        • namestring
          Default: . At most 200 characters.
        • emailstring (email)required
          At most 254 characters.
        • contactIdstring (uuid)
  • 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