Description of message flow regarding new customerorder messages sent to Extend Backend.
Only new customerorder messages is sent, change and cancellation is not possible.
XML Struktur
LxirEnvelope(1)
LxirEnvelope/Header(1)
Element | Code | Man. | Explanation |
DateTime | Y | Date and time stamp when message was created | |
DocumentNumber | N | Counter for document no | |
DocumentVersion |
| N | Document version |
DocumentName | N | Document name | |
ToPartnerUser | Y | Short name [KORT] on the client the message refers to. Code available from contact person for integration. | |
ToPartner | Y | [KORT] | |
FromPartnerUser | Y | [KORT] | |
FromPartner | N | Fixed value, Short name loading system |
LxirEnvelope /Body(1)
LxirEnvelope /Body /LxirCustomerOrder(n)
Element | Code | Man | Explanation |
OperationCode | Y | OperationCode for Order valid values 1 | |
Number | Y | Internal ordernumber | |
OrderDate | N | Orderdate (ÅÅÅÅ-MM-DD hh:mm) | |
AskedDeliveryDate | Y | Desired delivery date (ÅÅÅÅ-MM-DD tt:mm) (enligt incoterms) | |
Notes | N | Notes | |
OrderType | N | Order type (1 "Normalorder", 2 "Quickorder",4 "Expressorder",2048 "Season order",4096 "Webshop order") Default is 1 “NormalOrder” if elementet is missing. | |
PaymentType | Y | Payment (INV "Billing", AUTO Autogiro", ADV "Advance payment", FAC "Factoring", CAS "Cash payment", LAS "Last schrift", CC "Credit card", MOH "Manual on hold", FAM "Invoice me") | |
FreightFree | Y | freight free | |
OrderNumberEndCustomer | N | Ordernummer for end customer | |
YourReference | N | Your reference | |
OurReference | N | Our reference | |
InvoiceEmail | N | E-mail address for invoice. Can put attribute in this element to control which system is master: DataMaster = "Internal" atl. "External". | |
OrderEmail | N | E-mail address for invoice. Can put attribute in this element to control which system is master: DataMaster = "Internal" atl. "External". | |
OrderPhoneNumber | N | Phone number | |
AdvisePhoneNumber | N | Advise phone number | |
PartialDelivery | N | Allow partial delivery of orders. The item is omitted completely if value is missing and default value is to be used. | |
TransportCondition | N | Transport Conditions | |
DeliveryMethod | N | Method of delivery | |
HandlingMark | N | Handling remark | |
ShippingMark | N | Shippment remark |
LxirCustomerOrder/Customer(1)
Element | Code | Man | Explanation |
OperationCode | N | Operational code for customer valid value is 1 | |
Number | N | Customer number | |
CustomerType | 1 (Private) 2 (Business) 4(Unknown) 8 (Reseller) | N | Customer Type (according to valid customer types, see code field). The item is omitted completely if value is missing and default value is to be used. |
CustomerGroup | N | Customer group as a customer should belong to | |
CompanyOrName | Y | Delivery name | |
LastName | N | Private customers only | |
InvoiceName | Y | Name of invoice | |
VATNumber | N | VAT-Nummer | |
PaymentTermsNumberOfDays | N | Normal number of days (For calculation of due date) | |
InternalCustomer | N | Internal customer | |
PalletRegistrationNumber |
| N | Pallet registration number. Can put attribute in this element to control which system is master: DataMaster = "Internal" atl. "External". |
ProductName |
| N | Product name | Max 80 characters |
|
|
|
|
|
OrderQuantity |
| Y | OrderQuantity | Eg. 0.00 |
SalesUnit |
| Y | Order Number Unit |
|
Price |
| N | Price per ordered unit excluding VAT | Eg. 0.0000 |
Currency |
| Y | Currency. SEK,EUR USD (ISO 4217) |
|
VatPercent |
| N* | VAT in % | * If price is explicitly stated, VatPercent must also be set to a valid value |
HandlingMark |
| N | Handling remark |
|
ShippingMark |
| N | Goods remark |
|
CustomerProductNumber |
| N | Customer product number | string |
ExternalFreeTextData |
| N | External free text data that can be reported in order and despatch advica | Max 1600 characters |
<?xml version="1.0" encoding="UTF-8"?>
<LxirEnvelope>
<Header DateTime="2011-12-05T13:43:24" DocumentNumber="25" DocumentVersion="1.0" DocumentName="LxirCustomerOrder" ToPartnerUser="GBG" ToPartner="GBG" FromPartnerUser="GBG" FromPartner="XOE"/>
<Body>
<LxirCustomerOrder>
<OrderHeader>
<OperationCode>1</OperationCode>
<Number>12371</Number>
<OrderDate>2010-01-01T00:10:10.00000</OrderDate>
<AskedDeliveryDate>2010-01-01</AskedDeliveryDate>
<Notes>not</Notes>
<OrderType>1</OrderType>
<PaymentType>INV</PaymentType>
<FreightFree>false</FreightFree>
<OrderNumberEndCustomer>oendcust</OrderNumberEndCustomer>
<YourReference>YourReference</YourReference>
<OurReference>OurReference</OurReference>
<InvoiceEmail>InvoiceEmail</InvoiceEmail>
<OrderEmail>OrderEmail</OrderEmail>
<OrderPhoneNumber>OrderPhoneNumber</OrderPhoneNumber>
<AdvisePhoneNumber>AdvisePhoneNumber</AdvisePhoneNumber>
<PartialDelivery>false</PartialDelivery>
<TransportCondition>TransportCondition</TransportCondition>
<DeliveryMethod>DeliveryMethod</DeliveryMethod>
<HandlingMark>HandlingMark</HandlingMark>
<ShippingMark>ShippingMark</ShippingMark>
<Customer>
<OperationCode>1</OperationCode>
<Number/>
<CustomerType>1</CustomerType>
<CustomerGroup>Provision 15%</CustomerGroup>
<CompanyOrName>CompanyOrName</CompanyOrName>
<LastName>LastName</LastName>
<InvoiceName>InvoiceName</InvoiceName>
<VATNumber>VATNumber</VATNumber>
<PaymentTermsNumberOfDays>10</PaymentTermsNumberOfDays>
<InternalCustomer>false</InternalCustomer>
<Addresses>
<Address Type="Delivery">
<Address1>rad1</Address1>
<Address2>rad2</Address2>
<Address3>rad3</Address3>
<PostalCode>57174</PostalCode>
<City>rad5</City>
<State/>
<CountryCode>SE</CountryCode>
</Address>
</Addresses>
</Customer>
<External>
<ExternalFreeTextData>X-23</ExternalFreeTextData>
<External/>
</OrderHeader>
<OrderRows>
<Row>
<OperationCode>1</OperationCode>
<Position/>
<SubPosition/>
<Notes/>
<ProductNumber>T001Taberg</ProductNumber>
<ProductName>etttvåtre</ProductName>
<OrderQuantity>25</OrderQuantity>
<SalesUnit>st</SalesUnit>
<Price>1.2</Price>
<Currency>SEK</Currency>
<VatPercent/>
<HandlingMark/>
<ShippingMark/>
<CustomerProductNumber>CT001Taberg</CustomerProductNumber>
</Row>
<Row>
<OperationCode>1</OperationCode>
<Position/>
<SubPosition/>
<Notes/>
<ProductNumber>T002Taberg</ProductNumber>
<ProductName>MyNameIsTwo</ProductName>
<OrderQuantity>25</OrderQuantity>
<SalesUnit>st</SalesUnit>
<Price>2.2</Price>
<Currency>SEK</Currency>
<VatPercent/>
<HandlingMark/>
<ShippingMark/>
<External>
<ExternalFreeTextData>X-23</ExternalFreeTextData>
<External/>
</Row>
</OrderRows>
</LxirCustomerOrder>
</Body>
</LxirEnvelope>