XML Structure LxirEnvelope(1) LxirEnvelope/Header(1) Element | Data | Mand. | Description | DateTime | | Y | Date and time when message was created. | DocumentNumber | | Y | Document number/identifier | DocumentVersion | | Y | Document version | DocumentName | | Y | Document name | ToPartnerUser | | Y | Shortname [Name] of the client the message integration relates to. Agreed with Lxir integration technicians. | ToPartner | | Y | [Name] | FromPartnerUser | | Y | [Name] | FromPartner | | Y | Fixed internal value |
LxirEnvelope /Body(1) LxirEnvelope /Body /LxirSupplierOrder(n) Element | Data | Mand. | Description | OperationCode | 1 | Y | Operation code. Today only new orders are possible, i e code 1. | OrderType | ”Purchase”; ”Suborder” | Y | XML Attribute defining if the supplier order is of type purchase or suborder | Number | | Y | Internal purchase number or suborder number | OrderDate | | Y | Order date | AskedDeliveryDate | | Y | Asked delivery date (according to incoterms) | Notes | | Y | Notes | OrderNumberEndCustomer | | N | End customer order number (in case of purchase order) | AdviceToPhoneNumber | | N | Advice to phone number | AdviseToEmail | | N | Advice to email address | HandlingMark | | Y | Handling mark | ShippingMark | | Y | Shipping mark | InvoiceMark | | Y | Invoice mark | OriginalOrderYourReference | | N | Purchase field only relates to original customer order’s YourReference value | OriginalOrderOurReference | | N | Purchase field only relates to original customer order’s OurReference value | TermsOfPayment | | Y | Payment terms according to supplier agreement | AdministrativeInstruction | | Y | General administrative instruction regarding handling of sub-/purchase order at supplier | PurchaseApprovalType | | N | This is using to identify if the approval is need and which type of approval Is it. |
LxirSupplierOrder/OrderReference(2) Element | Data | Mand. | Description | ReferenceType | Your;Our | Y | Type of order reference | Name | | Y | Name of order reference | Phone | | N | Phone number | Fax | | N | Fax number | Email | | N | Email address |
LxirSupplierOrder/Transport(1) Element | Data | Mand. | Description | TransportCondition | | Y | Transport condition | DeliveryMethod | | Y | Method of delivery | ForwarderName | | Y | Forwarder name | CustomerNumberAtForwarder | | N | If existing - Customer number at forwarder | | | | |
LxirSupplierOrder/Customer(1) Element | Data | Mand. | Description | Number | | N | Customer number | CompanyOrName | | Y | Delivery name | LastName | | N | Last name, private customers only | InvoiceName | | Y | Invoice name | VATNumber | | N | VAT-Number |
LxirSupplierOrder/Customer/Addresses/Address(2) Element | Data | Mand. | Description | Type | ”Delivery”;”Invoice” | Y | Type of address, XML attribute | Address1 | | Y | Address field 1 | Address2 | | N | Address field 2 | Address3 | | N | Address field 3 | PostalCode | | Y | Postal code | City | | Y | City | State | | N | State | CountryCode | | Y | Country code (SE=Sverige) (ISO 3166-1) |
LxirSupplierOrder/Customer/DeliveryWarehouse Element | Data | Mand. | Description | WarehouseOwnerType | 1,2 | Y | Describes who owns the warehouse | GLN | | N | GLN Number of the warehouse |
LxirSupplierOrder/Supplier(1) Element | Data | Mand. | Description | Number | | Y | Supplier number | Name | | Y | Supplier name | OrganizationNumber | | Y | Organization number | Phone | | Y | Phone number | Fax | | Y | Fax number | AgreementName | | Y | Supplier agreement name (Lxir’s internal) |
LxirSupplierOrder/Supplier/ Address(1) Element | Data | Mand. | Description | Address1 | | Y | Address field 1 | Address2 | | N | Address field 2 | Address3 | | N | Address field 3 | PostalCode | | Y | Postal code | City | | Y | City | State | | N | State | CountryCode | | Y | Country code (SE=Sverige) (ISO 3166-1) |
LxirSupplierOrder/OrderRows(1)/Row(n) Element | Data | Mand. | Description | OperationCode | 1 | Y | Operation code, valid value is 1 (Add) | Position | | Y | Position (radnummer) | SubPosition | | Y | Delposition (rad) | Notes | | Y | Note | SupplierProductNumber | | Y | Supplier’s product number | SupplierProductName | | Y | Supplier’s product name | ProductNumber | | Y | Lxir’s product number | ProductName | | Y | Lxirs product name | Quantity | | Y | Quantity | Unit | | Y | Unit for ordered quantity | Price | | Y | Price according to supplier agreement | Currency | | Y | Currency related to Price | VatPercent | | Y | Vatpercent related to Price | TotalGrossWeight | | Y | Gross weight per row in total (kg) | DeliveryDate | | Y | Calculated delivery date | CustomerOrderedSalesUnitQuantity | | N | Sales quantity. In case of purchase order only. Informative data. | CustomerOrderedSalesUnit | | N | Sales unit. In case of purchase order only. Informative data. | CustomerSalesPrice | | N | Price per unit ex VAT. In case of purchase order only. Informative data. | CustomerSalesPriceCurrency | | N | Currenc code. In case of purchase order only. Informative data. | CustomerSalesPriceVatPercent | | N | Vat percentage. In case of purchase order only. Informative data. | HandlingMark | | Y | Handling mark of row | ShippingMark | | Y | Shipping mark of row | ManufacturePartNumber | | N | Manufacture part number | InternalPartNumber | | N | Internal part number | CustomerProductNumber | | N | Customer product number known as warehouse part number on UI |
|