---
title: "Reorder items from a previous customer order"
method: POST
path: "/reorder"
tags: ["Customer Order"]
---

# Reorder items from a previous customer order

`POST /reorder`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/reorder`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/reorder/post.ts> (a function with typed inputs; its response is checked against the schema)

Re-adds the items from the given completed/canceled order to the authenticated customer's cart. Same flow as the storefront "Reorder" button.

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Request body

- object
  - `orderId` integer, required: The ID of the previous order whose items should be added back to the cart.

## Response `201`

Items re-added to the cart.

## Other responses

- `400`: Order not found, not owned by the caller, or items no longer purchasable.
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-shop-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-shop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-shop-api/revisions/f619df36bf29?raw)
