AdvanceService
Click here for a complete list of operations.
SendOrder
Send an order from Eshop to ERP
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /AdvanceService.asmx HTTP/1.1 Host: edata.gr Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://edata.gr/SendOrder" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <Authenticate xmlns="http://edata.gr/"> <UserName>string</UserName> <PassWord>string</PassWord> </Authenticate> </soap:Header> <soap:Body> <SendOrder xmlns="http://edata.gr/"> <SalesOrder> <SalesOrderHeader> <order_date>string</order_date> <order_eshop_id>string</order_eshop_id> <order_payment>string</order_payment> <order_carrier>long</order_carrier> <order_total_val>double</order_total_val> <order_shipping_val>double</order_shipping_val> <order_handling_val>double</order_handling_val> <order_total_discounts>double</order_total_discounts> <order_comments>string</order_comments> <deliv_fname>string</deliv_fname> <deliv_lname>string</deliv_lname> <deliv_address>string</deliv_address> <deliv_postcode>string</deliv_postcode> <deliv_city>string</deliv_city> <deliv_country>string</deliv_country> <deliv_phone>string</deliv_phone> <cust_vat_number>string</cust_vat_number> <cust_fname>string</cust_fname> <cust_lname>string</cust_lname> <order_fname>string</order_fname> <order_lname>string</order_lname> <order_email>string</order_email> <order_phone>string</order_phone> </SalesOrderHeader> <SalesOrderRows> <SalesOrderRow> <item_row_line>long</item_row_line> <item_sku>string</item_sku> <item_quantity>long</item_quantity> <item_row_price>double</item_row_price> <item_unit_base_price>double</item_unit_base_price> </SalesOrderRow> <SalesOrderRow> <item_row_line>long</item_row_line> <item_sku>string</item_sku> <item_quantity>long</item_quantity> <item_row_price>double</item_row_price> <item_unit_base_price>double</item_unit_base_price> </SalesOrderRow> </SalesOrderRows> </SalesOrder> </SendOrder> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendOrderResponse xmlns="http://edata.gr/"> <SendOrderResult> <erpOrderId>string</erpOrderId> <statusCode>string</statusCode> <errorCode>string</errorCode> <errorMsg>string</errorMsg> </SendOrderResult> </SendOrderResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /AdvanceService.asmx HTTP/1.1 Host: edata.gr Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <Authenticate xmlns="http://edata.gr/"> <UserName>string</UserName> <PassWord>string</PassWord> </Authenticate> </soap12:Header> <soap12:Body> <SendOrder xmlns="http://edata.gr/"> <SalesOrder> <SalesOrderHeader> <order_date>string</order_date> <order_eshop_id>string</order_eshop_id> <order_payment>string</order_payment> <order_carrier>long</order_carrier> <order_total_val>double</order_total_val> <order_shipping_val>double</order_shipping_val> <order_handling_val>double</order_handling_val> <order_total_discounts>double</order_total_discounts> <order_comments>string</order_comments> <deliv_fname>string</deliv_fname> <deliv_lname>string</deliv_lname> <deliv_address>string</deliv_address> <deliv_postcode>string</deliv_postcode> <deliv_city>string</deliv_city> <deliv_country>string</deliv_country> <deliv_phone>string</deliv_phone> <cust_vat_number>string</cust_vat_number> <cust_fname>string</cust_fname> <cust_lname>string</cust_lname> <order_fname>string</order_fname> <order_lname>string</order_lname> <order_email>string</order_email> <order_phone>string</order_phone> </SalesOrderHeader> <SalesOrderRows> <SalesOrderRow> <item_row_line>long</item_row_line> <item_sku>string</item_sku> <item_quantity>long</item_quantity> <item_row_price>double</item_row_price> <item_unit_base_price>double</item_unit_base_price> </SalesOrderRow> <SalesOrderRow> <item_row_line>long</item_row_line> <item_sku>string</item_sku> <item_quantity>long</item_quantity> <item_row_price>double</item_row_price> <item_unit_base_price>double</item_unit_base_price> </SalesOrderRow> </SalesOrderRows> </SalesOrder> </SendOrder> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SendOrderResponse xmlns="http://edata.gr/"> <SendOrderResult> <erpOrderId>string</erpOrderId> <statusCode>string</statusCode> <errorCode>string</errorCode> <errorMsg>string</errorMsg> </SendOrderResult> </SendOrderResponse> </soap12:Body> </soap12:Envelope>