Shop credit note request
post/invoices/{id}/credit-notes
Ask for a credit note against a numbered invoice (the whole invoice or chosen lines). A person issues it.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
shop:write- Mcp
rivier_invoices_credit_note_request- Graphql
Mutation.requestCreditNote- Sdk
shop.creditNote.request- Cli
shop credit note request
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- reasonstringrequiredAt most 300 characters.
- fullbooleanDefault: false.
- lineslist of objectDefault: [].
- descriptionstringrequiredAt most 500 characters.
- quantitynumberDefault: 1. At most 1000000.
- unitstringDefault: C62. At most 10 characters.
- unitAmountMinorintegerrequiredAt least 0. At most 99999999999.
- discountMinorintegerDefault: 0. At least 0. At most 99999999999.
- taxRateBpintegerAt least 0. At most 10000.
- taxCategorystringOne of: S, Z, E, AE, K, G, O, L, M. Default: S.
- productIdstring (uuid)
- sourceobject
- kindstringrequiredAt most 40 characters.
- idstringrequiredAt most 120 characters.
- kindstringrequired
- descriptionstringrequired
- idempotencyKeystringrequiredAt most 120 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring