Edit Order

Returns

Returns a response Object object

Response object child attributes

***>
success Boolean
Boolean value indicating the success of the order insert


response String
Message on whether the order updated or not.

Possible enum values of 'paymentMethod'
cash
credit_card
Possible enum values of 'creditCardType'
visa
master_card
AMEX
other

orderItem array pickup object dropoff object

[
    {
        "name":"Veggie Duck",
        "unitPrice":14.95,
        "quantity":2,
        "addOns": ["Onion Rings","Sauce"],
        "detail": "Please don't use corn in mixed vegetables"
    },
    {
        "name":"Mango Chicken",
        "unitPrice":13.95,
        "quantity":2
    }
]
{
    "address": {
       "unit": "Apt 23",
        "street": "890 Geneva Ave",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94112",
        "country": "United States"
  }
}
{
    "address": {
       "unit": "Suite 12",
        "street": "556 Crestlake Dr",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94132",
        "country": "USA"
  }
}

orderId

string

required

orderId

int64

Defaults to 6355523

Unique orderID that was provided from the system once the order was inserted

orderNo

string

required

Defaults to 99

Numeric identifier for the order object

customerName

string

required

Defaults to Mr. Jhon Mason

The name of the customer

customerAddress

string

required

Defaults to 556 Crestlake Dr, San Francisco, CA 94132, USA

Address of the customer

customerEmail

string

required

Defaults to jhonMason@gmail.com

Email Address of the customer

customerPhoneNumber

string

required

Defaults to +14152392212

Phone number of the customer with country code

restaurantName

string

required

Defaults to Popeyes Louisiana Kitchen

Name of the restaurant

restaurantAddress

string

required

Defaults to 890 Geneva Ave, San Francisco, CA 94112, United States

Address of the restaurant

restaurantPhoneNumber

string

Defaults to +14152392013

Phone number of the restaurant with country code

expectedDeliveryDate

date

Defaults to 2021-06-03

Expected delivery date for the particular order ( yyyy-mm-dd format)

expectedPickupTime

date-time

Defaults to 17:45:00

Expected pickup time for the particular order (format hh:mm:ss)

expectedDeliveryTime

date-time

Defaults to 19:22:00

Expected Delivery Time for the particular order (format hh:mm:ss)

pickupLatitude double

Defaults to 41.53867

Pickup location latitude

pickupLongitude double

Defaults to -72.0827

Pickup location longitude

deliveryLatitude double

Defaults to 41.53867

Delivery location latitude

deliveryLongitude double

Defaults to -72.0827

Delivery location longitude

orderItems

array

Array of Order item objects

orderItems tip double

Defaults to 2.5

Tips amount for the order tax double

Defaults to 1.5

Tax amount for the order discountAmount double

Defaults to 1.5

Discount amount for the order deliveryFee double

Defaults to 3

Delivery fee amount for the order totalCost string

Defaults to 13.47

Total cost for the particular order deliveryInstruction string

Defaults to fast

Delivery Instruction for the driver or restaurant (if given)

orderSource string

Defaults to Seamless

Source of the order

additionalId string

Defaults to 4532

Additional ID for the order

clientRestaurantId int32

Defaults to 12

Client Restaurant ID

paymentMethod string

Defaults to credit_card

Selected payment method for the order

creditCardType string

Defaults to visa

Type of the credit card ( Not needed if the payment method is 'cash' )

creditCardId int32

Defaults to 1234

Last four digits of the credit card ( Not needed if the payment method is 'cash' )

``200 200

object

success

boolean

Defaults to true

response

string

Order updated

{
  "success": true,
  "response": "Order updated"
}