INVCanonical documentInvoice
Overview
Public canonical Invoice contract used to request payment for goods or services supplied against purchase orders and shipments.
Endpoints
Use the schema endpoint for machine validation and the document page for implementation guidance.
GETDownload Invoice schema
application/schema+jsonapplication/json/schemas/v1/invoice.schema.jsonInvoice JSON Schema
GETInvoice
text/html/schemas/invoiceInvoice documentation page
Payload Structure
The contract is shown in reading order. The envelope identifies the document, metadata captures source context, and data contains the business payload and nested line structures.
Envelope
InvoicePublic canonical Invoice contract used to request payment for goods or services supplied against purchase orders and shipments.
docTypeCanonical document type. For invoices this value is INV.
correlationIdStable UUID used to trace this invoice through order, shipment, and payment workflows.
timestampUTC timestamp indicating when DataShift created the canonical invoice.
metadatadataMetadata
InvoiceMetadataPublic source metadata retained for integration troubleshooting.
sourceLanguagejsoncxmlsourceVersionData
InvoiceDataBusiness payload for the invoice.
invoiceNumberSupplier-generated invoice number.
invoiceDateDate and time the supplier issued the invoice.
dueDatePayment due date.
purposeInvoice business purpose.
standardcreditMemodebitMemolineLevelCreditMemolineLevelDebitMemooperationWhether this creates a new invoice or cancels an existing one
newdeleteinvoiceOriginWhether invoice was originated by supplier or buyer (ERS)
supplierbuyerisInformationOnlyIf true, invoice is for information only and no action required
isERSEvaluated Receipt Settlement invoice
documentReferenceReference to previous invoice (for credit/debit memos or cancellations)
poReferencesPurchase orders being invoiced.
asnReferenceShipment notice reference when invoicing against a dispatched shipment.
supplierSupplier or seller issuing the invoice.
billToBuyer billing party.
soldToSold-to party (may differ from bill-to)
shipToSee public DataShift EDI documentation for allowed values.
remitToAddress where payment should be sent
shippingDetailsShipping information for the invoiced goods
paymentTermsPayment terms and conditions
contactsContact information for various roles
commentsInvoice-level comments or notes
lineItemsInvoice lines. Use uniqueLineKey when available to correlate back to PO and ASN lines.
invoiceSummaryextrinsicsPartner-specific extension fields that are not part of the canonical core contract.
Line Items
InvoiceLineIteminvoiceLineNumberSupplier's line number for this invoice line.
uniqueLineKeyStable DataShift line key from the original purchase order.
poLineReferenceLine number from the purchase order being invoiced.
asnLineReferenceLine number from the ship notice
supplierItemIdSupplier's part/item number
buyerItemIdBuyer's part/item number
descriptionItem description
quantityQuantity invoiced.
unitOfMeasureSee public DataShift EDI documentation for allowed values.
unitPriceUnit price
subtotalLine subtotal before tax and adjustments.
taxAmountTax amount for this line
taxRateTax rate as percentage (e.g., 10 for 10%)
discountAmountDiscount amount for this line
shippingAmountShipping charge for this line
grossAmountSubtotal + tax + shipping before discounts
netAmountGross amount minus discounts
currencyISO 4217 currency code for this line.
manufacturerPartIdManufacturer's part number
manufacturerNameManufacturer name
countryOfOriginCountry where item was manufactured
serialNumbersSerial numbers for serialized items
batchIdLot/batch ID
classificationProduct classification codes
commentsLine-level comments
Summary
InvoiceSummaryInvoice totals, tax, discounts, and amount due.
subtotalSum of all line subtotals
shippingAmountTotal shipping charges
specialHandlingAmountSpecial handling charges
taxAmountTotal tax amount
taxBreakdownTax breakdown by type/jurisdiction
discountAmountTotal discount amount
grossAmountSubtotal + tax + shipping + handling before discounts
netAmountGross amount minus discounts
depositAmountPrepayment/deposit already received
dueAmountAmount due (net - deposits)
currencySee public DataShift EDI documentation for allowed values.
