What the field is for
The specification's description (above, in German) translates as: "An identifier of a referenced purchase order, issued by the buyer." BT-13 is the number of the buyer's purchase order — the number the buyer gave it, for example in its purchasing system. The buyer uses it to match the invoice to its order. The field is optional, occurs at most once, and the validator does not check its content.
BT-13, BT-14 or BT-10?
| Field | Who issues the number | Example |
|---|---|---|
| BT-13 purchase order reference | the buyer | 4500012345 from its purchasing system |
| BT-14 sales order reference | the seller | the order number in the shop, #1001 |
| BT-10 buyer reference | the buyer, for internal routing | Leitweg-ID, cost centre |
Many shops write their own order number into BT-13. Formally, though, it is a number of the seller. If the buyer asks for its order number on the invoice, its number goes in BT-13. In B2B it is often in BT-10 as well, if the buyer asks for that.
Which rules check the field
| Rule | What it requires | Level in XRechnung |
|---|---|---|
| PEPPOL-EN16931-R008 | no empty element | error |
Where the field is in the file
| Syntax | Element |
|---|---|
| CII | ram:ApplicableHeaderTradeAgreement/ram:BuyerOrderReferencedDocument/ram:IssuerAssignedID |
| UBL | cac:OrderReference/cbc:ID |
Common mistakes
- An empty element because the customer gave no order number → PEPPOL-EN16931-R008, the invoice is rejected. Without a number, leave the element out entirely.
- The shop's number instead of the buyer's: the invoice is valid, but the buyer may not be able to match it to an order.
Example
<!-- CII -->
<ram:ApplicableHeaderTradeAgreement>
...
<ram:BuyerOrderReferencedDocument>
<ram:IssuerAssignedID>4500012345</ram:IssuerAssignedID> <!-- BT-13 -->
</ram:BuyerOrderReferencedDocument>
</ram:ApplicableHeaderTradeAgreement>
<!-- UBL -->
<cac:OrderReference>
<cbc:ID>4500012345</cbc:ID>
</cac:OrderReference>
Sources: KoSIT, XRechnung specification 3.0.2 (BT-13, BT-14, BT-10, section 11.1); XRechnung 3.0.2 validator configuration (PEPPOL-EN16931-R008).