USERS GET /users (basic auth needed) Description: This will return a user session for the logged in user Example: https://test.splickit.com/app2/apiv2/users Response: {"http_code":200,"stamp":"UUUU09-WHLHHLD","data":{"user_id":"288540","uuid":"6323-tp26k-ug70o-q2d0v","last_four":"0000","first_name":"First","last_name":"Last","email":"testuser_1405877746_83q@splickit.com","contact_no":"1234567890","device_id":null,"balance":"0.00","referrer":null,"orders":"0","custom_message":null,"user_groups":[]},"message":null} POST /users (with admin creds) Description: This will create a user. Example https://test.splickit.com/app2/apiv2/users -d {"first_name":"first","last_name":"last","email":"testuser_1405878429_0cp@splickit.com","password":"welcome","contact_no":"1234567890","account_hash":"1405878429_0cp"} Response: {"http_code":200,"stamp":"UUUU09-WRT6D1U","data":{"first_name":"First","last_name":"Last","email":"testuser_1405878429_0cp@splickit.com","contact_no":"1234567890","uuid":"7702-122pk-h1a4z-f2n6p","balance":0,"user_id":288562},"message":null} POST /users/ (basic auth needed) Description: Will update the user with UUID = url value Example: http://test.splickit.com/app2/apiv2/users/2288-3udj0-slll4-94iuq -d {"first_name":"john"} Response: {"http_code":200,"stamp":"UUUU09-T8X7N16","data":{"user_id":"288560","uuid":"2288-3udj0-slll4-94iuq","last_four":"0","first_name":"john","last_name":"Last","email":"testuser_1405878428_a3a@splickit.com","contact_no":"1234567890","device_id":"2288-3udj0-slll4-94iuq","balance":"0.00","referrer":null,"orders":"0","custom_message":null},"message":null} Description 2: can also be used to store a credit card in the system or update an existing one. Example: http://test.splickit.com/app2/apiv2/users/2288-3udj0-slll4-94iuq -d {"cc_exp_date":"03/2016","cc_number":"4111111111111111","cvv":"123","zip":"16311"} Response: {"http_code":200,"stamp":"UUUU09-9JRYR4S","data":{"user_id":"288563","uuid":"test-16311-0316-123-zd0c","last_four":"1111","first_name":"First","last_name":"Last","email":"testuser_1405879153_kzg@splickit.com","contact_no":"1234567890","device_id":"2176-5at8u-3cplz-bn34f","balance":"0.00","referrer":null,"points_current":"0","custom_message":null,"user_message_title":"Credit Card Response","user_message":"Your credit card info has been securely stored."},"message":"Your credit card info has been securely stored."} POST /users//userdeliverylocation (basic auth needed) Description: Will create a user delivery location in the system Example http://test.splickit.com/app2/apiv2/users/2288-3udj0-slll4-94iuq/userdeliverylocation -d {"user_id":"288560","name":"","address1":"11 Riverside Drive","address2":"","city":"new york","state":"ny","zip":"12345","phone_no":"1234567890"} Response: {"http_code":200,"stamp":"UUUU09-QAI8315","data":{"user_id":"288560","name":"","address1":"11 Riverside Drive","address2":"","city":"new york","state":"ny","zip":"12345","phone_no":"1234567890","lat":40.796202,"lng":-73.936635,"user_addr_id":16191},"message":null} DELETE /users//userdeliverylocation/ (basic auth needed) Description: Will delete the delivery address with user_addr_id = submitted Example: http://test.splickit.com/app2/apiv2/users/2288-3udj0-slll4-94iuq/userdeliverylocation/16191 Response: {"http_code":200,"stamp":"UUUU09-7WWYFZZ","data":{"result":"success"},"message":null} MERCHANTS GET /merchants (no auth needed) Description Will get a merchant list based on passed in parameters Example: https://test.splickit.com/app2/apiv2/merchants parameters: zip OR lat,lng Response: {"http_code":200,"stamp":"UUUU09-Q5L3QQT","data":{"merchants":[{"merchant_id":"104472","merchant_external_id":null,"brand_id":"300","lat":"40.014726","lng":"-105.274479","name":"Display Name","display_name":"Display Name","address1":"1505 Arapaho Ave","description":null,"city":"boulder","state":"CO","zip":"80302","phone_no":"1234567890","delivery":"Y","brand":"Display Name","promo_count":0,"valid_promos":[]},{"merchant_id":"104475","merchant_external_id":null,"brand_id":"300","lat":"40.014726","lng":"-105.274479","name":"Display Name","display_name":"Display Name","address1":"1505 Arapaho Ave","description":null,"city":"boulder","state":"CO","zip":"80302","phone_no":"1234567890","delivery":"Y","brand":"Display Name","promo_count":0,"valid_promos":[]},{"merchant_id":"104479","merchant_external_id":null,"brand_id":"300","lat":"40.014726","lng":"-105.274479","name":"Display Name","display_name":"Display Name","address1":"1505 Arapaho Ave","description":null,"city":"boulder","state":"CO","zip":"80302","phone_no":"1234567890","delivery":"Y","brand":"Display Name","promo_count":0,"valid_promos":[]}]}} GET /merchants/ ( no auth needed) Description: Will get all relevant info for a merchant including the menu Example: http://test.splickit.com/app2/apiv2/merchants/104482 CART POST /cart (basic auth needed) (Guest carts coming soon) Description: create a cart and then add passed items into that cart. Example: http://test.splickit.com/app2/apiv2/cart -d {"items":[{"quantity":1,"item_id":"285309","size_id":"92350","mods":[{"mod_quantity":1,"modifier_item_id":"2296821"},{"mod_quantity":1,"modifier_item_id":"2296822"},{"mod_quantity":1,"modifier_item_id":"2296823"}]}],"merchant_id":104482,"user_id":"288568"} Response: {"http_code":200,"stamp":"UUUU09-QK8ZOD8","data":{"ucid":"6681-w07fu-b3013-x4myv","order_summary":{"cart_items":[{"item_name":"Test Item 1","item_price":"2.00","item_quantity":"1","item_description":"Test Modifier Item 1,Test Modifier Item 2,Test Modifier Item 3","order_detail_id":"583755","item_note":""}],"receipt_items":[{"title":"Subtotal","amount":"$2.00"},{"title":"Tax","amount":"$0.20"},{"title":"Total","amount":"$2.20"}]}},"message":null} POST /cart/ (basic auth needed) Description: Will add more items to an existing cart Example: http://test.splickit.com/app2/apiv2/cart/6681-w07fu-b3013-x4myv -d {"items":[{"quantity":1,"item_id":"285309","size_id":"92350","mods":[{"mod_quantity":1,"modifier_item_id":"2296821"},{"mod_quantity":1,"modifier_item_id":"2296822"},{"mod_quantity":1,"modifier_item_id":"2296823"}]}],"merchant_id":104482,"user_id":"288568"} GET /cart//checkout (basic auth needed) Description: To get the checkout data for this cart. available times, total of tax, grand total, any fees, etc Example: http://test.splickit.com/app2/apiv2/cart/6970-c83kb-6p7jm-0p9i4/checkout Response {"http_code":200,"stamp":"UUUU09-I89RSXO","data":{"user_message":null,"lead_times_array":[1405882516,1405882576,1405882636,1405882696,1405882756,1405882816,1405882876,1405882936,1405882996,1405883056,1405883116,1405883416,1405883716,1405884016,1405884316,1405884616,1405884916,1405885216,1405885516,1405885816,1405886116,1405886416,1405886716,1405887016,1405887316,1405887616],"promo_amt":"0.00","order_amt":"4.00","tip_array":[{"No Tip":0},{"10%":"0.40"},{"15%":"0.60"},{"20%":"0.80"},{"$1.00":1},{"$2.00":2},{"$3.00":3},{"$4.00":4},{"$5.00":5},{"$6.00":6},{"$7.00":7},{"$8.00":8},{"$9.00":9},{"$10.00":10},{"$11.00":11},{"$12.00":12},{"$13.00":13},{"$14.00":14},{"$15.00":15},{"$16.00":16},{"$17.00":17},{"$18.00":18},{"$19.00":19},{"$20.00":20},{"$21.00":21},{"$22.00":22},{"$23.00":23},{"$24.00":24},{"$25.00":25}],"total_tax_amt":"0.40","convenience_fee":"0.00","accepted_payment_types":[{"merchant_payment_type_map_id":"1047","name":"Cash"},{"merchant_payment_type_map_id":"1046","name":"Credit Card"}],"cart_ucid":"6970-c83kb-6p7jm-0p9i4"},"message":null} SUBMIT CART POST /orders (basic auth needed) Description: To place an order for an existing cart Example: http://test.splickit.com/app2/apiv2/orders -d {"merchant_id":104484,"note":"some note","user_id":"288578","cart_ucid":"6970-c83kb-6p7jm-0p9i4","tip":0,"merchant_payment_type_map_id":"1047","requested_time":1405882516} Response: {"http_code":200,"stamp":"UUUU09-9VA32S2","data":{"order_id":"280746","stamp":"UUUU09-9VA32S2","merchant_id":"104484","order_dt_tm":1405881672,"user_id":"288578","pickup_dt_tm":1405882500,"order_amt":"4.00","promo_code":"","promo_id":null,"promo_amt":"0.00","total_tax_amt":"0.40","trans_fee_amt":"0.00","delivery_amt":"0.00","tip_amt":"0.00","customer_donation_amt":"0.00","grand_total":"4.40","grand_total_to_merchant":4.4,"cash":"Y","merchant_donation_amt":"0.00","note":"some note","status":"O","order_qty":"2","payment_file":null,"order_type":"R","phone_no":null,"user_delivery_location_id":null,"requested_delivery_time":null,"device_type":"unit_testing","app_version":null,"skin_id":"252","distance_from_store":0,"pickup_time_string":"12:55pm","user_message":"Your order to Unit Test Merchant will be ready for pickup at 12:55pm","user_message_title":"Order Info","payment_service_used":"CashPaymentService","points_earned":4,"points_current":null,"points_lifetime":null,"order_summary":{"cart_items":[{"item_name":"Test Item 1","item_price":"2.00","item_quantity":"1","item_description":"Test Modifier Item 1,Test Modifier Item 2,Test Modifier Item 3","order_detail_id":"583764","item_note":""},{"item_name":"Test Item 1","item_price":"2.00","item_quantity":"1","item_description":"Test Modifier Item 3,Test Modifier Item 1,Test Modifier Item 2","order_detail_id":"583765","item_note":"skip hours"}],"receipt_items":[{"title":"Subtotal","amount":"$4.00"},{"title":"Tax","amount":"$0.40"},{"title":"Total","amount":"$4.40"}]},"loyalty_message":"You earned 40 points on this order."},"message":"Your order to Unit Test Merchant will be ready for pickup at 12:55pm"} PLACE ORDER WITHOUT USING CART POST /orders (basic auth needed) Description: Place an order with all item data being submitted with order post Example: http://test.splickit.com/app2/apiv2/orders -d {"user_id":"288593","items":[{"quantity":1,"item_id":"285335","size_id":"92356","mods":[{"mod_quantity":1,"modifier_item_id":"2296843"},{"mod_quantity":1,"modifier_item_id":"2296844"},{"mod_quantity":1,"modifier_item_id":"2296845"}]}],"note":"some note","sub_total":1.5,"tax_amt":0.15,"merchant_id":104491,"tip":"3.57","grand_total":5.22,"merchant_payment_type_map_id":1051,"requested_time":1405882516} Response: same as place order with cart