Français  /  Hulp op afstand  /  API  /  Login  
 


 


 


 


 


 


 


 


API

Info API voorbeelden

Type api : Json Rest

Request url : https://cloudpos.be/api/?licname=licentienaam&token=verkregentoken&get-products

Categorie, product, subproduct onderscheid : Bekijken

Limiet : 500 connecties per dag, indien er meer requests nodig zijn kan dit worden besproken met onze technische dienst, na 5 verkeerde inlogpogingen word het ip adres voor 30 min geblokkeerd

Logingegevens voor testdoeleinden of een operationele klant kan u aanvragen via info@cloudpos.be

Error :
"errorcode" = 1001 Token and name can not be empty
"errorcode" = 1002 Token or name not valid
"errorcode" = 1003 Limit of '500' requests per day reached, next request possible 'datetime'
"errorcode" = 1004 5 bad logins reached, your ip adress is blocked till 'datetime'
"errorcode" = 1005 No license for this module


Functies


Get Post Update



Categorie aanmaken :

Functie : post-category

“name” categorie naam !!

Response :

"id" = id van de nieuwe categorie

Ok
"success" = 1

Error
"errorcode" = 2001 name can not be empty






Product aanmaken :

Functie : post-product

“name” product naam !!
“categorylink” id van de categorie waarin het product zit ondergebracht !!
“price” product prijs !!
“tax” product btw tarief !!
“taxtable” product tafel btw tarief
“quantity” product stock
“barcode” product barcode

Response :

"id" = id van het nieuw product
“modtime” aangemaakte unix time stamp

Ok
"success" = 1

Error
"errorcode" = 2001 name can not be empty
"errorcode" = 2002 price can not be empty
"errorcode" = 2003 tax can not be empty
"errorcode" = 2004 categorylink can not be empty





Subproduct aanmaken :

Functie : post-subproduct

“name” subproduct naam !!
“price” subproduct prijs !!
“tax” subproduct btw tarief !!
“taxtable” subproduct tafel btw tarief
“quantity” subproduct stock

Response :

"id" = id van het nieuw subproduct
“modtime” aangemaakte unix time stamp

Ok
"success" = 1

Error
"errorcode" = 2001 name can not be empty
"errorcode" = 2002 price can not be empty
"errorcode" = 2003 tax can not be empty





Klant aanmaken :

Functie : post-customer

“name” “fistname” or “companyname” naam, voornaam of firmanaam !!
“street_number” Straat, nummer
“phone” telefoon
“zipcode” postcode
“town” gemeente
“vatnumber” btwnummer
“email” e-mail adres
“tagid” tag nummer
“tagtype” 1 barcode, 2 rfid
“tagfamid” tag familie koppeling id

Response :

"id" = id van de nieuwe klant
“modtime” aangemaakte unix time stamp

Ok
"success" = 1

Error
"errorcode" = 2001 name, firstname or companyname can not be empty
"errorcode" = 2002 companyname and firstname, name can not together





Weborder aanmaken :

Functie : post-weborder

“customerid” klant id!!
“delivery” afhalen = 0, leveren = 1 !!
“remark” opmerking
“weborderdetail” array van weborder detail
{
"productid" product id !!
"sub'1'" subproduct id
"sub'2'" subproduct id
"sub'3'" subproduct id
"sub'4'" subproduct id
"sub'5'" subproduct id
"sub'6'" subproduct id
"sub'7'" subproduct id
"sub'8'" subproduct id
"sub'9'" subproduct id
"sub'10'" subproduct id
}

Response :

"weborderid" = aangemaakt weborder id

Ok
"success" = 1

Error
"errorcode" = 2001 customerid can not be empty
"errorcode" = 2002 delivery can not be empty
"errorcode" = 2003 the customerid id does not exist, the order is not stored
"errorcode" = 2004 an id in this weborder does not exist, the order is not stored





Verkoopdocument aanmaken :

Functie : post-invoice, post-offer, post-creditnote

“productlines” array van product lijnen
{
"quantity" aantal !!
"name" omschrijving !!
"vatpercent" btw tarief !!
"priceincvat" prijs inclusief btw !!
}

