SWAPI
Table of Contents | ||||
---|---|---|---|---|
|
Info | ||
---|---|---|
| ||
SWAPI |
Version history
25 april 2017
- Simpelste sendorder uitgelegd
23 februari 2017 (2.1.7907)
...
Basic sendorder:
Barcode available? The sendorder should contain: token, barcode, refid
No barcode available? The sendorder should contain: token, article code, color, size, qty and refid
parameter: token:string
UUID shopid
...
parameter:refid:string(10)
Reference order number.
This number uniquely identifies the order. The same number can be used with the cancelorder function to cancel an order in the backoffice.
...
parameter: articlecode:string
Articlecode as found in datafeed.
parameter: color:string
Colorcode as found in datafeed.
If there is a subcolor, add this to the color with a slash in it. For example: color: 0001/043.
A colorcode should not have a slash in it, or else this will give an error with the sendorder because of the subcolor which is expected.
parameter: size:string
Size as found in datafeed. When mailcolor/sucolor or mailcolor/cup are both used, concatenate them both with a slash ( / ) in between .
parameter: qty:integer
Nr. Pieces sold of most recently mentioned article
parameter: price:integer
Price of most recently mentioned article times 100
Price includes VAT
If price=0, Softwear will use the price that it knows for the article.
If price is less than known in Softwear, the difference will be treated as a discount.
The previous 5 parameters can be repeated as many times as needed to express the complete salesorder.
The order of these parameters is significant: articlecode, color, size, qty, price.
Return values
Results are returned in HTML.
On success, OK is returned, otherwise a human readable error message is returned.
...
parameter: switches:string
comma separated string of switches.
list returns a list emailaddresses for all active clients
detail returns details for client specified by email address parameter (default).
only wholesale:
parameter: banknr:string
returns the bank account number of the customer, if available.
...
function setClient.
This method is used to add or update a client order in a Softwear backoffice.
...
parameter: telephone:string
Customers telephone
parameter: born:date<dd-mm-yyyy>
Customers birth date
parameter (wholesale): legalname:string
Company name
...
parameter (wholesale): vatnr:string
VAT nr
parameter (wholesale): banknr:string
Bank account number
parameter: name:string
Name of customer
...