Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SWAPI


Table of Contents
minLevel2
separatorpipe
 

Info
titleabout

SWAPI
(Softwear Web-API) 
Version: 2.1
Build: 7907
Date: 2017-02-24
Author: Jeroen de Vries 

Version history

25 april 2017

  • Simpelste sendorder uitgelegd

23 februari 2017 (2.1.7907) 

...

Example:
http://testapi.softwear.nl/scripts/foxisapi.dll/sww1.wreq1.mpx?sendorder&token=1660-8920-F99A-11E0-BE50-0800-200C-9A66&custnum=1234&email=jeroen@softwear.nl&title=Dhr&firstname=Jeroen&middlename=de&lastname=Vries&street=Veerdijk&housenum=42&houseadd=e&zipcode=15312MS&city=WORMER&countrycode=NL&remarks=Niet%20op%20maandag%20leveren&shipping=495&discount=1000&refid=65748392&articlecode=12345&color=200/600&size=68&qty=1&price=2995&articlecode=12345&color=200/600&size=74&qty=2&price=3995

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

...