> ## Documentation Index
> Fetch the complete documentation index at: https://developers-docs.easyorders.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Checkout fields

> Read and change the fields of the store's checkout form: labels, order, and which ones show and are required.

Scopes: `read_checkout_form` to read, `write_checkout_form` to change (it includes `read_checkout_form`, and is [protected](https://developers-docs.easyorders.ai/scopes.md)).

## The checkout field

Each field of the store's checkout form fills one field of the order, named by its `key`:

```json theme={"dark"}
{
  "id": "6c2f8d3b-0e4a-4b7f-9c6d-2a3b4c5d6e70",
  "key": "phone",
  "name": "Mobile number",
  "type": "input",
  "placeholder": "01xxxxxxxxx",
  "position": 1,
  "is_active": true,
  "is_required": true
}
```

| Field | |
| - | - |
| `key` | Which order field it fills: `full_name`, `phone`, `email`, `country`, `government`, `address`, or one of the optional `phone_alt`, `note` and `sa_national_address`. Fixed. |
| `type` | `input` (one line) or `textarea` (several). Fixed. |
| `name` | The label the shopper sees. 1 to 255 characters, one line, no `<`. |
| `placeholder` | The hint in the empty field. Up to 255 characters, one line, no `<`; `""` for none. |
| `position` | The field's place in the form, 0 to 1000, lowest first. |
| `is_active` | Whether the form shows the field. |
| `is_required` | Whether the shopper must fill it. |

## What can change

[Update a checkout field](https://developers-docs.easyorders.ai/api-reference/checkout-fields/update-a-checkout-field.md) changes `name`, `placeholder`, `position`, `is_active` and `is_required`, only the ones you send. `key` and `type` never change.

`full_name` and `phone` are needed by every order, so they **stay shown and required**. Setting `is_active` or `is_required` to `false` on either answers `422` with the rule `always_required`:

```json theme={"dark"}
{
  "error": {
    "code": "validation_failed",
    "message": "Validation failed",
    "details": { "fields": [{ "field": "is_required", "rule": "always_required", "param": "phone" }] }
  }
}
```

## Adding an optional field

A form does not start with `phone_alt`, `note` and `sa_national_address`. Add one with [Add a checkout field](https://developers-docs.easyorders.ai/api-reference/checkout-fields/add-a-checkout-field.md) and its `key`. It starts hidden and optional, last in the form, unless you send other values. Each key is added once: when the form already has it, the answer is `409 checkout_field_exists`, and you change it with an update instead. Fields cannot be deleted; hide one with `is_active: false`.

## No pagination

[List checkout fields](https://developers-docs.easyorders.ai/api-reference/checkout-fields/list-checkout-fields.md) answers every field of the form, in the order the shopper sees them, in one page: `next_cursor` is always `null`.

## Changes show at once

The store's checkout shows a change right away. The form's other settings are not part of this API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.