---
title: "PUT /orders/{orderId}/amendments/{amendmentId}"
method: PUT
path: "/orders/{orderId}/amendments/{amendmentId}"
tags: ["Order amendments"]
---

# PUT /orders/{orderId}/amendments/{amendmentId}

`PUT /orders/{orderId}/amendments/{amendmentId}`

## Request

- Base URL: `https://virtserver.swaggerhub.com/GrubTech/grubtech-grocery-integration-apis/1.0.0`
- URL: `https://virtserver.swaggerhub.com/GrubTech/grubtech-grocery-integration-apis/1.0.0/orders/{orderId}/amendments/{amendmentId}`
- Auth: OAuth 2
  - Authorization code: `https://id.staging.grubtech.io/oauth2/authorize`
  - Token URL: `https://id.staging.grubtech.io/oauth2/token`

If the aggregator platform supports getting the confirmation for the order amendments from the customers, confirmation should be provided for the suggested amendments using this endpoint.

## Path parameters

- `orderId` string, required
- `amendmentId` string, required

## Request body

- ConfirmAmendments
  - `itemAmendments` OrderAmendment[], required
    - `amendedItem` Amends, required
      - `id` string, required: Unique identifier for the original item of the order
      - `lineId` string, required: Unique identifying ID for the order line item within the order provided by the store.
      - `quantity` integer: The initial amount of the original item which came before the substitution
    - `final_quantity` integer: The final quantity of the amended item.
    - `substitutionItemId` string: Unique identifier of the substituted item
    - `substitutionLineId` string: Unique identifier for the substitution suggestion
    - `adjustmentType` 'ITEM_REMOVAL' | 'ITEM_SUBSTITUTION' | 'QTY_ADJUSTMENT', required

## Response `204`

Successful response

## Other responses

- `400`: Bad request
- `500`: Internal server error

---

[API](https://skmtc.dev/grubtech/apis/grubtech-grocery-apis.md) - [All operations](https://skmtc.dev/grubtech/apis/grubtech-grocery-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/grubtech/apis/grubtech-grocery-apis/revisions/38664609b45c?raw)
