---
title: "POST /orders/{id}/prepared"
method: POST
path: "/orders/{id}/prepared"
tags: ["Order"]
---

# POST /orders/{id}/prepared

`POST /orders/{id}/prepared`

## 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/{id}/prepared`
- Auth: API key in header `X-API-KEY`

Grubtech will mark the order as prepared using this endpoint. This payload will consist of all the final amendments made for this order.

## Path parameters

- `id` string, required

## Request body

- OrderPrepare: Order prepare information
  - `preparedAt` string, required: The time at which the order was prepared is represented in ISO 8601 format.
  - `orderAmendments` OrderAmendment[]
    - `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`

No Content

## Other responses

- `400`: Bad Request
- `404`: The specified resource was not found
- `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)
