Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Prepare and approve payments

    Prepare a payment for a bill, send it for approval, export the approved payments as one table and follow them until a statement confirms them.

    On this page

    A payment goes through six statuses: draft, awaiting_approval, approved, exported, then confirmed by a statement or rejected_by_bank. Each step below is one change. Every change takes a new operationId, and the changes to an existing proposal take its revision as expectedRevision. The rules of approval are in Payment proposals and approvals.

    1. List the open bills

    `listOpenItems` with side=payable and open=true returns the bills you received that still owe something. The open field of a bill is the most a payment can cover.

    curl

    curl "$RDC_BASE_URL/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&side=payable&open=true" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&side=payable&open=true`, {
      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"]}/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&side=payable&open=true',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&side=payable&open=true');
    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")}/banking/v1/open-items?companyId=3e738c06-3df7-4eb7-bfe2-259b8ba481f9&side=payable&open=true");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    2. Prepare the payment

    `preparePayment` creates a proposal in the status draft. Name the bill, the account the payment leaves, the amount and the person who prepares it (preparedById, from `listPeople`). The answer carries the id of the new proposal in aggregateId.

    curl

    curl -X POST "$RDC_BASE_URL/banking/v1/payment-proposals" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "abc4960b-417a-4be8-ada5-b3592e5cc4af",
      "openItemId": "f1499828-8c33-4628-9766-7892ae64f931",
      "accountId": "258f8664-ff43-4e53-b688-ad5a4a97ede6",
      "amount": "3185.20",
      "preparedById": "5e843f89-6c35-4a03-95a4-9f380ce14cd6"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/payment-proposals`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "abc4960b-417a-4be8-ada5-b3592e5cc4af",
        "openItemId": "f1499828-8c33-4628-9766-7892ae64f931",
        "accountId": "258f8664-ff43-4e53-b688-ad5a4a97ede6",
        "amount": "3185.20",
        "preparedById": "5e843f89-6c35-4a03-95a4-9f380ce14cd6"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/banking/v1/payment-proposals',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'abc4960b-417a-4be8-ada5-b3592e5cc4af',
            'openItemId': 'f1499828-8c33-4628-9766-7892ae64f931',
            'accountId': '258f8664-ff43-4e53-b688-ad5a4a97ede6',
            'amount': '3185.20',
            'preparedById': '5e843f89-6c35-4a03-95a4-9f380ce14cd6',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "abc4960b-417a-4be8-ada5-b3592e5cc4af",
      "openItemId": "f1499828-8c33-4628-9766-7892ae64f931",
      "accountId": "258f8664-ff43-4e53-b688-ad5a4a97ede6",
      "amount": "3185.20",
      "preparedById": "5e843f89-6c35-4a03-95a4-9f380ce14cd6"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/payment-proposals');
    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")}/banking/v1/payment-proposals");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "abc4960b-417a-4be8-ada5-b3592e5cc4af",
      "openItemId": "f1499828-8c33-4628-9766-7892ae64f931",
      "accountId": "258f8664-ff43-4e53-b688-ad5a4a97ede6",
      "amount": "3185.20",
      "preparedById": "5e843f89-6c35-4a03-95a4-9f380ce14cd6"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "abc4960b-417a-4be8-ada5-b3592e5cc4af",
      "status": "accepted",
      "aggregateId": "6baad224-c242-443c-a753-fb096e8c8085",
      "aggregateRevision": 1
    }

    CodeHTTPCauseWhat to do
    bill_not_payable422Only a bill you received can be paid.Use an open item whose side is payable.
    no_beneficiary_account422The account of the beneficiary is not on file, so no payment can be prepared.Have the bank account of the beneficiary added to your account, then prepare the payment.
    amount_invalid422The amount is not greater than zero.Send a positive decimal string.
    bill_has_proposal422The bill already has a payment proposal that is not rejected by the bank.Work on the proposal that exists.
    amount_exceeds_open422The amount is more than the bill still owes.Read the open amount of the bill. After a returned payment the open amount returns once the return is matched.

    3. Send it for approval

    `submitPayment` moves the draft to awaiting_approval. Read the proposal: requiredAuthority is accountant or director, by the amount. The limit is a setting of the account, so read the field and do not compute it.

    curl

    curl -X POST "$RDC_BASE_URL/banking/v1/payment-proposals/6baad224-c242-443c-a753-fb096e8c8085/submit" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "f9f288f0-3130-4450-8953-4eac286bae70",
      "expectedRevision": 1,
      "personId": "5e843f89-6c35-4a03-95a4-9f380ce14cd6"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/payment-proposals/6baad224-c242-443c-a753-fb096e8c8085/submit`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "f9f288f0-3130-4450-8953-4eac286bae70",
        "expectedRevision": 1,
        "personId": "5e843f89-6c35-4a03-95a4-9f380ce14cd6"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/banking/v1/payment-proposals/6baad224-c242-443c-a753-fb096e8c8085/submit',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'f9f288f0-3130-4450-8953-4eac286bae70',
            'expectedRevision': 1,
            'personId': '5e843f89-6c35-4a03-95a4-9f380ce14cd6',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "f9f288f0-3130-4450-8953-4eac286bae70",
      "expectedRevision": 1,
      "personId": "5e843f89-6c35-4a03-95a4-9f380ce14cd6"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/payment-proposals/6baad224-c242-443c-a753-fb096e8c8085/submit');
    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")}/banking/v1/payment-proposals/6baad224-c242-443c-a753-fb096e8c8085/submit");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "f9f288f0-3130-4450-8953-4eac286bae70",
      "expectedRevision": 1,
      "personId": "5e843f89-6c35-4a03-95a4-9f380ce14cd6"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "f9f288f0-3130-4450-8953-4eac286bae70",
      "status": "accepted",
      "aggregateId": "6baad224-c242-443c-a753-fb096e8c8085",
      "aggregateRevision": 2
    }

    A proposal in any other status than draft is refused with invalid_payment_status.

    4. Approve or decline

    `listPeople` returns the people of the account with the authority each holds: accountant, director or null. Send the id of an approver as personId. The approver holds the authority the amount requires and is never the person who prepared the proposal.

    curl

    curl "$RDC_BASE_URL/banking/v1/people?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/people?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"]}/banking/v1/people?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/people?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")}/banking/v1/people?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

    {
      "items": [
        {
          "id": "5e843f89-6c35-4a03-95a4-9f380ce14cd6",
          "name": "Sorin Avram",
          "role": "Purchasing",
          "authority": null
        },
        {
          "id": "6322f7eb-b43b-4189-afad-17c3c5cd4f73",
          "name": "Ioana Marin",
          "role": "Chief accountant",
          "authority": "accountant"
        },
        {
          "id": "f7508e58-7ea4-45a9-8d98-c77694cf1c40",
          "name": "Ana Rusu",
          "role": "Finance director",
          "authority": "director"
        }
      ],
      "nextCursor": null
    }

    curl

    curl -X POST "$RDC_BASE_URL/banking/v1/payment-proposals/21de0aa9-20d9-48af-87d7-c24c5a5dde5d/approve" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "3d3dd267-c436-4673-8c78-0c49cfbcbf5e",
      "expectedRevision": 2,
      "personId": "6322f7eb-b43b-4189-afad-17c3c5cd4f73"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/payment-proposals/21de0aa9-20d9-48af-87d7-c24c5a5dde5d/approve`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "3d3dd267-c436-4673-8c78-0c49cfbcbf5e",
        "expectedRevision": 2,
        "personId": "6322f7eb-b43b-4189-afad-17c3c5cd4f73"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/banking/v1/payment-proposals/21de0aa9-20d9-48af-87d7-c24c5a5dde5d/approve',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '3d3dd267-c436-4673-8c78-0c49cfbcbf5e',
            'expectedRevision': 2,
            'personId': '6322f7eb-b43b-4189-afad-17c3c5cd4f73',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "3d3dd267-c436-4673-8c78-0c49cfbcbf5e",
      "expectedRevision": 2,
      "personId": "6322f7eb-b43b-4189-afad-17c3c5cd4f73"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/payment-proposals/21de0aa9-20d9-48af-87d7-c24c5a5dde5d/approve');
    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")}/banking/v1/payment-proposals/21de0aa9-20d9-48af-87d7-c24c5a5dde5d/approve");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "3d3dd267-c436-4673-8c78-0c49cfbcbf5e",
      "expectedRevision": 2,
      "personId": "6322f7eb-b43b-4189-afad-17c3c5cd4f73"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "3d3dd267-c436-4673-8c78-0c49cfbcbf5e",
      "status": "accepted",
      "aggregateId": "21de0aa9-20d9-48af-87d7-c24c5a5dde5d",
      "aggregateRevision": 3
    }

    `declinePayment` sends the proposal back to draft with a reason that stays on it.

    curl

    curl -X POST "$RDC_BASE_URL/banking/v1/payment-proposals/08315cbe-013e-4a7d-8f68-81c554b8ef67/decline" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "d775457d-2215-4365-9fc4-5af1e0e50b1d",
      "expectedRevision": 2,
      "personId": "f7508e58-7ea4-45a9-8d98-c77694cf1c40",
      "reason": "Ask for the credit note first"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/payment-proposals/08315cbe-013e-4a7d-8f68-81c554b8ef67/decline`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "d775457d-2215-4365-9fc4-5af1e0e50b1d",
        "expectedRevision": 2,
        "personId": "f7508e58-7ea4-45a9-8d98-c77694cf1c40",
        "reason": "Ask for the credit note first"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/banking/v1/payment-proposals/08315cbe-013e-4a7d-8f68-81c554b8ef67/decline',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'd775457d-2215-4365-9fc4-5af1e0e50b1d',
            'expectedRevision': 2,
            'personId': 'f7508e58-7ea4-45a9-8d98-c77694cf1c40',
            'reason': 'Ask for the credit note first',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "d775457d-2215-4365-9fc4-5af1e0e50b1d",
      "expectedRevision": 2,
      "personId": "f7508e58-7ea4-45a9-8d98-c77694cf1c40",
      "reason": "Ask for the credit note first"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/payment-proposals/08315cbe-013e-4a7d-8f68-81c554b8ef67/decline');
    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")}/banking/v1/payment-proposals/08315cbe-013e-4a7d-8f68-81c554b8ef67/decline");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "d775457d-2215-4365-9fc4-5af1e0e50b1d",
      "expectedRevision": 2,
      "personId": "f7508e58-7ea4-45a9-8d98-c77694cf1c40",
      "reason": "Ask for the credit note first"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "d775457d-2215-4365-9fc4-5af1e0e50b1d",
      "status": "accepted",
      "aggregateId": "08315cbe-013e-4a7d-8f68-81c554b8ef67",
      "aggregateRevision": 3
    }

    CodeHTTPCauseWhat to do
    not_an_approver422personId is not a person who approves payments in this account.Use an approver of the account. The approvers are set with your account.
    self_approval422The person who prepared a payment proposal does not approve or decline it.Ask another approver.
    insufficient_authority422The amount needs a higher approval than the approver holds.Read requiredAuthority of the proposal and ask an approver who holds it.
    reason_required422Declining a proposal needs a reason.Send reason.
    invalid_payment_status422The payment proposal is not in a status that allows this.Read the proposal and use the operation that fits its status.

    5. Export the approved payments

    `exportPayments` takes the ids of approved payments of one account, moves them to exported and makes one table. The answer carries the id of the file; read it with `getPaymentBatch`.

    curl

    curl -X POST "$RDC_BASE_URL/banking/v1/payment-batches" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "6625838e-1435-4abc-ae36-b1202043b86f",
      "paymentIds": [
        "cda6be32-1d33-4c24-91e7-e1bbbbbf9cfe"
      ]
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/payment-batches`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "6625838e-1435-4abc-ae36-b1202043b86f",
        "paymentIds": [
          "cda6be32-1d33-4c24-91e7-e1bbbbbf9cfe"
        ]
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/banking/v1/payment-batches',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '6625838e-1435-4abc-ae36-b1202043b86f',
            'paymentIds': [
                'cda6be32-1d33-4c24-91e7-e1bbbbbf9cfe',
            ],
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "6625838e-1435-4abc-ae36-b1202043b86f",
      "paymentIds": [
        "cda6be32-1d33-4c24-91e7-e1bbbbbf9cfe"
      ]
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/payment-batches');
    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")}/banking/v1/payment-batches");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "6625838e-1435-4abc-ae36-b1202043b86f",
      "paymentIds": [
        "cda6be32-1d33-4c24-91e7-e1bbbbbf9cfe"
      ]
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "6625838e-1435-4abc-ae36-b1202043b86f",
      "status": "accepted",
      "aggregateId": "45c5fc66-0d7b-4707-bccd-473915866774",
      "aggregateRevision": 1
    }

    curl

    curl "$RDC_BASE_URL/banking/v1/payment-batches/45c5fc66-0d7b-4707-bccd-473915866774" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/payment-batches/45c5fc66-0d7b-4707-bccd-473915866774`, {
      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"]}/banking/v1/payment-batches/45c5fc66-0d7b-4707-bccd-473915866774',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/payment-batches/45c5fc66-0d7b-4707-bccd-473915866774');
    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")}/banking/v1/payment-batches/45c5fc66-0d7b-4707-bccd-473915866774");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "id": "45c5fc66-0d7b-4707-bccd-473915866774",
      "number": "BT-2026-017",
      "accountId": "258f8664-ff43-4e53-b688-ad5a4a97ede6",
      "paymentIds": [
        "cda6be32-1d33-4c24-91e7-e1bbbbbf9cfe"
      ],
      "exportedAt": "2026-11-23T07:12:00Z",
      "executeOn": "2026-12-04",
      "rows": [
        [
          "payment",
          "beneficiary",
          "account",
          "amount",
          "currency",
          "execution_date",
          "reference"
        ],
        [
          "PP-1006",
          "Ambalaje Carpatin SRL",
          "RO** **** **** **** **** 0000",
          "4120.75",
          "RON",
          "2026-12-04",
          "AC-2026-0761 PP-1006"
        ]
      ]
    }

    rows is the table: the header row, then one row for each payment. Give it to your bank.

    ColumnHoldsIn the example
    paymentThe number of the payment proposal.PP-1006
    beneficiaryThe supplier that is paid.Ambalaje Carpatin SRL
    accountIts IBAN with the middle characters masked.RO ** 0000
    amountThe amount, as a decimal string.4120.75
    currencyThe currency.RON
    execution_dateThe execution day of the file.2026-12-04
    referenceThe number of the bill and the number of the payment.AC-2026-0761 PP-1006

    The file has one execution day, executeOn: the earliest scheduled day of its payments. A scheduled day is the due day of the bill, or the last working day before it when the due day is a Saturday, a Sunday or a non-working day of the account. After the export, every payment of the file shows the day of the file.

    CodeHTTPCauseWhat to do
    batch_empty422The export names no payment.Send at least one paymentIds entry.
    mixed_accounts422The payments belong to more than one account.Export one file for each account.
    invalid_payment_status422The payment proposal is not in a status that allows this.Read the proposal and use the operation that fits its status.
    payment_not_found404The payment proposal does not exist.List the payment proposals and use one of their ids.

    6. Let the statement confirm it

    Your bank executes the payments. When you import the statement that books a debit whose reference holds the number of the payment, for the same amount, the payment becomes confirmed and Treasury sends payment.confirmed. If the bank returned the payment instead, see Handle a returned payment.