Skip to main content
POST
Create Draft Credit Note

Authorizations

X-Auth-Token
string
header
required

Authentication token for API access

Body

application/json

Request to create a credit note.

organisationId
string
clientId
string
type
enum<string>

Type of credit note, in plain words. Each accounting system's own spelling is its adapter's business.

Available options:
SalesCredit,
PurchaseCredit
date
string
lineAmountTypes
enum<string>

Whether line amounts are stated before tax, after tax, or with no tax.

Available options:
Exclusive,
Inclusive,
NoTax
reference
string | null
invoiceReference
string | null
linkedInvoiceId
string | null
groupingKey
string | null
invoiceFormat
enum<string> | null
Available options:
None,
Date,
PayElementId,
PoNumber,
TagGroup,
PayrollConfigId
source
string | null
currencyCode
string
lineItems
object[]

Response

OK

Billing's response envelope: the platform's (message.text + message.token, content.data + content.metadata, validationIssues) plus the fields billing sent before it (PRODLAUNCH-416). Those are deprecated, removed on 31 December 2026, and are projections of their replacements so the two cannot disagree.

message
object
required

What happened, as English text and a stable snake_case token to translate from.

content
object
validationIssues
object[] | null
errors
object[] | null
deprecated
read-only

Deprecated: the same issues as validationIssues (reasonText is reason, reasonId is reasonToken, reasonParameters is reasonTokenArguments). Read validationIssues; this will be removed.

metadata
object
deprecated

Deprecated: the same values as content.metadata. Read that; this will be removed.