Professional Documents
Culture Documents
iBacsTelWEBAPIv1.2 DevelopersManual
GPRS VERSION
iBacsTelAPIDevelopersManualv.1.2
Pleaseuseryouraccountdomainnameandpasswordtologin.
2. Dashboard
Onsuccessfullogin,thecontrolpanelwilldisplaythefollowingwindowwiththebasicinformationofthe account.
iBacsTelAPIDevelopersManualv.1.2
3. Account Settings
Usingaccountsettings,youwillbeablereviewyouraccountinformationaswellaseditanyinformationif required.
3.1
3.2
Pleaseclickonthe+buttonbytheaccountsettingstoexpandandclickonEditInformationtoeditany informationaboutyouraccount.
iBacsTelAPIDevelopersManualv.1.2
4.2
UsingtheEditoption,youcaneditthecallbackurlifrequired.
Alltherestaurantsaddedtotheapiwillbedisplayedonthissection.Youwillbeabletoaddoreditordelete restaurantsfromtherestaurantslist.
iBacsTelAPIDevelopersManualv.1.2
6. Add Restaurant
UsingthisformwewillbeabletoaddrestaurantstotheAPI,wewillneedtoaddeachoftherestaurants individuallytotheAPI.EachrestaurantshouldhavetheiruniqueIDontheirwebsitedatabase.TheAPIwill requestthatIDandwillcreateausernameandpasswordforitandmasktheoriginalrestaurantIDwitha maskingID.ThemaskingIDwillbecomethenewrestaurantsIDfortheAPIandthismaskingIDwillbeusedon theprintertoconfiguretheprintertoconnecttotheAPIandgetorderdetailsaccording. Thefollowinginformationwillberequiredtoaddarestaurant. RestaurantName:[Fillinwithyourrestaurantname] RestaurantID:[putyourrestaurantIDwithyourownwebsitedatabase] Username:[inputanewusername] Password:[inputanewpassword] ConfirmPassword:[reinputthenewpassword] Address:[puttheaddressoftherestaurant,optional] Postcode:[putthepostcodeoftherestaurant,option]
7. Masking ID
ThemaskingIDistheIDthatyouwillbeusingontheprinter,pleasemindthatthismaskingIDisanuniqueID foreachrestaurantyouaddtothesystem.YoucanfindthemaskingIDontherestaurantlistonceyouadded therestaurant,suchasbelow.
iBacsTelAPIDevelopersManualv.1.2
10.
Inthisprocessclientmustsubmitaformwithfollowinginformation: Field importance format details api_key required string APIkeyofclientaccount api_password required string APIpasswordofclientaccount notify_url required string Urlofclientwebsitewheretheapiwillsendthe notificationaftergettingresponsefrompriner.To thisurlapiwillpostaformwithfollowing information: rest_id(restaurantidwhichwassentwhile submittingtheordertoAPIfromclientsite) order_id(thatorderidforwhichthe responsereceivedfromprinter) status(1accepted,2rejected) msg(messagefromprinter) delivery_time(orderdeliverytimereceived fromprinter) rest_id required integer RestaurantIDwhichwasusedinrestaurant registrationintoAPIwebsite.(notuniqueprinterID) order_id required integer OrderIDtotrackorder(mustnotduplicate,that meansmultipleordercantbesenttotheAPIusing sameorderid) currency required string Shortnotationofusedcurrency order_type required integer Ordertype: 1Delivery 2Collection 3Reservation payment_status required integer Statusofthepayment: 6paid 7notpaid payment_method required string Paymentmethodname. Ex.Cash,paypaletc. delivery_time required Dateand Deliverytimeanddateofdelivery. time e.g18:30170910(h:mddmmyy) auth_code optional string Authenticationcodeofpaymentmethod >item_1(string) Requiredat Item_(itemnumber)itisitemname
iBacsTelAPIDevelopersManualv.1.2
leastone >desc_1(string) >qnt_1(integer) >price_1(number) deliverycost card_fee extra_fee total_discount total_amount cust_name cust_address cust_phone cust_instruction isVarified required required optional Optional required required required required optional required number number number number number string string string integer
Desc_(itemnummer)itisitemdescription(ex. Selectionortoppings) Qnt_(itemnumber)itisitemquantity Price_(itemnumber)quantityXunitprice Zeroorgreater Zeroorgreater Zeroorgreater(ex.Orderhandlingfee) Zeroorgreater(ex.Anytypeofpromotion) Zeroorgreater(mustbecalculatedtotalincluding itempriceandotherfeesanddiscount) Customername Customeraddress Customerphonenumber Customerinstructionaboutorder Customerverificationstatus 4verified 5notverified Totalnumberofordersofthiscustomer