---
title: "Payments | Docs | POS by R&D Copilot"
description: "Pay an order by card or in cash, in one payment or several, and read the payments, declined attempts included."
canonical: "https://pos.rdcopilot.com/docs/api-reference/payments/"
language: en
updated: 2026-11-22
---

# Payments

Pay an order by card or in cash, in one payment or several, and read the payments, declined attempts included.

## Start a card payment

POST `/pos/v1/orders/{orderId}/card-payments`

Sends an amount to the card reader of the till, which waits for the card. `amount` defaults to what is still due. The result comes from the reader: an approved payment appears on the order (the order is `paid` when nothing is left to pay, and sends `order.paid`), and a declined one appears on the order with the status `declined` and sends `payment.declined`. Read the order or subscribe to the events. A card needs the network.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `orderId` | path | `string (uuid)` | Yesrequired | The order. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the order you read. |
| `amount` | `string` | Nooptional | The amount to take by card. It defaults to what is still due. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result: `aggregateId` is the record that was created or changed. | `OperationResult` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `404` | The order does not exist in your account. | `Error` |
| `409` | `operation_reused`: The `operationId` was already used with a different request. `revision_conflict`: The record changed since the revision you sent. Nothing was applied. | `Error` |
| `422` | `invalid_status`: The order is not in a status that allows this. `day_closed`: The business day of the till is closed. Nothing was changed. `reader_busy`: The card reader of the till is working on a payment. `network_lost`: The till has no network. Card payments, refunds and closing the day need it. `out_of_stock`: The shelf does not hold the quantity asked for. The check runs when an item is added and again when payment starts. `empty_order`: The order has no lines. `invalid_amount`: An amount must be greater than zero. `amount_exceeds_due`: The amount is more than what is still due on the order. | `Error` |
| `429` | Too many requests. The request was not processed. `Retry-After` gives the seconds to wait. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "d321f176-6d98-4a4d-8c07-4ce5210601f5",
  "expectedRevision": 5,
  "amount": "61.95"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "d321f176-6d98-4a4d-8c07-4ce5210601f5",
    "expectedRevision": 5,
    "amount": "61.95"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'd321f176-6d98-4a4d-8c07-4ce5210601f5',
        'expectedRevision': 5,
        'amount': '61.95',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "d321f176-6d98-4a4d-8c07-4ce5210601f5",
  "expectedRevision": 5,
  "amount": "61.95"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "d321f176-6d98-4a4d-8c07-4ce5210601f5",
  "expectedRevision": 5,
  "amount": "61.95"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "d321f176-6d98-4a4d-8c07-4ce5210601f5",
  "status": "accepted",
  "aggregateId": "9d8c072d-afa0-4272-97ab-4443d54d5b62",
  "aggregateRevision": 6
}
```

## Try the card again

POST `/pos/v1/orders/{orderId}/card-payments/retry`

Makes the reader wait for a card again after a decline, for the same amount. The attempts of one order keep counting. The order does not change, so its revision stays as it is.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `orderId` | path | `string (uuid)` | Yesrequired | The order. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the order you read. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result: `aggregateId` is the record that was created or changed. | `OperationResult` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `404` | The order does not exist in your account. | `Error` |
| `409` | `operation_reused`: The `operationId` was already used with a different request. `revision_conflict`: The record changed since the revision you sent. Nothing was applied. | `Error` |
| `422` | `day_closed`: The business day of the till is closed. Nothing was changed. `no_declined_card`: The reader has no declined card to try again. `network_lost`: The till has no network. Card payments, refunds and closing the day need it. | `Error` |
| `429` | Too many requests. The request was not processed. `Retry-After` gives the seconds to wait. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/retry" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "691e7778-6b81-4305-89d7-a9146efd7ee1",
  "expectedRevision": 7
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/retry`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "691e7778-6b81-4305-89d7-a9146efd7ee1",
    "expectedRevision": 7
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/retry',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '691e7778-6b81-4305-89d7-a9146efd7ee1',
        'expectedRevision': 7,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "691e7778-6b81-4305-89d7-a9146efd7ee1",
  "expectedRevision": 7
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/retry');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/retry");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "691e7778-6b81-4305-89d7-a9146efd7ee1",
  "expectedRevision": 7
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "691e7778-6b81-4305-89d7-a9146efd7ee1",
  "status": "accepted",
  "aggregateId": "9d8c072d-afa0-4272-97ab-4443d54d5b62",
  "aggregateRevision": 7
}
```

## Cancel the card payment

POST `/pos/v1/orders/{orderId}/card-payments/cancel`

Takes the amount back from the reader while it waits for the card or after a decline. The order goes back to `open`, or to `partially_paid` when it already has a payment. A reader that is reading or authorising cannot be cancelled.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `orderId` | path | `string (uuid)` | Yesrequired | The order. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the order you read. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result: `aggregateId` is the record that was created or changed. | `OperationResult` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `404` | The order does not exist in your account. | `Error` |
| `409` | `operation_reused`: The `operationId` was already used with a different request. `revision_conflict`: The record changed since the revision you sent. Nothing was applied. | `Error` |
| `422` | `day_closed`: The business day of the till is closed. Nothing was changed. `reader_busy`: The card reader of the till is working on a payment. `no_card_payment`: The reader is not waiting for a card and has no declined card to cancel. | `Error` |
| `429` | Too many requests. The request was not processed. `Retry-After` gives the seconds to wait. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/cancel" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "7d83da7d-aa63-4fbd-9fbb-ca0014ea1d8f",
  "expectedRevision": 7
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/cancel`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "7d83da7d-aa63-4fbd-9fbb-ca0014ea1d8f",
    "expectedRevision": 7
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/cancel',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '7d83da7d-aa63-4fbd-9fbb-ca0014ea1d8f',
        'expectedRevision': 7,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "7d83da7d-aa63-4fbd-9fbb-ca0014ea1d8f",
  "expectedRevision": 7
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/cancel');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/card-payments/cancel");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "7d83da7d-aa63-4fbd-9fbb-ca0014ea1d8f",
  "expectedRevision": 7
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "7d83da7d-aa63-4fbd-9fbb-ca0014ea1d8f",
  "status": "accepted",
  "aggregateId": "9d8c072d-afa0-4272-97ab-4443d54d5b62",
  "aggregateRevision": 8
}
```

## Take a cash payment

POST `/pos/v1/orders/{orderId}/cash-payments`

Records the cash the customer handed over. When it covers what is due the order is paid and the change is the difference; when it is less the order is `partially_paid` and the rest can be paid by card or in cash. Cash works without a network: the sale is stored by the till and posted later.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `orderId` | path | `string (uuid)` | Yesrequired | The order. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the order you read. |
| `given` | `string` | Yesrequired | The cash the customer handed over. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result: `aggregateId` is the record that was created or changed. | `OperationResult` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `404` | The order does not exist in your account. | `Error` |
| `409` | `operation_reused`: The `operationId` was already used with a different request. `revision_conflict`: The record changed since the revision you sent. Nothing was applied. | `Error` |
| `422` | `invalid_status`: The order is not in a status that allows this. `day_closed`: The business day of the till is closed. Nothing was changed. `reader_busy`: The card reader of the till is working on a payment. `out_of_stock`: The shelf does not hold the quantity asked for. The check runs when an item is added and again when payment starts. `empty_order`: The order has no lines. `invalid_amount`: An amount must be greater than zero. | `Error` |
| `429` | Too many requests. The request was not processed. `Retry-After` gives the seconds to wait. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/cash-payments" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "fe333144-5ab5-4611-bf3e-2ab3d18879c5",
  "expectedRevision": 5,
  "given": "70.00"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/cash-payments`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "fe333144-5ab5-4611-bf3e-2ab3d18879c5",
    "expectedRevision": 5,
    "given": "70.00"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/cash-payments',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'fe333144-5ab5-4611-bf3e-2ab3d18879c5',
        'expectedRevision': 5,
        'given': '70.00',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "fe333144-5ab5-4611-bf3e-2ab3d18879c5",
  "expectedRevision": 5,
  "given": "70.00"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/cash-payments');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/orders/9d8c072d-afa0-4272-97ab-4443d54d5b62/cash-payments");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "fe333144-5ab5-4611-bf3e-2ab3d18879c5",
  "expectedRevision": 5,
  "given": "70.00"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "fe333144-5ab5-4611-bf3e-2ab3d18879c5",
  "status": "accepted",
  "aggregateId": "9d8c072d-afa0-4272-97ab-4443d54d5b62",
  "aggregateRevision": 7
}
```

## List payments

GET `/pos/v1/payments`

Returns payments in pages, newest first, declined attempts included.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `orderId` | query | `string (uuid)` | Nooptional | Only payments of this order. |
| `method` | query | `string` | Nooptional | Only payments by this method. One of `card`, `cash` |
| `status` | query | `string` | Nooptional | Only payments in this status. One of `approved`, `declined` |
| `limit` | query | `integer` | Nooptional | Records per page, from 1 to 500. Default `100` Range `1` – `500` |
| `cursor` | query | `string` | Nooptional | The `nextCursor` of the previous page. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | A page of payments. | `PaymentPage` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `429` | Too many requests. The request was not processed. `Retry-After` gives the seconds to wait. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/pos/v1/payments?limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/payments?limit=20`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/pos/v1/payments?limit=20',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/payments?limit=20');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/payments?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `200`

