Generic
Invoice base
type Invoice {
id: string;
created: string;
modified: string;
status: InvoiceStatus;
orgId: string;
issued: string;
ref: string;
recipient?: Recipient;
sender?: Sender;
total: {
amount: number;
currency?: string;
};
lines: InvoiceLine[];
taInvoiceRef?: string;
error?: {
name: string;
message: string;
description?: string;
};
invoiceSubmissionDate?: string;
type?: InvoiceType;
}
type Recipient {
taxId: string;
name: string;
address?: Address;
contact?: {
email?: string;
};
}
type Sender {
taxId: string;
name: string;
address?: Address;
contact?: {
email?: string;
};
}
type Address {
line1?: string;
line2?: string;
city?: string;
state?: string;
country: string;
postalCode?: string;
}
type InvoiceLine {
description: string;
price: {
amount: number;
};
quantity: number;
unit?: UnitsOfMeasure;
vat: {
amount: number;
type: 'fixed' | 'percent';
code: TaxCode;
};
}Field information
Name | Type | Required | Description |
|---|---|---|---|
| string (System generated) | No | Unique identifier for the invoice. |
| string | Yes | Sequential number of document |
| string (System generated ISO 8601 date) | No | The timestamp when the invoice was created is in ISO 1806 format. |
| string (System generated ISO 8601 date) | No | The timestamp when the invoice was last updated is in ISO 1806 format. |
| string (System generated) | No | A value from an enumerated list of types: |
| string (System generated) | Yes | The organisation issuing the invoice |
| string (ISO 8601 date) | Yes | Date of document (issue date) |
| string | Yes | Company name or name and surname |
| string | Yes | TAX identification number. |
| string | No | Recipient email address |
| string | No | Address line 1 (Street address/PO Box/Company name). |
| string | No | Address line 2 (Apartment/Suite/Unit/Building). |
| string | No | City/District/Suburb/Town/Village. |
| string | No | State/County/Province/Region. |
| string | Yes | Two-or three-letter country code (ISO 3166 ). |
| string | No | ZIP or postal code |
| Object | No | Automatically present on received invoice (AP flow). Only for instances where the overriding of the organisation's default values is required. |
| string | Yes | Company name or name and surname |
| string | Yes | TAX identification number. |
| string | No | Sender email address |
| string | No | Address line 1 (Street address/PO Box/Company name). |
| string | No | Address line 2 (Apartment/Suite/Unit/Building). |
| string | No | City/District/Suburb/Town/Village. |
| string | No | State/County/Province/Region. |
| string | Yes | Two-or three-letter country code (ISO 3166 ). |
| string | No | ZIP or postal code |
| 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 (ISO 8601 date) | No | Date of invoice. Deprecated. |
| string (System generated) | No | A value from an enumerated list of types: |
| string (System generated) | No | A unique reference assigned by the Tax authority |
| string | Yes | Description of the goods/service |
| number | Yes | Unit price of the good or service. |
| number | Yes | Quantity of the good or service. |
| string | No | A value from an enumerated list as outlined on Units of Measure |
| string | Yes | A value from an enumerated list as outlined on VAT code classification |
| string | Yes | A value from an enumerated list of types: |
| number | Yes | VAT percent or value per item. |
| string map (System generated) | No | When activation errors occur downstream, the transaction will have an Error status, with this error object providing more details. { status?: number; message: string; description?: string; } |
Example CSV file
Updated 18 days ago