Skip to content

Instantly share code, notes, and snippets.

@abbood
Created June 12, 2018 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abbood/91e26c0029ab1a3788a72a71481988cf to your computer and use it in GitHub Desktop.
Save abbood/91e26c0029ab1a3788a72a71481988cf to your computer and use it in GitHub Desktop.
review order postman
{
"errors": false,
"data": {
"orders": {
"id": 30,
"client_id": 513,
"shopper_id": 514,
"status": "accepted",
"store_id": 73,
"items_total": "40",
"total": 41.99,
"is_paid": false,
"address_id": 104,
"deliver_on": "2018-06-13 10:00:56",
"additional_instructions": "",
"delivery_charge": "1.99",
"shopper_earning": "0",
"currency_id": 5,
"transaction_id": "kt4x1v5z",
"final_total": null,
"created_at": "2018-06-12 12:27:02",
"updated_at": "2018-06-12 12:43:07",
"arrived_at": null,
"estimation": 2094,
"receipt": null,
"last4": null,
"final_cost": null,
"assigned_at": "2018-06-12 12:43:04",
"estimated_at": "2018-06-12 13:18:01",
"estimation_base": "2018-06-12 12:43:07",
"shopper_reimbursed": false,
"earnings_paid": false,
"approved": false,
"is_arriving": 0,
"credits_used": 5,
"final_total_pre_discount": null,
"amount_to_pay": 39.99,
"final_total_with_discount": null,
"code": "39222-13541",
"is_delivery_request": false,
"collect_cash": 0,
"is_ready": false,
"net_revenue": null,
"transaction_cost": null,
"gross_margin": null,
"address_token": null,
"service_charge": 0,
"is_location_requested": false,
"payment_type": "card",
"discount_value": 0,
"discount_message": null,
"op_city_id": 1,
"mkt_flag": "CRC",
"delivery_surcharge": "3",
"daas_surcharge": null,
"shopper_earnings_surplus": null,
"amount_collected": null,
"tip": "0",
"store": {
"id": 73,
"ref": "DELI.CO",
"address": "Patriarch Howayek, Beirut, Lebanon",
"city_id": 1,
"location": "0101000020E6100000A3CC069964C04140D5928E7230F34040",
"contact_person": null,
"currency_id": 5,
"minimum_order": 5,
"picture": "https://cdn.filepicker.io/api/file/LqvZ8yxyRWCgnexfPmC7",
"created_at": "2016-12-31 17:43:01",
"updated_at": "2018-06-12 12:06:07",
"rating": "4.9467723669302",
"rating_count": 883,
"type": "AMERICAN",
"color": "FFFFFF",
"low_delivery_charge": "1.99",
"high_delivery_charge": "1.99",
"delivery_charge_limit": "1",
"timezone": "Asia/Beirut",
"has_manager": true,
"phone_number": null,
"discount": "0",
"priority": 2,
"cover": "https://cdn.filepicker.io/api/file/DyU3GkpRRCsHGXbdkyN7",
"has_pictures": false,
"has_grouped_items": false,
"assigned_shoppers_only": false,
"has_subcategories_only": true,
"is_partner": false,
"is_grocery": false,
"min_lead_hours": 0,
"delivery_request_charge": "4.5",
"deleted_at": null,
"mof_number": null,
"operations_contact": "01 999736",
"tagline": "A New York style deli specializing in homemade sandwiches, salads, coffees, smoothiies and fresh made bakeries",
"is_synced": true,
"service_percent": 0,
"service_flat": 0,
"discount_flat": "0",
"terminal_multiplier": "1",
"op_city_id": 1,
"overhead": 18,
"emails": null,
"legal_name": null,
"legal_address": null,
"lat": "33.899916",
"lon": "35.50307",
"ref_ar": "",
"address_ar": "",
"tagline_ar": "",
"opening_hours": [
{
"id": 967,
"store_id": 73,
"day": "sunday",
"from": "07:40",
"to": "21:00",
"created_at": "2018-05-02 06:17:22",
"updated_at": "2018-05-02 06:17:22",
"deleted_at": null
},
{
"id": 968,
"store_id": 73,
"day": "monday",
"from": "09:40",
"to": "22:50",
"created_at": "2018-05-02 06:17:22",
"updated_at": "2018-05-02 06:17:22",
"deleted_at": null
},
{
"id": 969,
"store_id": 73,
"day": "tuesday",
"from": "09:50",
"to": "21:05",
"created_at": "2018-05-02 06:17:22",
"updated_at": "2018-05-02 06:17:22",
"deleted_at": null
},
{
"id": 970,
"store_id": 73,
"day": "wednesday",
"from": "07:50",
"to": "21:50",
"created_at": "2018-05-02 06:17:22",
"updated_at": "2018-05-02 06:17:22",
"deleted_at": null
},
{
"id": 971,
"store_id": 73,
"day": "thursday",
"from": "07:05",
"to": "21:35",
"created_at": "2018-05-02 06:17:22",
"updated_at": "2018-05-02 06:17:22",
"deleted_at": null
},
{
"id": 972,
"store_id": 73,
"day": "friday",
"from": "08:45",
"to": "21:00",
"created_at": "2018-05-02 06:17:22",
"updated_at": "2018-05-02 06:17:22",
"deleted_at": null
},
{
"id": 973,
"store_id": 73,
"day": "saturday",
"from": "09:55",
"to": "21:50",
"created_at": "2018-05-02 06:17:22",
"updated_at": "2018-05-02 06:17:22",
"deleted_at": null
}
]
},
"client": {
"id": 513,
"first_name": "client_first",
"last_name": "client_last",
"email": "lb5@dispostable.com",
"phone_number": "4443232347353",
"type": "client",
"account_type": "email",
"sm_user_id": null,
"sm_access_token": null,
"picture": "https://s3-eu-west-1.amazonaws.com/toters-assets/default.png",
"deleted_at": null,
"created_at": "2018-06-12 10:57:04",
"updated_at": "2018-06-12 11:23:30",
"rating": "0",
"rating_count": 0,
"regid": "APA91bGAhm6JN4mdl8UflkFnkz8Zaqs41gUpPyIC5ticR9_AmPJIl4gtyHwegQOkEh5UJck8OfTiUu_AqznePvn2oaYWhbGdyzGa7Mzb3_21Gxj_1QOlyttwmcV-Tk1kmqR_1IAsRGTI",
"platform": "android",
"currency_id": 5,
"is_verified": false,
"promo_code_id": 2,
"referral_promo_code_id": null,
"op_city_id": 1,
"is_daas": false,
"geoip_city": "unknown_city",
"team_lead_id": null,
"default_locale": "en",
"active_op_city_id": 1
},
"address": {
"id": 104,
"user_id": 513,
"nickname": "toters office",
"building_id": null,
"phone_number": "234234234",
"street": "toters 123",
"is_default": false,
"location": "0101000020E610000044F8174163C241403201BF4692F24040",
"created_at": "2018-06-12 10:57:51",
"updated_at": "2018-06-12 10:57:51",
"apartment": "toters apt",
"building_ref": "toters buildling",
"deleted_at": null,
"alternate_location": null,
"country_code": "LB",
"alternate_location_picture": null,
"accuracy": null,
"lat": "33.895089",
"lon": "35.518654",
"alternate_lat": null,
"alternate_lon": null,
"building": null
},
"shopper": {
"id": 514,
"first_name": "shopper",
"last_name": "lb",
"email": "shopper+lbb@totersapp.com",
"phone_number": "4444444",
"type": "shopper",
"account_type": "email",
"sm_user_id": null,
"sm_access_token": null,
"picture": null,
"deleted_at": null,
"created_at": "2018-06-12 11:49:20",
"updated_at": "2018-06-12 12:06:07",
"rating": "5",
"rating_count": 1,
"regid": null,
"platform": null,
"currency_id": 6,
"is_verified": false,
"promo_code_id": null,
"referral_promo_code_id": null,
"op_city_id": 1,
"is_daas": false,
"geoip_city": "Beirut",
"team_lead_id": 0,
"default_locale": "en",
"active_op_city_id": null
},
"currency": {
"id": 5,
"ref": "USD",
"created_at": "2016-07-17 19:28:56",
"updated_at": "2016-07-17 19:28:56",
"deleted_at": null
},
"order_detail": [
{
"id": 61,
"order_id": 30,
"line_number": 0,
"item_id": 15724,
"item_ref": "Bagels'N Cream Cheese",
"item_price": "10",
"item_cost": "10",
"quantity": 4,
"total": "40",
"is_replacement": false,
"original_item_id": null,
"weight": null,
"is_found": false,
"adjustment_value": null,
"final_quantity": null,
"final_total": null,
"final_adjustment_value": null,
"created_at": "2018-06-12 12:27:02",
"updated_at": "2018-06-12 12:27:02",
"additional_info": null,
"replacement": null,
"item": {
"id": 15724,
"ref": "Bagels'N Cream Cheese",
"short_description": "",
"description": "",
"cat_id": 485,
"measurement_unit": null,
"measurement_value": null,
"units_in_pack": null,
"barcode": null,
"image": "https://s3-eu-west-1.amazonaws.com/toters-test-data/products/",
"needs_adjustment": false,
"created_at": "2016-12-31 18:19:24",
"updated_at": "2017-07-02 21:52:38",
"deleted_at": null,
"is_verified": true,
"is_master_indexed": true,
"ref_ar": "",
"short_description_ar": "",
"measurement_unit_ar": "",
"category": {
"id": 485,
"ref": "Bagels",
"parent_id": 480,
"image": "",
"created_at": "2016-12-31 18:16:38",
"updated_at": "2016-12-31 18:16:38",
"top_parent_id": 480,
"priority": 5,
"deleted_at": null,
"ref_ar": ""
},
"store": [
{
"store_id": 73,
"ref_ar": "",
"short_description_ar": "",
"measurement_unit_ar": "",
"pivot": {
"item_id": 15724,
"aisle": "Bagels",
"unit_cost": "10",
"unit_price": "10",
"shopper_priority": 39,
"client_priority": 39,
"created_at": "2016-12-31 18:32:14",
"updated_at": "2017-03-21 03:00:02"
}
}
]
},
"order_addons": []
}
],
"order_status": [
{
"id": 115,
"order_id": 30,
"shopper_id": null,
"stage": "incomplete_cart",
"location": null,
"status_info_id": null,
"status_info_type": null,
"created_at": "2018-06-12 12:27:02",
"updated_at": "2018-06-12 12:27:02",
"lat": null,
"lon": null
},
{
"id": 116,
"order_id": 30,
"shopper_id": null,
"stage": "pending",
"location": null,
"status_info_id": null,
"status_info_type": null,
"created_at": "2018-06-12 12:42:03",
"updated_at": "2018-06-12 12:42:03",
"lat": null,
"lon": null
},
{
"id": 117,
"order_id": 30,
"shopper_id": 514,
"stage": "assign_request",
"location": null,
"status_info_id": null,
"status_info_type": null,
"created_at": "2018-06-12 12:42:51",
"updated_at": "2018-06-12 12:42:51",
"lat": null,
"lon": null
},
{
"id": 118,
"order_id": 30,
"shopper_id": 514,
"stage": "accepted",
"location": null,
"status_info_id": null,
"status_info_type": null,
"created_at": "2018-06-12 12:43:04",
"updated_at": "2018-06-12 12:43:04",
"lat": null,
"lon": null
}
],
"ratings": [],
"op_city": {
"id": 1,
"ref": "Beirut",
"timezone": "Asia/Beirut",
"currency_id": 5,
"deleted_at": null,
"created_at": "2017-08-27 00:45:58",
"updated_at": "2018-04-29 16:14:06",
"code": "bey",
"polygon": "0103000020E61000000100000008000000C93CF20703BB4140C0266BD443F440403108AC1C5ABC4140A69BC420B0EA404030478FDFDBB841405A47551344E54040130A117008C141404CC3F01131DD4040E97DE36BCFCC4140910F7A36ABEA4040882EA86F99D34140363CBD5296F54040AB2688BA0FD441404C8E3BA583014140C93CF20703BB4140C0266BD443F44040",
"merchant_account_id": "TOTERS_instant",
"is_auto_assign": true,
"mof_number": null,
"vat_number": null,
"country": null,
"vat": null,
"company_name": null,
"default_locale": null,
"country_id": null
}
},
"support_phone_number": "+961 1 568 709",
"support_email": "feedback-lb@totersapp.com"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment