Versions Compared

Key

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

...

parameter: coupon:string
unique id of existing coupon.

 

 

...


Using coupons in webshop

The function addCoupon has some additions when using a webshop


K  = discount coupon
C = cashback coupon
T= tegoedbon
U= gift certificate / gift coupon
De waarde van de bonnen mag gewoon meegeschoten worden op het daarvoor bestemde veld (staat in de api)
De bon omschrijving mag alleen uit hoofdletters of getallen zijn: bij voorkeur 13 karakters.

 

Syntax 1: 
http://testapi.softwear.nl/scripts/foxisapi.dll/sww1.wreq1.mpx?[function=]addcoupon&[token=]<shopid>[&email=<email>]&couponid=<couponid >&value=<value>[&format=<xml/html>]

Syntax 2: http://testapi.softwear.nl/addcoupon/<shopid>[/email__<email>]/couponid__<couponid>/value__<value>[/format__<xml/html>]

 

elements in [ ] are optional
elements in <> should be replaced by literals

 

Example: http://testapi.softwear.nl/scripts/foxisapi.dll/sww1.wreq1.mpx?addcoupon&token=1660-8920-F99A-11E0-BE50-0800-200C-9A66&email=jeroen@softwear.nl&couponid=1234567890/value=1000&format=xml

 

Example: http://testapi.softwear.nl/scripts/foxisapi.dll/sww1.wreq1.mpx?addcoupon&token=1660-8920-F99A-11E0-BE50-0800-200C-9A66&couponid=1234567890/value=10%&format=xml

 

parameter: token:string
UUID shopid

 

parameter: email:string
Emailaddress of an existing client. If emailaddress is omitted, a generic coupon will be generated that can be redeemed by any client.

 

parameter: couponid:string
unique id for new coupon.
CouponId’s can contain all alphanumeric characters.
CouponId’s that start with a lowercase letter are special coupons that are redeemable multiple times (like couponcodes that are distributed in newspapers or other media). These coupons are not to be combined with email addresses.

 

All other coupons are redeemable up to their designated value.

 

parameter: value:string
Coupon value in eurocents or a percentage. 
To create a percentage discount coupon, add a percent sign (%) to the value e.g. value=10%


 

...

 

function sendTransit.


This method is used to create a transit order in a Softwear backoffice.

...