Order and Invoice Structured Data: OrderItem, Payment Properties, and Billing Relations
How Schema.org Order, Invoice, and OrderItem types connect, which properties to use for payment and line items, and common markup mistakes.
This page summarises Schema.org definitions for commerce transactions: the Order, Invoice, and OrderItem types, the properties that tie them together, and the payment and status fields both types share. Use it when you need to mark up order confirmations, bills, or line-level quantities in JSON-LD, RDFa, or microdata and want the vocabulary’s exact types and wording.
Order vs Invoice: what each type means
Section titled “Order vs Invoice: what each type means”An Order is the receipt side of a purchase: what the customer agreed to buy. An Invoice is the money side: what is owed for goods or services.
An order is a confirmation of a transaction (a receipt), which can contain multiple line items, each represented by an Offer that has been accepted by the customer.
— Schema.org, Order
A statement of the money due for goods or services; a bill.
— Schema.org, Invoice
In practice, one checkout may produce an Order on the confirmation page and an Invoice on a billing or account statement. Schema.org also allows several orders on one invoice or one order linked to an invoice, via dedicated link properties (see below). Neither type is a substitute for the other: an order describes the transaction composition; an invoice describes amounts due and payment status.
Both types sit under Thing > Intangible and are aligned with UN/CEFACT (unece:Order, unece:Invoice) in the official definitions on Order and Invoice.
OrderItem: line items, quantity, and delivery
Section titled “OrderItem: line items, quantity, and delivery”An OrderItem is a single line on an order—not the whole order.
An order item is a line of an order. It includes the quantity and shipping details of a bought offer.
— Schema.org, OrderItem
| Property | Expected type | Role |
|---|---|---|
orderedItem |
OrderItem, Product, or Service |
What was bought (often nested Product / Service) |
orderQuantity |
Number or QuantitativeValue |
Count ordered; if omitted, assume 1 per Schema.org |
orderItemNumber |
Text |
Line identifier |
orderItemStatus |
OrderStatus |
Status for this line only |
orderDelivery |
ParcelDelivery |
Shipment for this line |
On the parent Order, acceptedOffer holds the accepted Offer objects (product, quantity, price combinations), while orderedItem can list OrderItem entries. orderDelivery on the order covers delivery for the whole order or can appear on individual items. Parcel deliveries link back through partOfOrder: “the overall order the items in this delivery were included in.”
Linking Order and Invoice: referencesOrder and partOfInvoice
Section titled “Linking Order and Invoice: referencesOrder and partOfInvoice”Billing and checkout markup often fails because the order–invoice relationship is missing or reversed.
| Property | On type | Points to | Meaning |
|---|---|---|---|
referencesOrder |
Invoice |
Order |
Order(s) this invoice covers; one or more orders may be combined into a single invoice |
partOfInvoice |
Order |
Invoice |
This order is paid as part of the referenced invoice |
The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
— Schema.org, referencesOrder
The order is being paid as part of the referenced Invoice.
— Schema.org, partOfInvoice
Use consistent identifiers (orderNumber, confirmationNumber, invoice identifier) so parsers can match graph nodes. Put referencesOrder on the invoice when the invoice is the main entity; use partOfInvoice on the order when the order page is primary and should point at a consolidated bill.
Order properties: buyer, seller, discounts, and status
Section titled “Order properties: buyer, seller, discounts, and status”Beyond line items, Order carries party, pricing, and lifecycle fields:
| Property | Expected type | Notes |
|---|---|---|
customer |
Organization or Person |
Party placing the order or paying |
seller |
Organization or Person |
Seller; supersedes merchant |
broker |
Organization or Person |
Intermediary; prefer seller/buyer when unclear |
billingAddress |
PostalAddress |
Billing address for the order |
orderNumber |
Text |
Transaction identifier |
orderDate |
Date or DateTime |
When the order was placed |
confirmationNumber |
Text |
Confirms order or payment received; also on Invoice |
orderStatus |
OrderStatus |
Current order state |
discount |
Number or Text |
Discount applied |
discountCode |
Text |
Redemption code |
discountCurrency |
Text |
ISO 4217 (e.g. USD) or other formats per property docs |
isGift |
Boolean |
Gift for someone other than the buyer |
paymentUrl |
URL |
Where to send payment (order only) |
OrderStatus enumeration members include OrderProcessing, OrderInTransit, OrderDelivered, OrderPaymentDue, OrderPickupAvailable, OrderCancelled, OrderReturned, and OrderProblem. Use the same enum for orderItemStatus when lines differ from the header status.
Invoice properties: amounts due, billing period, and payment status
Section titled “Invoice properties: amounts due, billing period, and payment status”Invoice focuses on what must be paid and when:
| Property | Expected type | Notes |
|---|---|---|
totalPaymentDue |
MonetaryAmount or PriceSpecification |
Total due |
minimumPaymentDue |
MonetaryAmount or PriceSpecification |
Minimum payment required now |
paymentDueDate |
Date or DateTime |
Due date; supersedes paymentDue |
scheduledPaymentDate |
Date |
Scheduled pay date |
paymentStatus |
PaymentStatusType or Text |
Paid or unpaid |
billingPeriod |
Duration |
Interval used to compute the invoice |
accountId |
Text |
Account the payment applies to |
provider |
Organization or Person |
Service or goods provider |
customer |
Organization or Person |
Same semantics as on Order |
Shared payment fields on both Order and Invoice: paymentMethod, paymentMethodId (e.g. last four digits), and paymentDueDate. On invoices only: paymentStatus.
Minimal JSON-LD shape (illustration)
Section titled “Minimal JSON-LD shape (illustration)”Short fragments clarify nesting; adapt IDs and URLs to your site.
{ "@context": "https://schema.org", "@type": "Order", "orderNumber": "O-1001", "orderDate": "2026-11-16", "orderStatus": "https://schema.org/OrderProcessing", "seller": { "@type": "Organization", "name": "Example Shop" }, "customer": { "@type": "Person", "name": "Jane Doe" }, "acceptedOffer": { "@type": "Offer", "itemOffered": { "@type": "Product", "name": "Widget" }, "price": "29.99", "priceCurrency": "USD" }, "partOfInvoice": { "@type": "Invoice", "identifier": "INV-5001", "totalPaymentDue": { "@type": "MonetaryAmount", "value": "29.99", "currency": "USD" }, "paymentDueDate": "2026-11-30" }}acceptedOffer carries the commercial terms; OrderItem is appropriate when you expose per-line quantity, orderItemNumber, or line-level orderDelivery.
Common mistakes
Section titled “Common mistakes”- Mixing Order and Invoice on one URL without explaining which entity is
mainEntityOfPage, or duplicating conflicting totals on both types. - Omitting
referencesOrder/partOfInvoicewhen an order and invoice exist in the same account flow. - Using
merchantinstead ofselleron new pages. - Using
paymentDueinstead ofpaymentDueDate. - Setting
orderQuantityonly on the order while line detail lives inacceptedOfferalone—pickOrderItem+orderQuantitywhen you need explicit line semantics; remember default quantity 1 whenorderQuantityis absent on OrderItem. - Ticket-only properties (
dateIssued,ticketNumber, etc.) on order pages—the cluster defines those onTicket, not onOrder; keep ticket markup on ticket types.
How to check this on your site
Section titled “How to check this on your site”-
Open your order or invoice page source and confirm
@typeisOrder,Invoice, orOrderItemas intended, comparing property names to Order, Invoice, and OrderItem. -
For each property you use, check the Expected Type column on the same pages (for example
customer,referencesOrder,totalPaymentDue). -
If an order and invoice both exist, verify the link:
Invoice.referencesOrderand/orOrder.partOfInvoicematch the same business IDs (referencesOrder, partOfInvoice). -
Cross-check the property list for your Schema.org release against Schema.org Version 30.1 sections for Invoice, Order, and OrderItem.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page disagrees with the live Schema.org definitions or you need a clarification, write to yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about.