---
updatedAt: 2026-03-24T12:13:59.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# REST Pay Display API tutorials

[block:html]
{
  "html": "<!--JIRA DS-3009; Region pill icon added to topic on 3.27.2023-->\n<div class=\"container\">\n<!--US-->\n  <div class=\"pill\">\n    <div class=\"label\">United States</div>\n  </div>\n<!--Canada-->\n  <div class=\"pill\">\n    <div class=\"label\">Canada</div>\n</div>\n    <!--Europe-->\n  <div class=\"pill\">\n    <div class=\"label\">Europe</div>\n</div>\n</div>\n\n<style>\nbody {\n  font-family: \"Segoe UI\", \"Roboto\",\n    \"Segoe UI Symbol\";\n}\n.container {\n  align-items: center;\n  min-width: 10%;\n  text-align: left;\n   overflow: auto;\n}\n/*Pill format*/\n.pill {\n  background: #44BB44;\n  border: .5px solid #44BB44;\n  margin-left: 5px;\n  overflow: auto;\n\n}\n/*Text positioning inside the pill*/\n.pill,\n.pill__addon {\n  display: inline-block;\n  box-sizing: border-box;\n  padding: 0px 10px;\n  border-radius: 10px;\n  position: relative;\n  height: 1.5rem;\n}\n/*Text format inside the pill*/\n.pill .label,\n.pill__addon .label {\n  font-style: normal;\n  font-weight: normal;\n  font-size: 0.70rem;\n  color: #fff;\n  display: inline-block;\n  vertical-align: middle;\n \n}\n</style>"
}
[/block]

The REST Pay Display tutorials display the basic usage of each endpoint in the REST Pay Display API.

## Required request data

The endpoints of the API require one or more headers to successfully complete a request. Use the following table to determine the header or headers needed for a request.

All requests support the following:

| Header               | Required?                         |
| -------------------- | --------------------------------- |
| `X-Clover-Device-Id` | Required                          |
| `X-POS-Id`           | Required                          |
| `Idempotency-Key`    | Required for financial operations |

### Idempotent requests

Some request types require an `Idempotency-Key` header to safeguard against accidentally repeating a transaction. This is useful when an API call is disrupted in transit and a response is not returned. **Example:** If a request to create a charge does not respond due to a network connection error, you can retry the request with the same idempotency key to guarantee that no more than one charge is created.

The request types that require an `Idempotency-Key` header are—refund, payment, charge, and capture.

```yaml
Idempotency-Key: {your key}
```

All requests support the idempotency header, but it is required for financial operations:

* `/v1/credits`
* `/v1/payments`
* `/v1/payments/{paymentId}/capture`
* `/v1/payments/{paymentId}/increment`
* `/v1/payments/{paymentId}/refunds`
* `/v1/payments/{paymentId}/tip-adjust`
* `/v1/payments/{paymentId}/void`

> 📘 NOTE
>
> To learn more, see our blog post [Fiddling Through Digital Keys: Clover Auth Tokens and Ecommerce Keys](https://medium.com/clover-platform-blog/understanding-clover-auth-tokens-and-ecommerce-keys-4e048827afa2).

### Identify the target device serial number

The REST Pay API provides interaction with physical Clover devices, so your POS must specify the device to process a request. To do this, set the `X-Clover-Device-Id` header with the **serial number** of the device. You can find the serial number in the Setup app on the device under **Devices** or from the web dashboard.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/70ff4be-Screen_Shot_2022-03-08_at_11.38.12_AM.png",
        "Screen Shot 2022-03-08 at 11.38.12 AM.png",
        777
      ],
      "align": "center",
      "sizing": "smart"
    }
  ]
}
[/block]

```yaml
X-Clover-Device-Id: {your device serial number}
```

If the provided ID does not match the device's serial number, an error message is returned. The status code for the error is `400 Bad Request`.

```json
{
    "code": "processing_error",
    "message": "Device serial number does not match X-Clover-Device-Id",
    "type": "api_error"
}
```

### Identify the POS to Clover systems

If you want to record which POS sent a request, include a `X-POS-ID` header with a value of your choice.

```yaml
X-POS-ID: {your POS name}
```

## Locate unique identifiers (UUIDs)

If you need your app, developer, or test merchant UUID, you can log in to the developer dashboard to get this information. These IDs are different in sandbox and production, so ensure you are logged in to the correct environment:

* [Sandbox developer dashboard](https://sandbox.dev.clover.com/developer-home/login)
* [Production developer dashboard](https://clover.com/developer-home/login)

### Locate an app UUID

Each of your app's basic information displays in a card on the developer dashboard. The app UUID is the 13-character value under the app name.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/bb0d1f8-2021-04-14_15h27_58.png",
        "2021-04-14_15h27_58.png",
        479
      ],
      "align": "center",
      "sizing": "smart"
    }
  ]
}
[/block]

The app settings page also displays the UUID.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/4ce9a5e-2021-04-14_15h34_25.png",
        "2021-04-14_15h34_25.png",
        531
      ],
      "align": "center",
      "sizing": "smart"
    }
  ]
}
[/block]

### Locate your developer UUID

To view your developer ID, from the account menu in the top right, select **Developer Settings**. On the Settings page, the ID appears in the Developer Info section.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/e85820c-2021-04-14_16h18_47.png",
        "2021-04-14_16h18_47.png",
        510
      ],
      "align": "center",
      "sizing": "smart"
    }
  ]
}
[/block]

### Locate your test merchant UUID

1. To view your merchant ID, select the test merchant from the dashboard drop-down list.
2. On the side-nav, select **Setup > Merchants**. On the Account Settings page, the ID appears in the Merchant column under the merchant name.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/447b687-2021-04-14_16h34_00.png",
        "2021-04-14_16h34_00.png",
        783
      ],
      "align": "center",
      "sizing": "smart"
    }
  ]
}
[/block]

## End customer transactions

End your customer transactions with a call to the [Welcome](https://docs.clover.com/dev/docs/showing-the-welcome-screen#) or [Thank You](https://docs.clover.com/dev/docs/showing-the-thank-you-screen#) screen; otherwise, the spinning icon remains on the screen until another action is taken.