Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Business days

    Open the day of a till, record cash going in and out, and close the day against the cash you counted.

    On this page

    List business days

    GET /pos/v1/tills/{tillId}/business-days

    Returns the business days of a till, newest first.

    Parameters

    NameInTypeRequiredMeaning
    tillId path string (uuid) Yesrequired The till.
    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

    StatusMeaningBody
    200 A page of business days. BusinessDayPage
    401 The token is missing, not valid or has ended. Error
    403 The token does not give access to this data. Error
    404 The till 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

    curl "$RDC_BASE_URL/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days?limit=20`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days?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#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days?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

    {
      "items": [
        {
          "id": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
          "tillId": "e57a3b65-d690-4e6c-8a6b-8f946c4e6610",
          "number": 1,
          "date": "2026-11-23",
          "openedAt": "2026-11-23T06:00:00Z",
          "state": "open",
          "float": "500.00",
          "cash": {
            "float": "500.00",
            "sales": "79.90",
            "refunds": "0.00",
            "cashIn": "0.00",
            "cashOut": "100.00",
            "expected": "479.90"
          },
          "closing": null,
          "revision": 2
        }
      ],
      "nextCursor": null
    }

    Open a business day

    POST /pos/v1/tills/{tillId}/business-days

    Opens the day of a till with the cash put in the drawer. A till has one open day. While no day is open nothing can be sold.

    Parameters

    NameInTypeRequiredMeaning
    tillId path string (uuid) Yesrequired The till.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.
    float string Yesrequired The cash put in the drawer.

    Responses

    StatusMeaningBody
    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 till does not exist in your account. Error
    409 The operationId was already used with a different request. Error
    422 day_open: The till already has an open business day. invalid_float: The opening float is zero or more. 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

    curl -X POST "$RDC_BASE_URL/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "1e43f204-8f43-4d2e-97fb-e3313f0afae5",
      "float": "300.00"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "1e43f204-8f43-4d2e-97fb-e3313f0afae5",
        "float": "300.00"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '1e43f204-8f43-4d2e-97fb-e3313f0afae5',
            'float': '300.00',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "1e43f204-8f43-4d2e-97fb-e3313f0afae5",
      "float": "300.00"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days');
    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#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/tills/e57a3b65-d690-4e6c-8a6b-8f946c4e6610/business-days");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "1e43f204-8f43-4d2e-97fb-e3313f0afae5",
      "float": "300.00"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "1e43f204-8f43-4d2e-97fb-e3313f0afae5",
      "status": "accepted",
      "aggregateId": "6f47590c-ce99-400a-899c-fe998a4c42bc",
      "aggregateRevision": 1
    }

    Get a business day

    GET /pos/v1/business-days/{businessDayId}

    Returns the day with its cash: the float, the cash taken for sales, the cash paid out in refunds, the cash in and out, and the cash that should be in the drawer. After the close it also carries what was counted and the difference.

    Parameters

    NameInTypeRequiredMeaning
    businessDayId path string (uuid) Yesrequired The business day.

    Responses

    StatusMeaningBody
    200 The business day at its current revision. BusinessDay
    401 The token is missing, not valid or has ended. Error
    403 The token does not give access to this data. Error
    404 The business day 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

    curl "$RDC_BASE_URL/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c');
    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#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c");
    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

    {
      "id": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
      "tillId": "e57a3b65-d690-4e6c-8a6b-8f946c4e6610",
      "number": 1,
      "date": "2026-11-23",
      "openedAt": "2026-11-23T06:00:00Z",
      "state": "open",
      "float": "500.00",
      "cash": {
        "float": "500.00",
        "sales": "79.90",
        "refunds": "0.00",
        "cashIn": "0.00",
        "cashOut": "100.00",
        "expected": "479.90"
      },
      "closing": null,
      "revision": 2
    }

    Record cash in or out

    POST /pos/v1/business-days/{businessDayId}/cash-movements

    Records cash put into the drawer or taken out of it, with a reason. Cash cannot go out beyond what the drawer should hold.

    Parameters

    NameInTypeRequiredMeaning
    businessDayId path string (uuid) Yesrequired The business day.

    Request body

    FieldTypeRequiredMeaning
    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 business day you read.
    kind string Yesrequired in puts cash into the drawer, out takes it out. One of in, out
    amount string Yesrequired The cash moved, above zero.
    reason string Yesrequired Why: float_top_up, bank_deposit, supplier_payment or other. One of float_top_up, bank_deposit, supplier_payment, other

    Responses

    StatusMeaningBody
    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 business day 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. insufficient_cash: The drawer does not hold that much cash. invalid_movement: A cash movement needs in or out, an amount above zero and a reason from the list. 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

    curl -X POST "$RDC_BASE_URL/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/cash-movements" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "8b82bfbb-0239-4ba0-9e15-8e25dd745281",
      "expectedRevision": 2,
      "kind": "out",
      "amount": "100.00",
      "reason": "bank_deposit"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/cash-movements`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "8b82bfbb-0239-4ba0-9e15-8e25dd745281",
        "expectedRevision": 2,
        "kind": "out",
        "amount": "100.00",
        "reason": "bank_deposit"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/cash-movements',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '8b82bfbb-0239-4ba0-9e15-8e25dd745281',
            'expectedRevision': 2,
            'kind': 'out',
            'amount': '100.00',
            'reason': 'bank_deposit',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "8b82bfbb-0239-4ba0-9e15-8e25dd745281",
      "expectedRevision": 2,
      "kind": "out",
      "amount": "100.00",
      "reason": "bank_deposit"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/cash-movements');
    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#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/cash-movements");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "8b82bfbb-0239-4ba0-9e15-8e25dd745281",
      "expectedRevision": 2,
      "kind": "out",
      "amount": "100.00",
      "reason": "bank_deposit"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "8b82bfbb-0239-4ba0-9e15-8e25dd745281",
      "status": "accepted",
      "aggregateId": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
      "aggregateRevision": 3
    }

    Close a business day

    POST /pos/v1/business-days/{businessDayId}/close

    Closes the day against the cash counted in the drawer. The difference is the counted cash minus the expected cash. A day closes only when no order is in progress or on hold, the card reader is free, the till has an empty queue and a network.

    Parameters

    NameInTypeRequiredMeaning
    businessDayId path string (uuid) Yesrequired The business day.

    Request body

    FieldTypeRequiredMeaning
    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 business day you read.
    counted string Yesrequired The cash counted in the drawer.

    Responses

    StatusMeaningBody
    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 business day 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. open_order: The till has an order with items that is not finished. A day closes only when no order is in progress. held_orders: An order is on hold. A day closes only when none is. queue_not_empty: Sales are still waiting in the queue of the till. A day closes only when they have been posted. network_lost: The till has no network. Card payments, refunds and closing the day need it. invalid_count: The counted cash is zero or more. 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

    curl -X POST "$RDC_BASE_URL/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/close" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "c3ed58da-4ef7-41c9-badf-2632457aaf85",
      "expectedRevision": 3,
      "counted": "374.90"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/close`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "c3ed58da-4ef7-41c9-badf-2632457aaf85",
        "expectedRevision": 3,
        "counted": "374.90"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/close',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'c3ed58da-4ef7-41c9-badf-2632457aaf85',
            'expectedRevision': 3,
            'counted': '374.90',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "c3ed58da-4ef7-41c9-badf-2632457aaf85",
      "expectedRevision": 3,
      "counted": "374.90"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/close');
    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#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/pos/v1/business-days/aaed5ba1-2a19-4c94-ac7f-119c9288a12c/close");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "c3ed58da-4ef7-41c9-badf-2632457aaf85",
      "expectedRevision": 3,
      "counted": "374.90"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "c3ed58da-4ef7-41c9-badf-2632457aaf85",
      "status": "accepted",
      "aggregateId": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
      "aggregateRevision": 4
    }