---
title: "Edit Order"
method: PUT
path: "/{orderId}"
---

# Edit Order

`PUT /{orderId}`

## Path parameters

- `orderId` string, required

## Headers

- `Authorization` string
- `Content-Type` string

## Request body

- object
  - `orderId` integer — Unique orderID that was provided from the system once the order was inserted
  - `orderNo` string, required — Numeric identifier for the order object
  - `customerName` string, required — The name of the customer
  - `customerAddress` string, required — Address of the customer
  - `customerEmail` string, required — Email Address of the customer
  - `customerPhoneNumber` string, required — Phone number of the customer with country code
  - `restaurantName` string, required — Name of the restaurant
  - `restaurantAddress` string, required — Address of the restaurant
  - `restaurantPhoneNumber` string — Phone number of the restaurant with country code
  - `expectedDeliveryDate` string, date — Expected delivery date for the particular order ( yyyy-mm-dd formatv)
  - `expectedPickupTime` string, date-time — Expected pickup time for the particular order (format hh:mm:ss)
  - `expectedDeliveryTime` string, date-time — Expected Delivery Time for the particular order (format hh:mm:ss)
  - `pickupLatitude` number, double — Pickup location latitude
  - `pickupLongitude` number, double — Pickup location longitude
  - `deliveryLatitude` number, double — Delivery location latitude
  - `deliveryLongitude` number, double — Delivery location longitude
  - `orderItems` unknown[] — Array of Order item objects
    - unknown
  - `tip` number, double — Tips amount for the order
  - `tax` number, double — Tax amount for the order
  - `discountAmount` number, double — Discount amount for the order
  - `deliveryFee` number, double — Delivery fee amount for the order
  - `totalCost` string — Total cost for the particular order
  - `deliveryInstruction` string — Delivery Instruction for the driver or restaurant (if given)
  - `orderSource` string — Source of the order
  - `additionalId` string — Additional ID for the order
  - `clientRestaurantId` integer — Client Restaurant ID
  - `paymentMethod` string — Selected payment method for the order
  - `creditCardType` string — Type of the credit card ( Not needed if the payment method is 'cash' )
  - `creditCardId` integer — Last four digits of the credit card ( Not needed if the payment method is 'cash' )
  - `pickup` object — Pickup details breakdown
  - `dropoff` object — Dropoff details breakdown

## Response `200`

200

- object
  - `success` boolean
  - `response` string

---

[API](https://skmtc.net/shipday/apis/orders.md) · [All operations](https://skmtc.net/shipday/apis/orders/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shipday/orders/versions/a1dbdb6c88ba/schema)
