Generic
Credit Note base
type CreditNote {
ref: string;
issued: string;
recipient: CreditNoteRecipient;
invoiceRefs: string[];
total: {
amount: number;
currency?: string;
};
customInfo?: StringStringTMap<string | number>;
error?: Error;
type?: 'Sent' | 'Received';
}
type CreditNoteRecipient {
taxId: string;
name: string;
customInfo?: StringStringTMap<string | number>;
contact?: {
email?: string;
};
}Some country-specific credit note models extend the base with additional fields such as
lines(line items). Refer to the relevant country model for the full list of required and optional fields.
Field information
Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Sequential number of document |
| string (ISO 8601 date) | Yes | Date of document (issue date) |
| string | Yes | TAX identification number. |
| string | Yes | Company name or name and surname |
| string | No | Recipient email address |
| string array | Yes | Invoices associated with this document |
| number | Yes | The total amount of the document, including tax charged. |
| string | No | Three-letter currency code (ISO 4217-1 alpha-3). Defaults to organisation currency. |
| string (System generated) | No | A value from an enumerated list of types: |
| string map (System generated) | No | When activation errors occur downstream, the transaction will have an Error status with this error object for more detail. { status?: number; message: string; description?: string; } |
Example CSV file
Updated 6 minutes ago