“documentnr” document nummer !!
“customerid” klant id

Response :

Ok
"success" = 1

Error
"errorcode" = 2001 Document nr can not be empty
"errorcode" = 2002 Document nr already in use
"errorcode" = 2003 Productlines array error





Reservatie inboeken :

Functie : post-reservationentry

“date” Datum !!
“persons” Aantal personen !!
“hour” Uur !!
“name” Naam
“phone” Telefoon
“confirmed” 1 always, 0 on shift setting

Response :

Ok
"success" = 1

Error
"errorcode" = 2001 Date can not be empty
"errorcode" = 2002 Persons can not be empty
"errorcode" = 2003 Hour can not be empty
"errorcode" = 2004 Hour is to short





Cadeaubon aanmaken :

Functie : post-giftvoucher

“barcode” Barcode !!
“value” Waarde !!
“validfrom” Geldig van, 2016-01-01 !!
“validuntil” Geldig tot, 2016-01-01 !!
“paymenttype” 1 cash, 2 transfer !!

Response :

“modtime” aangemaakte unix time stamp

Ok
"success" = 1

Error
"errorcode" = 2001 Barcode can not be empty
"errorcode" = 2002 Barcode must be a number
"errorcode" = 2003 Value can not be empty
"errorcode" = 2004 Value must be number
"errorcode" = 2005 Validfrom can not be empty
"errorcode" = 2006 Validuntil can not be empty
"errorcode" = 2007 Paymenttype can not be empty
"errorcode" = 2008 Paymenttype can only be 1 or 2





Kortingsbon aanmaken :

Functie : post-coupon

“barcode” Barcode !!
“value” Waarde !!
“valuetype” 1 geld waarde, 2 percent !!
“validfrom” Geldig van, 2016-01-01 !!
“validuntil” Geldig tot, 2016-01-01 !!

Response :

Ok
"success" = 1

Error
"errorcode" = 2001 Barcode can not be empty
"errorcode" = 2002 Barcode must be a number
"errorcode" = 2003 Value can not be empty
"errorcode" = 2004 Value must be number
"errorcode" = 2005 Validfrom can not be empty
"errorcode" = 2006 Validuntil can not be empty
"errorcode" = 2007 Paymenttype can not be empty
"errorcode" = 2008 Paymenttype can only be 1 or 2





Klant tegoed aanmaken :

Functie : post-customercredit

“customerid” Klant id !!
“value” Waarde !!
“productid” or “categoryid” Product id of categorie id
“paymenttype” 1 cash, 2 transfer !!

Response :

"id" = id van de nieuwe tegoed toevoeging

Ok
"success" = 1

Error
"errorcode" = 2001 Customerid can not be empty
"errorcode" = 2002 Customerid does not exist
"errorcode" = 2003 Value can not be empty
"errorcode" = 2004 Value must be a number
"errorcode" = 2005 Paymenttype can not be empty
"errorcode" = 2006 Paymenttype error
"errorcode" = 2007 Productid and categoryid can not together
"errorcode" = 2008 Productid or Categoryid not exists





Exact online order doorboeken :

Functie : post-eolorder

“ordernumber” order nummer !!
“date” datum !!
“customerid” klant id !!
“paymenttype” 1 cash, 2 transfer !!
“detail” array van detail !!
{
"productid" product id !!
"price" product prijs !!
"quantity" aantal !!
}

Response :

"success" = 1

Error
"errorcode" = 2001 Ordernumber can not be empty
"errorcode" = 2002 Date can not be empty
"errorcode" = 2003 Customerid can not be empty
"errorcode" = 2004 Paymenttype can not be empty
"errorcode" = 2005 Paymenttype can only be 1 or 2
"errorcode" = 2006 Detail can not be empty
"errorcode" = 2007 One of the productid's in the detail not exists
"errorcode" = 2008 Error in detail









  Algemene voorwaarden   -   03 689 77 44   -   info@cloudpos.be   -   vermelde prijzen zijn excl. Btw   -   Syntax Bvba 2019  
  Algemene voorwaarden  - 03 689 77 44 - info@cloudpos.be
vermelde prijzen zijn excl. Btw - Syntax Bvba 2015