JSON

```json
{
  "items": [
    {
      "id": "66f19c8c-2ef9-4f4e-845d-d2fddadf5f63",
      "orderId": "bc0ba299-ab00-4491-9d89-818cfeb93543",
      "method": "card",
      "status": "approved",
      "amount": "24.70",
      "given": null,
      "change": null,
      "card": {
        "brand": "visa",
        "last4": "6139",
        "entry": "contactless",
        "authCode": "327949",
        "declineReason": null
      },
      "at": "2026-11-23T06:35:10Z"
    },
    {
      "id": "2184b315-aeb9-4e41-b046-27b1f0e78338",
      "orderId": "bc0ba299-ab00-4491-9d89-818cfeb93543",
      "method": "cash",
      "status": "approved",
      "amount": "15.00",
      "given": "15.00",
      "change": "0.00",
      "card": null,
      "at": "2026-11-23T06:34:40Z"
    }
  ],
  "nextCursor": null
}
```

## Get a payment

GET `/pos/v1/payments/{paymentId}`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `paymentId` | path | `string (uuid)` | Yesrequired | The payment. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | The payment. | `Payment` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this data. | `Error` |
| `404` | The payment does not exist in your account. | `Error` |
| `429` | Too many requests. The request was not processed. `Retry-After` gives the seconds to wait. | `Error` |
| `503` | The service cannot answer now. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/pos/v1/payments/271b84b0-1c02-46b0-97b0-4207a9011996" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/payments/271b84b0-1c02-46b0-97b0-4207a9011996`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/pos/v1/payments/271b84b0-1c02-46b0-97b0-4207a9011996',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/payments/271b84b0-1c02-46b0-97b0-4207a9011996');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/payments/271b84b0-1c02-46b0-97b0-4207a9011996");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `200`

JSON

```json
{
  "id": "271b84b0-1c02-46b0-97b0-4207a9011996",
  "orderId": "9d8c072d-afa0-4272-97ab-4443d54d5b62",
  "method": "card",
  "status": "approved",
  "amount": "61.95",
  "given": null,
  "change": null,
  "card": {
    "brand": "visa",
    "last4": "4417",
    "entry": "contactless",
    "authCode": "731818",
    "declineReason": null
  },
  "at": "2026-11-23T07:14:28Z"
}
```
