# order-edit-request

> 2.0: form where the customer asks to remove lines not yet shipped (Shopify's orderRequestEdit, removals only: the merchant resolves or declines it in the admin). Same rows and form as order-return, without reasons

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/astro/reference/elements/order-edit-request  
Updated: 2026-10-21

## Where it can go

- **Inside any of:** [`order-page`](https://www.smootify.io/docs/astro/reference/elements/order-page), [`customer-order`](https://www.smootify.io/docs/astro/reference/elements/customer-order).
- **Must contain** `form`, [`request-line-item`](https://www.smootify.io/docs/astro/reference/elements/request-line-item).
- **Out of place,** Smootify removes it from the page: outside an order, or without a form or a row.

## What it requires

- Shopify’s **customer accounts**, and `newCustomerAccountsPublicKey` in [`SmootifyUserOptions`](https://www.smootify.io/docs/astro/reference/options).

## Fields in the form

Each field’s `name` attribute tells Smootify what the field holds.

| Name | Field | What it does |
|---|---|---|
| `quantity` (in each `request-line-item`) | `input type="number"` input, `select` | How many of the line are asked for, kept between 0 and what the line allows (`max` written; a select gets its options, from 1 with a checkbox, else 0). |
| a checkbox (in each `request-line-item`, any name) | `input type="checkbox"` | The row is asked for only while ticked: its `quantity` field, else all of the line. |

## Attributes on the element

- **It reads** `is-requestable`, `has-request`, `loaded`.

## Attributes inside it

| Group | Attribute name | Values |
|---|---|---|
| [Removal request](https://www.smootify.io/docs/astro/reference/attributes/order-edit-request) | `order-edit-request` | 3 |
| [Return and removal fields](https://www.smootify.io/docs/astro/reference/attributes/order-request-fields) | `name` | 3 |

## Loading

Its code loads only on pages that have `order-edit-request`.
