# FX-SCH-A-000170

Source: https://xmlvalid.com/rules/FX-SCH-A-000170

> Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).

- Level: error
- Rule sets: Factur-X BASIC rules 1.09
- Context: `/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery`
- Test: `(ram:ShipToTradeParty/ram:PostalTradeAddress and ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID!='') or not (ram:ShipToTradeParty/ram:PostalTradeAddress)`

Validate a document against these rules: https://xmlvalid.com/validate
