Warehouse



List of product categories

http://schedulebull.com/api3.php?key=KEY&q=warehouse/categories&parent=0
Available parameters:
     parent : id : list subcategories of one category
     language  : varchar : 2 letter language code
 

Get product category data

http://schedulebull.com/api3.php?key=KEY&q=warehouse/category
Required parameters:
     ID : int : category ID
Available parameters:
     language  : varchar : 2 letter language code
 

List of items

http://schedulebull.com/api3.php?key=KEY&q=warehouse/items
Available parameters:
     category : int : list items of one category.
     subcategories : boolean : get items also from subcategories.
     subsubcategories : boolean : get items also from sub-sub-categories.
     limit : int : limit return to that count of items
     language  : varchar : 2 letter language code
 

Get main item data

http://schedulebull.com/api3.php?key=KEY&q=warehouse/item
Required parameters (one of them):
     ID : int : item ID
     code : varchar : code
     typeID : int : item type ID
Available parameters:
     language  : varchar : 2 letter language code
 

Get item types (sizes, codes)

http://schedulebull.com/api3.php?key=KEY&q=warehouse/itemTypes
Required parameters:
     itemID : int : item ID
 

Get item options

http://schedulebull.com/api3.php?key=KEY&q=warehouse/item/options
Required parameters:
     itemID : int : item ID
 

Get item options (other array structure)

http://schedulebull.com/api3.php?key=KEY&q=warehouse/item/options2
Required parameters:
     itemID : int : item ID
 

Create new order

http://schedulebull.com/api3.php?key=KEY&q=warehouse/orders/new
Required parameters:
     item[] : array : at least one item must be defined to create new order! Usege: &item[123]=10 where 123 is item type ID and 10 is count
Available parameters:
     itemDiscount[] : array : &&itemDiscount[123]=10 will set discount of 10% to type 123 for current order
     itemPrice[] : array : &&itemPrice[123]=10 will set price of 10 EUR to type 123 for current order
     client : varchar : user name or company name
     email : varchar : user email
     tel : varchar : user contact phone number
     address : varchar : user address (for bill)
     deliveryAddress : varchar : shipping address
     comment : varchar : comment
     paymentType : varchar : desired payment type
     coupon : varchar : used coupon code
     carrier : varchar : selected carrier - UPS, DHL, Omniva, etc
 

List client orders

http://schedulebull.com/api3.php?key=KEY&q=warehouse/orders/list
Required parameters:
     client : varchar : list orders for this client

Edit existing order

http://schedulebull.com/api3.php?key=KEY&q=warehouse/orders/save
Required parameters:
     ID : int : existing order ID
     paid : double : paid amount
     paidWith : varchar : used payment system