> For the complete documentation index, see [llms.txt](https://docs.udara360.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.udara360.io/udara360-docs-1/pos-instant-settlement/pos-instant-settlement/update-terminal.md).

# Update Terminal

The "Update Terminal" endpoint allows customers to update an existing terminal's settings.

<mark style="color:blue;">`PUT`</mark> `/api/terminal/v1/Update`

Provide the `id` of the terminal, its `serialNumber`, override flags (`overrideParentAccount`, `overrideParentFee`), and the fee configuration to update (`useFlatFee`, `flatFee`, `percFee`, `percFeeCap`).

**Headers**

| Name                                            | Value                |
| ----------------------------------------------- | -------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | `application/json`   |
| Authorization<mark style="color:red;">\*</mark> | `bearer {token}`     |
| Request-Reference                               | `{unique_reference}` |

**Params**

<table><thead><tr><th>Name</th><th>Data Type</th><th data-type="checkbox">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td><td>true</td><td>The ID of the terminal record to update.</td></tr><tr><td><code>serialNumber</code></td><td>string</td><td>false</td><td>The terminal's serial number.</td></tr><tr><td><code>overrideParentAccount</code></td><td>boolean</td><td>false</td><td>Whether to override the terminal's parent account.</td></tr><tr><td><code>overrideParentFee</code></td><td>boolean</td><td>false</td><td>Whether to override the terminal's parent fee configuration.</td></tr><tr><td><code>useFlatFee</code></td><td>boolean</td><td>false</td><td>Whether to charge a flat fee instead of a percentage fee.</td></tr><tr><td><code>flatFee</code></td><td>number</td><td>false</td><td>The flat fee amount, used when <code>useFlatFee</code> is true.</td></tr><tr><td><code>percFee</code></td><td>number</td><td>false</td><td>The percentage fee, used when <code>useFlatFee</code> is false.</td></tr><tr><td><code>percFeeCap</code></td><td>number</td><td>false</td><td>The maximum fee amount a percentage-based fee can reach.</td></tr></tbody></table>

Here is an example request and response with a sample payload sent to the endpoint in Curl format.

<details>

<summary>Sample Request</summary>

```json
curl --location -g --request PUT '{{baseurl}}/api/terminal/v1/Update' \
--header 'Authorization: bearer {token}' \
--header 'request-reference: {unique_reference}' \
--header 'Content-Type: application/json' \
--data '{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "serialNumber": "string",
  "overrideParentAccount": true,
  "overrideParentFee": true,
  "useFlatFee": true,
  "flatFee": 20000,
  "percFee": 100,
  "percFeeCap": 10000
}'
```

</details>

<details>

<summary>Response: <code>200</code></summary>

```json
{
  "status": true,
  "message": "string"
}
```

</details>
