Rivier/ Reference/ shop

Invoice a customer of the business

post/payments/invoice-customer

Invoice a customer of the business: the invoice is made and finalised through the invoices module (its number, its lines, its rules) and, if asked, gets a payment link on the business's own Stripe account for the total. An agent works inside the limits the owner set for payment requests: an invoice over the amount cap, in another currency or for a customer outside the list waits for the owner, and the draft stays until it is approved.

Before you call

Credential
Authorization: Bearer $KEY
Scope
shop:write
Mcp
rivier_payments_invoice_customer
Graphql
Mutation.shopInvoiceCustomerCreate
Sdk
shop.invoiceCustomer.create
Cli
shop invoice customer create

Request bodyapplication/json, required

  • currencystringrequired
    Pattern: ^[A-Za-z]{3}$.
  • contactobjectrequired
    • namestringrequired
      At most 200 characters.
    • emailstring (email)
      At most 254 characters.
    • addressLineslist of string
      Default: [].
    • countrystring
      Pattern: ^[A-Z]{2}$.
    • vatIdstring
      At most 30 characters.
    • registrationstring
      At most 60 characters.
    • citystring
      At most 100 characters.
    • postalCodestring
      At most 20 characters.
    • endpointSchemestring
      Pattern: ^[0-9A-Z]{4}$.
    • endpointIdstring
      Pattern: ^\S(.{0,48}\S)?$.
    • paymentAccountstring
      Pattern: ^[A-Za-z0-9 ]{4,42}$.
    • paymentBicstring
      Pattern: ^[A-Za-z0-9]{8,11}$.
    • languagestring
      At most 20 characters. Pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$.
  • dueDatestring
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • issueDatestring
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • supplyDatestring
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • notesstring
    Default: . At most 2000 characters.
  • paymentTermsstring
    At most 500 characters.
  • referenceobject
    • kindstringrequired
      At most 40 characters.
    • idstringrequired
      At most 120 characters.
  • lineslist of objectrequired
    • descriptionstringrequired
      At most 500 characters.
    • quantitynumber
      Default: 1. At most 1000000.
    • unitstring
      Default: C62. At most 10 characters.
    • unitAmountMinorintegerrequired
      At least 0. At most 99999999999.
    • discountMinorinteger
      Default: 0. At least 0. At most 99999999999.
    • taxRateBpinteger
      At least 0. At most 10000.
    • taxCategorystring
      One of: S, Z, E, AE, K, G, O, L, M. Default: S.
    • productIdstring (uuid)
    • sourceobject
      • kindstringrequired
        At most 40 characters.
      • idstringrequired
        At most 120 characters.
  • requestPaymentboolean
    Default: true.
  • idempotencyKeystringrequired
    At most 100 characters.

Responses

  • 200application/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