Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Generate Preview (new order) - POST `/api/orders/order/meal-plan/generate-preview/`
- #### Example Request Payload:
- ```
- {
- "event_id": 10777,
- "meal_id": 12,
- "delivery_datetime": "2019-07-21T19:30:00+00:00",
- "add_on_items": [{
- "client_price": 0,
- "included_item_ids": [
- 156
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 1,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 151,
- "id": 0,
- "total_amount": 134,
- "name": "Seasonal Salad",
- "total_cost": 100.5,
- "meal_component": 2,
- "vendor_cost": 1.5,
- "priority": 1,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 100,
- "key": "151-2-1"
- }],
- "is_big_eater": true,
- "big_eater_type": "mains",
- "big_eater_omnivore_count": 10,
- "big_eater_vegetarian_count": 10
- }
- ```
- #### Example Response
- ```
- {
- "id": 0,
- "order_id": "NAMWX",
- "delivery_datetime": "2019-07-21T12:30:00-07:00",
- "add_on_items": [
- {
- "client_price": 0,
- "included_item_ids": [
- 156
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 1,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 151,
- "id": 0,
- "total_amount": 200,
- "name": "Seasonal Salad",
- "total_cost": 150,
- "meal_component_id": 2,
- "vendor_cost": 1.5,
- "priority": 100,
- "portion_amount": 2,
- "is_add_on": true,
- "quantity": 100,
- "key": "151-2-100-a",
- "dietary_restrictions": [
- 1,
- 2
- ]
- }
- ],
- "included_items": [
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": true,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 138,
- "id": 0,
- "total_amount": 66,
- "name": "Tomato Cilantro Sauce",
- "total_cost": 0,
- "meal_component_id": 1,
- "vendor_cost": 0,
- "priority": 2,
- "portion_amount": 0.8,
- "is_add_on": false,
- "quantity": 83,
- "key": "138-1-2",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": true,
- "dietary_restriction_groups": [
- 6,
- 1,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 9,
- "name": "serving"
- },
- "item_id": 156,
- "id": 0,
- "total_amount": 501,
- "name": "Homemade Dressing",
- "total_cost": 0,
- "meal_component_id": 2,
- "vendor_cost": 0,
- "priority": 1,
- "portion_amount": 3,
- "is_add_on": false,
- "quantity": 167,
- "key": "156-2-1",
- "dietary_restrictions": [
- 1,
- 2,
- 6
- ]
- }
- ],
- "items": [
- {
- "client_price": 0,
- "included_item_ids": [
- 138
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 4,
- "name": "pc."
- },
- "item_id": 135,
- "id": 0,
- "total_amount": 62,
- "name": "Turkey Momo",
- "total_cost": 93,
- "meal_component_id": 1,
- "vendor_cost": 3,
- "priority": 1,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 31,
- "key": "135-1-1",
- "dietary_restrictions": [
- 3
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [
- 138
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 1
- ],
- "portion_unit": {
- "id": 4,
- "name": "pc."
- },
- "item_id": 136,
- "id": 0,
- "total_amount": 42,
- "name": "Vegetarian Momo",
- "total_cost": 63,
- "meal_component_id": 1,
- "vendor_cost": 3,
- "priority": 2,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 21,
- "key": "136-1-2",
- "dietary_restrictions": [
- 1,
- 2,
- 3,
- 6
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [
- 138
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 4,
- "name": "pc."
- },
- "item_id": 137,
- "id": 0,
- "total_amount": 62,
- "name": "Lamb Momo",
- "total_cost": 93,
- "meal_component_id": 1,
- "vendor_cost": 3,
- "priority": 3,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 31,
- "key": "137-1-3",
- "dietary_restrictions": [
- 3
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 2
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 143,
- "id": 0,
- "total_amount": 6,
- "name": "Baigun Bharta",
- "total_cost": 5.5,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 4,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 1,
- "key": "143-1-4",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 144,
- "id": 0,
- "total_amount": 6,
- "name": "Grilled Nepali Chicken",
- "total_cost": 5.5,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 5,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 1,
- "key": "144-1-5",
- "dietary_restrictions": []
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 1
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 145,
- "id": 0,
- "total_amount": 88,
- "name": "Palungo Paneer",
- "total_cost": 66,
- "meal_component_id": 1,
- "vendor_cost": 6,
- "priority": 6,
- "portion_amount": 8,
- "is_add_on": false,
- "quantity": 11,
- "key": "145-1-6",
- "dietary_restrictions": [
- 1,
- 5
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 146,
- "id": 0,
- "total_amount": 248,
- "name": "Kukhura Aloo",
- "total_cost": 186,
- "meal_component_id": 1,
- "vendor_cost": 6,
- "priority": 7,
- "portion_amount": 8,
- "is_add_on": false,
- "quantity": 31,
- "key": "146-1-7",
- "dietary_restrictions": []
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 147,
- "id": 0,
- "total_amount": 192,
- "name": "Pork Choila",
- "total_cost": 176,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 8,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 32,
- "key": "147-1-8",
- "dietary_restrictions": [
- 6
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 1,
- 2
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 148,
- "id": 0,
- "total_amount": 96,
- "name": "Golveda Ra Tofu Hariyo Keraw",
- "total_cost": 72,
- "meal_component_id": 1,
- "vendor_cost": 6,
- "priority": 9,
- "portion_amount": 8,
- "is_add_on": false,
- "quantity": 12,
- "key": "148-1-9",
- "dietary_restrictions": [
- 1,
- 2,
- 6
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [
- 156
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 1,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 151,
- "id": 0,
- "total_amount": 134,
- "name": "Seasonal Salad",
- "total_cost": 100.5,
- "meal_component_id": 2,
- "vendor_cost": 1.5,
- "priority": 1,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 67,
- "key": "151-2-1",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 1,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 155,
- "id": 0,
- "total_amount": 201,
- "name": "Jeera Brown Rice",
- "total_cost": 100.5,
- "meal_component_id": 2,
- "vendor_cost": 1.5,
- "priority": 2,
- "portion_amount": 3,
- "is_add_on": false,
- "quantity": 67,
- "key": "155-2-2",
- "dietary_restrictions": [
- 1,
- 2
- ]
- }
- ],
- "item_swaps": [],
- "meal": {
- "id": 12,
- "name": "Turkey/Lamb Momo Meal",
- "package": "VARIETY"
- },
- "menu": {
- "id": 7,
- "name": "Nepali Momo Menu",
- "description": "Nepali food is hearty and flavorful! Get a taste with some salad, two sides, two momos, one main and some of Bini's tomato-cilantro sauce for dipping."
- },
- "notes": "",
- "organization": {
- "id": 7724,
- "name": "Chewse HQ",
- "meal_specialist": 8373,
- "ops_notes": ""
- },
- "vendor": {
- "id": 559,
- "name": "Bini's Kitchen",
- "branch": ""
- },
- "guests": 67,
- "delivery_pickup_time": "2019-07-21T18:20:00Z",
- "timezone": "America/Los_Angeles",
- "is_demo": false,
- "is_canceled": false,
- "latest_order_ack_id": null,
- "vendor_ack_status": "unrequested",
- "dietary_restrictions": [
- {
- "id": 1,
- "count": 11
- },
- {
- "id": 2,
- "count": 2
- },
- {
- "id": 3,
- "count": 0
- },
- {
- "id": 4,
- "count": 2
- },
- {
- "id": 5,
- "count": 0
- },
- {
- "id": 6,
- "count": 0
- }
- ],
- "total_cost": 1111,
- "schedule_ruleset": {
- "id": 10777,
- "name": "Lunch Time",
- "ops_notes": "",
- "guest_count": 67,
- "meal_type": {},
- "meal_period": {
- "id": 2,
- "name": "Lunch"
- },
- "package": "variety",
- "dietary_restrictions_groups": [
- {
- "id": 1,
- "name": "Vegetarian"
- },
- {
- "id": 2,
- "name": "Vegan"
- },
- {
- "id": 4,
- "name": "Meat + Gluten Free"
- }
- ],
- "frequency": null,
- "organization_allergies": [],
- "organization": {
- "id": 7724,
- "name": "Chewse HQ"
- },
- "notes": ""
- },
- "meal_sections": [],
- "is_big_eater": true,
- "big_eater_type": "mains",
- "big_eater_omnivore_count": 10,
- "big_eater_vegetarian_count": 10
- }
- ```
- ### Generate Preview (Existing Order) - PUT `/api/orders/order/meal-plan/:order_id/`
- #### Example Request Payload
- ```
- {
- "id": 264397,
- "event_id": 10777,
- "meal_id": 12,
- "is_big_eater": true,
- "big_eater_type": "mains",
- "big_eater_omnivore_count": 10,
- "big_eater_vegetarian_count": 10
- }
- ```
- #### Example Response
- ```
- {
- "id": 264397,
- "order_id": "FRSC9",
- "delivery_datetime": "2019-07-10T10:00:00-07:00",
- "add_on_items": [],
- "included_items": [
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": true,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 138,
- "id": 0,
- "total_amount": 28,
- "name": "Tomato Cilantro Sauce",
- "total_cost": 0,
- "meal_component_id": 1,
- "vendor_cost": 0,
- "priority": 1,
- "portion_amount": 0.8,
- "is_add_on": false,
- "quantity": 36,
- "key": "138-1-1",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": true,
- "dietary_restriction_groups": [
- 6,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 9,
- "name": "serving"
- },
- "item_id": 156,
- "id": 0,
- "total_amount": 90,
- "name": "Homemade Dressing",
- "total_cost": 0,
- "meal_component_id": 2,
- "vendor_cost": 0,
- "priority": 3,
- "portion_amount": 3,
- "is_add_on": false,
- "quantity": 30,
- "key": "156-2-3",
- "dietary_restrictions": [
- 1,
- 2,
- 6
- ]
- }
- ],
- "items": [
- {
- "client_price": 0,
- "included_item_ids": [
- 138
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 4,
- "name": "pc."
- },
- "item_id": 135,
- "id": 0,
- "total_amount": 36,
- "name": "Turkey Momo",
- "total_cost": 54,
- "meal_component_id": 1,
- "vendor_cost": 3,
- "priority": 1,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 18,
- "key": "135-1-1",
- "dietary_restrictions": [
- 3
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [
- 138
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 4,
- "name": "pc."
- },
- "item_id": 137,
- "id": 0,
- "total_amount": 36,
- "name": "Lamb Momo",
- "total_cost": 54,
- "meal_component_id": 1,
- "vendor_cost": 3,
- "priority": 2,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 18,
- "key": "137-1-2",
- "dietary_restrictions": [
- 3
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 2
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 143,
- "id": 0,
- "total_amount": 6,
- "name": "Baigun Bharta",
- "total_cost": 5.5,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 3,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 1,
- "key": "143-1-3",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 144,
- "id": 0,
- "total_amount": 12,
- "name": "Grilled Nepali Chicken",
- "total_cost": 11,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 4,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 2,
- "key": "144-1-4",
- "dietary_restrictions": []
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 146,
- "id": 0,
- "total_amount": 144,
- "name": "Kukhura Aloo",
- "total_cost": 108,
- "meal_component_id": 1,
- "vendor_cost": 6,
- "priority": 5,
- "portion_amount": 8,
- "is_add_on": false,
- "quantity": 18,
- "key": "146-1-5",
- "dietary_restrictions": []
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 147,
- "id": 0,
- "total_amount": 114,
- "name": "Pork Choila",
- "total_cost": 104.5,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 6,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 19,
- "key": "147-1-6",
- "dietary_restrictions": [
- 6
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 2
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 148,
- "id": 0,
- "total_amount": 8,
- "name": "Golveda Ra Tofu Hariyo Keraw",
- "total_cost": 6,
- "meal_component_id": 1,
- "vendor_cost": 6,
- "priority": 7,
- "portion_amount": 8,
- "is_add_on": false,
- "quantity": 1,
- "key": "148-1-7",
- "dietary_restrictions": [
- 1,
- 2,
- 6
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [
- 156
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 151,
- "id": 0,
- "total_amount": 60,
- "name": "Seasonal Salad",
- "total_cost": 45,
- "meal_component_id": 2,
- "vendor_cost": 1.5,
- "priority": 1,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 30,
- "key": "151-2-1",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 155,
- "id": 0,
- "total_amount": 90,
- "name": "Jeera Brown Rice",
- "total_cost": 45,
- "meal_component_id": 2,
- "vendor_cost": 1.5,
- "priority": 2,
- "portion_amount": 3,
- "is_add_on": false,
- "quantity": 30,
- "key": "155-2-2",
- "dietary_restrictions": [
- 1,
- 2
- ]
- }
- ],
- "item_swaps": [],
- "meal": {
- "id": 12,
- "name": "Turkey/Lamb Momo Meal",
- "package": "VARIETY"
- },
- "menu": {
- "id": 7,
- "name": "Nepali Momo Menu",
- "description": "Nepali food is hearty and flavorful! Get a taste with some salad, two sides, two momos, one main and some of Bini's tomato-cilantro sauce for dipping."
- },
- "notes": "Attendees: 200 | Package: $12pp, Variety\n",
- "organization": {
- "id": 8015,
- "name": "Keller WIlliams Realty Inc Avery Lavender",
- "meal_specialist": 9098,
- "ops_notes": ""
- },
- "vendor": {
- "id": 559,
- "name": "Bini's Kitchen",
- "branch": ""
- },
- "guests": 30,
- "delivery_pickup_time": "2019-07-10T15:17:46Z",
- "timezone": "America/Chicago",
- "is_demo": false,
- "is_canceled": false,
- "latest_order_ack_id": null,
- "vendor_ack_status": "unrequested",
- "dietary_restrictions": [
- {
- "id": 1,
- "count": 0
- },
- {
- "id": 2,
- "count": 2
- },
- {
- "id": 3,
- "count": 0
- },
- {
- "id": 4,
- "count": 3
- },
- {
- "id": 5,
- "count": 0
- },
- {
- "id": 6,
- "count": 0
- }
- ],
- "total_cost": 433,
- "schedule_ruleset": {
- "id": 10879,
- "name": "Ad Hoc Lunch",
- "ops_notes": "Attendees: 200 | Package: $12pp, Variety\n",
- "guest_count": 30,
- "meal_type": {},
- "meal_period": {
- "id": 2,
- "name": "Lunch"
- },
- "package": "variety",
- "dietary_restrictions_groups": [
- {
- "id": 1,
- "name": "Vegetarian"
- },
- {
- "id": 2,
- "name": "Vegan"
- },
- {
- "id": 3,
- "name": "Vegan + Gluten Free"
- },
- {
- "id": 4,
- "name": "Meat + Gluten Free"
- },
- {
- "id": 5,
- "name": "Meat + Dairy Free"
- }
- ],
- "frequency": null,
- "organization_allergies": [
- {
- "id": 8,
- "name": "shellfish"
- }
- ],
- "organization": {
- "id": 8015,
- "name": "Keller WIlliams Realty Inc Avery Lavender"
- },
- "notes": "Attendees: 200 | Package: $12pp, Variety\n"
- },
- "meal_sections": [],
- "is_big_eater": true,
- "big_eater_type": "mains",
- "big_eater_omnivore_count": 10,
- "big_eater_vegetarian_count": 10
- }
- ```
- ### Place Order - POST/PUT `/api/orders/order/place/:order_id?`
- #### Example Request Payload
- ```
- {
- "id": 0,
- "delivery_datetime": "2019-07-10T10:00:00-07:00",
- "add_on_items": [],
- "included_items": [
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": true,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 138,
- "id": 0,
- "total_amount": 28,
- "name": "Tomato Cilantro Sauce",
- "total_cost": 0,
- "meal_component_id": 1,
- "vendor_cost": 0,
- "priority": 1,
- "portion_amount": 0.8,
- "is_add_on": false,
- "quantity": 36,
- "key": "138-1-1",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": true,
- "dietary_restriction_groups": [
- 6,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 9,
- "name": "serving"
- },
- "item_id": 156,
- "id": 0,
- "total_amount": 90,
- "name": "Homemade Dressing",
- "total_cost": 0,
- "meal_component_id": 2,
- "vendor_cost": 0,
- "priority": 3,
- "portion_amount": 3,
- "is_add_on": false,
- "quantity": 30,
- "key": "156-2-3",
- "dietary_restrictions": [
- 1,
- 2,
- 6
- ]
- }
- ],
- "items": [
- {
- "client_price": 0,
- "included_item_ids": [
- 138
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 4,
- "name": "pc."
- },
- "item_id": 135,
- "id": 0,
- "total_amount": 36,
- "name": "Turkey Momo",
- "total_cost": 54,
- "meal_component_id": 1,
- "vendor_cost": 3,
- "priority": 1,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 18,
- "key": "135-1-1",
- "dietary_restrictions": [
- 3
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [
- 138
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 4,
- "name": "pc."
- },
- "item_id": 137,
- "id": 0,
- "total_amount": 36,
- "name": "Lamb Momo",
- "total_cost": 54,
- "meal_component_id": 1,
- "vendor_cost": 3,
- "priority": 2,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 18,
- "key": "137-1-2",
- "dietary_restrictions": [
- 3
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 2
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 143,
- "id": 0,
- "total_amount": 6,
- "name": "Baigun Bharta",
- "total_cost": 5.5,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 3,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 1,
- "key": "143-1-3",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 144,
- "id": 0,
- "total_amount": 12,
- "name": "Grilled Nepali Chicken",
- "total_cost": 11,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 4,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 2,
- "key": "144-1-4",
- "dietary_restrictions": []
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 146,
- "id": 0,
- "total_amount": 144,
- "name": "Kukhura Aloo",
- "total_cost": 108,
- "meal_component_id": 1,
- "vendor_cost": 6,
- "priority": 5,
- "portion_amount": 8,
- "is_add_on": false,
- "quantity": 18,
- "key": "146-1-5",
- "dietary_restrictions": []
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 147,
- "id": 0,
- "total_amount": 114,
- "name": "Pork Choila",
- "total_cost": 104.5,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 6,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 19,
- "key": "147-1-6",
- "dietary_restrictions": [
- 6
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 2
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 148,
- "id": 0,
- "total_amount": 8,
- "name": "Golveda Ra Tofu Hariyo Keraw",
- "total_cost": 6,
- "meal_component_id": 1,
- "vendor_cost": 6,
- "priority": 7,
- "portion_amount": 8,
- "is_add_on": false,
- "quantity": 1,
- "key": "148-1-7",
- "dietary_restrictions": [
- 1,
- 2,
- 6
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [
- 156
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 151,
- "id": 0,
- "total_amount": 60,
- "name": "Seasonal Salad",
- "total_cost": 45,
- "meal_component_id": 2,
- "vendor_cost": 1.5,
- "priority": 1,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 30,
- "key": "151-2-1",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 155,
- "id": 0,
- "total_amount": 90,
- "name": "Jeera Brown Rice",
- "total_cost": 45,
- "meal_component_id": 2,
- "vendor_cost": 1.5,
- "priority": 2,
- "portion_amount": 3,
- "is_add_on": false,
- "quantity": 30,
- "key": "155-2-2",
- "dietary_restrictions": [
- 1,
- 2
- ]
- }
- ],
- "item_swaps": [],
- "meal": {
- "id": 12,
- "name": "Turkey/Lamb Momo Meal",
- "package": "VARIETY"
- },
- "menu": {
- "id": 7,
- "name": "Nepali Momo Menu",
- "description": "Nepali food is hearty and flavorful! Get a taste with some salad, two sides, two momos, one main and some of Bini's tomato-cilantro sauce for dipping."
- },
- "notes": "Attendees: 200 | Package: $12pp, Variety\n",
- "organization": {
- "id": 8015,
- "name": "Keller WIlliams Realty Inc Avery Lavender",
- "meal_specialist": 9098,
- "ops_notes": ""
- },
- "vendor": {
- "id": 559,
- "name": "Bini's Kitchen",
- "branch": ""
- },
- "guests": 30,
- "delivery_pickup_time": "2019-07-10T15:17:46Z",
- "timezone": "America/Chicago",
- "is_demo": false,
- "is_canceled": false,
- "latest_order_ack_id": null,
- "vendor_ack_status": "unrequested",
- "dietary_restrictions": [
- {
- "id": 1,
- "count": 0
- },
- {
- "id": 2,
- "count": 2
- },
- {
- "id": 3,
- "count": 0
- },
- {
- "id": 4,
- "count": 3
- },
- {
- "id": 5,
- "count": 0
- },
- {
- "id": 6,
- "count": 0
- }
- ],
- "total_cost": 433,
- "schedule_ruleset": {
- "id": 10879,
- "name": "Ad Hoc Lunch",
- "ops_notes": "Attendees: 200 | Package: $12pp, Variety\n",
- "guest_count": 30,
- "meal_type": {},
- "meal_period": {
- "id": 2,
- "name": "Lunch"
- },
- "package": "variety",
- "dietary_restrictions_groups": [
- {
- "id": 1,
- "name": "Vegetarian"
- },
- {
- "id": 2,
- "name": "Vegan"
- },
- {
- "id": 3,
- "name": "Vegan + Gluten Free"
- },
- {
- "id": 4,
- "name": "Meat + Gluten Free"
- },
- {
- "id": 5,
- "name": "Meat + Dairy Free"
- }
- ],
- "frequency": null,
- "organization_allergies": [
- {
- "id": 8,
- "name": "shellfish"
- }
- ],
- "organization": {
- "id": 8015,
- "name": "Keller WIlliams Realty Inc Avery Lavender"
- },
- "notes": "Attendees: 200 | Package: $12pp, Variety\n"
- },
- "meal_sections": [],
- "is_big_eater": true,
- "big_eater_type": "mains",
- "big_eater_omnivore_count": 10,
- "big_eater_vegetarian_count": 10
- }
- ```
- #### Example Response
- ```
- {
- "id": 265863,
- "order_id": "MAL8R",
- "delivery_datetime": "2019-07-10T10:00:00-07:00",
- "add_on_items": [],
- "included_items": [
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": true,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 138,
- "id": 65,
- "total_amount": 28,
- "name": "Tomato Cilantro Sauce",
- "total_cost": 0,
- "meal_component_id": 1,
- "vendor_cost": 0,
- "priority": 1,
- "portion_amount": 0.8,
- "is_add_on": false,
- "quantity": 36,
- "key": "138-1-1",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": true,
- "dietary_restriction_groups": [
- 6,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 9,
- "name": "serving"
- },
- "item_id": 156,
- "id": 66,
- "total_amount": 90,
- "name": "Homemade Dressing",
- "total_cost": 0,
- "meal_component_id": 2,
- "vendor_cost": 0,
- "priority": 3,
- "portion_amount": 3,
- "is_add_on": false,
- "quantity": 30,
- "key": "156-2-3",
- "dietary_restrictions": [
- 1,
- 2,
- 6
- ]
- }
- ],
- "items": [
- {
- "client_price": 0,
- "included_item_ids": [
- 138
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 4,
- "name": "pc."
- },
- "item_id": 135,
- "id": 56,
- "total_amount": 36,
- "name": "Turkey Momo",
- "total_cost": 54,
- "meal_component_id": 1,
- "vendor_cost": 3,
- "priority": 1,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 18,
- "key": "135-1-1",
- "dietary_restrictions": [
- 3
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [
- 138
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 4,
- "name": "pc."
- },
- "item_id": 137,
- "id": 57,
- "total_amount": 36,
- "name": "Lamb Momo",
- "total_cost": 54,
- "meal_component_id": 1,
- "vendor_cost": 3,
- "priority": 2,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 18,
- "key": "137-1-2",
- "dietary_restrictions": [
- 3
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 2
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 143,
- "id": 58,
- "total_amount": 6,
- "name": "Baigun Bharta",
- "total_cost": 5.5,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 3,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 1,
- "key": "143-1-3",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 144,
- "id": 59,
- "total_amount": 12,
- "name": "Grilled Nepali Chicken",
- "total_cost": 11,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 4,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 2,
- "key": "144-1-4",
- "dietary_restrictions": []
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 146,
- "id": 60,
- "total_amount": 144,
- "name": "Kukhura Aloo",
- "total_cost": 108,
- "meal_component_id": 1,
- "vendor_cost": 6,
- "priority": 5,
- "portion_amount": 8,
- "is_add_on": false,
- "quantity": 18,
- "key": "146-1-5",
- "dietary_restrictions": []
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 147,
- "id": 61,
- "total_amount": 114,
- "name": "Pork Choila",
- "total_cost": 104.5,
- "meal_component_id": 1,
- "vendor_cost": 5.5,
- "priority": 6,
- "portion_amount": 6,
- "is_add_on": false,
- "quantity": 19,
- "key": "147-1-6",
- "dietary_restrictions": [
- 6
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 2
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 148,
- "id": 62,
- "total_amount": 8,
- "name": "Golveda Ra Tofu Hariyo Keraw",
- "total_cost": 6,
- "meal_component_id": 1,
- "vendor_cost": 6,
- "priority": 7,
- "portion_amount": 8,
- "is_add_on": false,
- "quantity": 1,
- "key": "148-1-7",
- "dietary_restrictions": [
- 1,
- 2,
- 6
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [
- 156
- ],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 151,
- "id": 63,
- "total_amount": 60,
- "name": "Seasonal Salad",
- "total_cost": 45,
- "meal_component_id": 2,
- "vendor_cost": 1.5,
- "priority": 1,
- "portion_amount": 2,
- "is_add_on": false,
- "quantity": 30,
- "key": "151-2-1",
- "dietary_restrictions": [
- 1,
- 2
- ]
- },
- {
- "client_price": 0,
- "included_item_ids": [],
- "is_included_item": false,
- "dietary_restriction_groups": [
- 6,
- 2,
- 4
- ],
- "portion_unit": {
- "id": 8,
- "name": "oz. (weight)"
- },
- "item_id": 155,
- "id": 64,
- "total_amount": 90,
- "name": "Jeera Brown Rice",
- "total_cost": 45,
- "meal_component_id": 2,
- "vendor_cost": 1.5,
- "priority": 2,
- "portion_amount": 3,
- "is_add_on": false,
- "quantity": 30,
- "key": "155-2-2",
- "dietary_restrictions": [
- 1,
- 2
- ]
- }
- ],
- "item_swaps": [],
- "meal": {
- "id": 12,
- "name": "Turkey/Lamb Momo Meal",
- "package": "VARIETY"
- },
- "menu": {
- "id": 7,
- "name": "Nepali Momo Menu",
- "description": "Nepali food is hearty and flavorful! Get a taste with some salad, two sides, two momos, one main and some of Bini's tomato-cilantro sauce for dipping."
- },
- "notes": "Attendees: 200 | Package: $12pp, Variety\n",
- "organization": {
- "id": 8015,
- "name": "Keller WIlliams Realty Inc Avery Lavender",
- "meal_specialist": 9098,
- "ops_notes": ""
- },
- "vendor": {
- "id": 559,
- "name": "Bini's Kitchen",
- "branch": ""
- },
- "guests": 30,
- "delivery_pickup_time": "2019-07-10T08:25:00-07:00",
- "timezone": "America/Chicago",
- "is_demo": false,
- "is_canceled": false,
- "latest_order_ack_id": 120437,
- "vendor_ack_status": "initial_requested",
- "dietary_restrictions": [
- {
- "id": 1,
- "count": 0
- },
- {
- "id": 2,
- "count": 2
- },
- {
- "id": 3,
- "count": 0
- },
- {
- "id": 4,
- "count": 3
- },
- {
- "id": 5,
- "count": 0
- },
- {
- "id": 6,
- "count": 0
- }
- ],
- "total_cost": null,
- "schedule_ruleset": {
- "id": 10879,
- "name": "Ad Hoc Lunch",
- "ops_notes": "Attendees: 200 | Package: $12pp, Variety\n",
- "guest_count": 30,
- "meal_type": {},
- "meal_period": {
- "id": 2,
- "name": "Lunch"
- },
- "package": "variety",
- "dietary_restrictions_groups": [
- {
- "id": 1,
- "name": "Vegetarian"
- },
- {
- "id": 2,
- "name": "Vegan"
- },
- {
- "id": 3,
- "name": "Vegan + Gluten Free"
- },
- {
- "id": 4,
- "name": "Meat + Gluten Free"
- },
- {
- "id": 5,
- "name": "Meat + Dairy Free"
- }
- ],
- "frequency": null,
- "organization_allergies": [
- {
- "id": 8,
- "name": "shellfish"
- }
- ],
- "organization": {
- "id": 8015,
- "name": "Keller WIlliams Realty Inc Avery Lavender"
- },
- "notes": "Attendees: 200 | Package: $12pp, Variety\n"
- },
- "is_big_eater": false,
- "big_eater_type": "",
- "big_eater_omnivore_count": 0,
- "big_eater_vegetarian_count": 0
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement