SOAP Function Call http://soapservername:portnumber/salesorder
This function is used to place a new Sales Order, .
SOAP Parameters:
Parameter |
Value |
Details |
Size |
ACTION |
PLACEORDER |
Soap Action |
String * 20 |
ACCOUNTNO |
Account Number |
String * 10 |
|
INVADDNO |
Invoice Address Counter |
Long |
|
DELADDNO |
Delivery Address Counter |
Long |
|
CONTACTNO |
Contact Number |
Long |
|
CAMPAIGN |
Campaign Code |
String * 20 |
|
ORDERMETHOD |
Order Method |
String * 1 |
|
N = Not Set |
|||
F = By Fax |
|||
R = By Rep |
|||
C = Counter |
|||
E = Email |
|||
O = Online |
|||
P = Post |
|||
V = Verbal |
|||
PAYMETHOD |
Payment Method |
String * 1 |
|
A = On Account |
|||
C = Cash With Order |
|||
N = Cash Sale |
|||
K = Credit Card Paid |
|||
B = BACS |
|||
L = Credit Card |
|||
D = C.O.D. |
|||
P = Pro Forma |
|||
F = Free Of Charge |
|||
M = Commision Only |
|||
CURRENCY |
Currency |
String * 30 |
|
PROJECT |
Project Code |
String * 20 |
|
REQDATE |
Required Date |
||
CRMNO |
CRM Centre |
Long |
|
1ORD1INV |
One Order One Invoice |
Y / N |
|
MULTIDROP |
Multidrop |
Y / N |
|
PAYTRNREF |
Payment Transaction Reference |
String * 20 |
|
NOTES |
Notes |
||
PRODUCTNO |
Product Number |
String * 20 |
|
ACCNO |
Additional Cost Code |
String * 4 |
|
QUANTITY |
Quantity Required |
Real |
|
UNITPRICE |
Unit Price |
Real |
|
TAXCODE |
Tax Code |
String * 4 |
|
COSTQTY |
Cost Based on Quantity |
Real |
|
ITEMNO |
Item Number (Leave blank or 0 - system will |
Long |
|
generate item number) |
|||
Also only applicable if inserting a product. |
|||
DESCRIPTION |
Text Only Line |
Soap Errors:
101 |
Customer account un-known or flagged as Ceased Trading. |
-x |
Internal API Error encountered. |
999 |
Supplied Action not a valid Soap function. |
Example of SOAP Request:
< ?xml version="1.0"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<PLACEORDERREQUEST>
<ACTION>PLACEORDER</ACTION>
<ORDERNO>2323423423423</ORDERNO>
<ACCOUNTNO>T001</ACCOUNTNO>
<ORDERITEM>
<PRODUCTNO>12345678</PRODUCTNO>
<ACCNO></ACCNO>
<QUANTITY>100</QUANTITY>
</ORDERITEM>
<ORDERITEM>
<PRODUCTNO>12345678</PRODUCTNO>
<ACCNO>CARR</ACCNO>
<QUANTITY>1</QUANTITY>
</ORDERITEM>
<PLACEORDERREQUEST>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example of SOAP Response:
<?xml version="1.0"?>
<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>
<Response>
<OrderNo>22148</OrderNo>
</Response>
</soap:Body>
</soap:Envelope>