SubmittedDocument
One invoice or credit note with all its lines. A newer
source_updated_atreplaces the document and every line: a line left out of the newer version is removed.A credit note is a document of its own, with its own
document_id. It never voids or replaces the invoice it credits: the invoice stays as it was, and the credit note reduces the return in its own period.Amounts are signed as printed. Lines may carry either sign, so a discount line on an invoice is negative. The totals decide: the sum of line
net, and the sum of linevat, must not be negative on an invoice or positive on a credit note. Otherwise the document is refused withtotal_sign_invalid.- actionDiscriminatorconst:upsertrequired
- clientType: string
_ref max length:255requiredYour id for the client legal entity. Unique within your partner account.
- counterpartyType:
_country requiredWhere the customer or supplier is established. Drives the VAT number checks and the counterparty columns on listings.
- counterpartyType: string
_name max length:255requiredThe other party to the document. The customer on a sale, the supplier on a purchase.
- currencyType:required
ISO 4217.
- documentType: string
_id max length:255requiredYour permanent id for the document. Never reused. A credit note has its own.
- documentType: "invoice" or "credit_note"enum
_type required - invoiceType: stringFormat: date
_date requiredOn a credit note, the credit note's own date.
- invoiceType: string
_number max length:255requiredAs printed. On a credit note, the credit note's own number.
- Properties: 9linesType: 1…required
- sourceType: stringFormat: date-time
_updated _at requiredWhen the document last changed in your ERP. Orders versions of the document.
- taxType:
_jurisdiction requiredThe country of the client's VAT registration the document falls under: the registration whose VAT number the client issued or received the invoice under. For OSS and IOSS sales it is the registration country, not the consumer's: VAT IT takes the consumer's country from the ship countries or
counterparty_country. An ISO 3166-1 alpha-2 country, or an ISO 3166-2 subdivision where VAT IT files below country level (CA-QC). - counterpartyType: string
_vat _number max length:32The customer's or supplier's VAT number with its country prefix, as printed. Required when a line's tax code needs it: B2B cross-border and reverse charge in every EU country.
- eType: string
_invoice _reference max length:255The e-invoice clearance id, for example the KSeF number (PL) or SDI id (IT).
- originalType: stringFormat: date
_invoice _date full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21
- originalType: string
_invoice _number max length:255On a credit note, the invoice it credits, whenever it credits one invoice. Links the two.
- shipType:
_from _country Where the goods left from. Required for goods that cross a border.
- shipType:
_to _country Where the goods arrived. Required for goods that cross a border. The consumer's country for OSS goods.
- taxType: stringFormat: date
_point _date The date of supply or payment, when it differs from the invoice date. PL and CZ use it to set the period.