Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Match a supplier bill

    Record a bill, read how it matches its order and receipts, and take it through approval to payment, or send it back.

    On this page

    Record the bill

    A bill is recorded against a purchase order, as a draft. It carries the number printed on the supplier’s document, supplierNumber, and the lines the supplier bills. The same supplier cannot have two bills with one number: the second is refused with duplicate_bill. The supplier of the bill must be the supplier of the order (supplier_mismatch), and the date cannot be later than today (invalid_date).

    curl

    curl -X POST "$RDC_BASE_URL/erp/v1/supplier-bills" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "0a662801-2e54-4a08-9462-807d05392b0f",
      "supplierId": "14b3279c-01f1-464f-bad7-ff50dadac05f",
      "purchaseOrderId": "fb086179-5513-43e2-a802-1a277c3b0d01",
      "supplierNumber": "MV-2026-3355",
      "date": "2026-11-23",
      "lines": [
        {
          "code": "FA-0010",
          "quantity": "4",
          "unitPrice": "33.00"
        }
      ]
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/supplier-bills`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "0a662801-2e54-4a08-9462-807d05392b0f",
        "supplierId": "14b3279c-01f1-464f-bad7-ff50dadac05f",
        "purchaseOrderId": "fb086179-5513-43e2-a802-1a277c3b0d01",
        "supplierNumber": "MV-2026-3355",
        "date": "2026-11-23",
        "lines": [
          {
            "code": "FA-0010",
            "quantity": "4",
            "unitPrice": "33.00"
          }
        ]
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/erp/v1/supplier-bills',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '0a662801-2e54-4a08-9462-807d05392b0f',
            'supplierId': '14b3279c-01f1-464f-bad7-ff50dadac05f',
            'purchaseOrderId': 'fb086179-5513-43e2-a802-1a277c3b0d01',
            'supplierNumber': 'MV-2026-3355',
            'date': '2026-11-23',
            'lines': [
                {
                    'code': 'FA-0010',
                    'quantity': '4',
                    'unitPrice': '33.00',
                },
            ],
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "0a662801-2e54-4a08-9462-807d05392b0f",
      "supplierId": "14b3279c-01f1-464f-bad7-ff50dadac05f",
      "purchaseOrderId": "fb086179-5513-43e2-a802-1a277c3b0d01",
      "supplierNumber": "MV-2026-3355",
      "date": "2026-11-23",
      "lines": [
        {
          "code": "FA-0010",
          "quantity": "4",
          "unitPrice": "33.00"
        }
      ]
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/supplier-bills');
    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")}/erp/v1/supplier-bills");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "0a662801-2e54-4a08-9462-807d05392b0f",
      "supplierId": "14b3279c-01f1-464f-bad7-ff50dadac05f",
      "purchaseOrderId": "fb086179-5513-43e2-a802-1a277c3b0d01",
      "supplierNumber": "MV-2026-3355",
      "date": "2026-11-23",
      "lines": [
        {
          "code": "FA-0010",
          "quantity": "4",
          "unitPrice": "33.00"
        }
      ]
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "0a662801-2e54-4a08-9462-807d05392b0f",
      "status": "accepted",
      "aggregateId": "c166560c-6b79-4137-b4a3-0c89a9537cdf",
      "aggregateRevision": 1
    }

    Read the match

    The bill is compared with its order and the receipts of that order. The comparison is the match object on the bill, and it is worked out each time you read the bill. For each line it takes three numbers: what was ordered, what was received and what is billed, and two prices: ordered and billed. Quantity is compared with the quantity received, not with the quantity ordered.

    Quantity differs

    curl

    curl "$RDC_BASE_URL/erp/v1/supplier-bills/d8667a41-6863-4678-a198-fe94a1e33a17" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/supplier-bills/d8667a41-6863-4678-a198-fe94a1e33a17`, {
      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"]}/erp/v1/supplier-bills/d8667a41-6863-4678-a198-fe94a1e33a17',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/supplier-bills/d8667a41-6863-4678-a198-fe94a1e33a17');
    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")}/erp/v1/supplier-bills/d8667a41-6863-4678-a198-fe94a1e33a17");
    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": "d8667a41-6863-4678-a198-fe94a1e33a17",
      "number": "FF-0605",
      "supplierNumber": "BO-26-0881",
      "supplierId": "e649fbee-e600-4db7-ab58-94e251d0fe9a",
      "supplierName": "Brânzeturi Obcina SRL",
      "purchaseOrderId": "403660ee-f721-4e98-b224-59e59e245387",
      "purchaseOrderNumber": "CA-0729",
      "date": "2026-11-17",
      "lines": [
        {
          "code": "LA-0307",
          "quantity": "96",
          "unitPrice": "15.20",
          "net": "1459.20"
        }
      ],
      "net": "1459.20",
      "vat": "160.51",
      "total": "1619.71",
      "vatBreakdown": [
        {
          "rate": "11",
          "base": "1459.20",
          "vat": "160.51"
        }
      ],
      "currency": "RON",
      "status": "awaiting_approval",
      "approvals": [],
      "nextStep": "requester",
      "held": false,
      "holdReason": null,
      "rejectionReason": null,
      "scheduledFor": null,
      "match": {
        "result": "quantity_differs",
        "differences": [
          {
            "code": "LA-0307",
            "kind": "quantity",
            "ordered": "96",
            "received": "90",
            "billed": "96",
            "orderedPrice": "15.20",
            "billedPrice": "15.20"
          }
        ]
      },
      "revision": 2
    }

    Here 96 units are billed and 90 were received. The line is listed in differences with kind quantity.

    Price differs

    curl

    curl "$RDC_BASE_URL/erp/v1/supplier-bills/d76678ae-6934-420d-bf9d-8d8692d0b952" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/supplier-bills/d76678ae-6934-420d-bf9d-8d8692d0b952`, {
      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"]}/erp/v1/supplier-bills/d76678ae-6934-420d-bf9d-8d8692d0b952',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/supplier-bills/d76678ae-6934-420d-bf9d-8d8692d0b952');
    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")}/erp/v1/supplier-bills/d76678ae-6934-420d-bf9d-8d8692d0b952");
    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": "d76678ae-6934-420d-bf9d-8d8692d0b952",
      "number": "FF-0606",
      "supplierNumber": "AC-2026-1207",
      "supplierId": "678cbd61-7ec7-49de-bff5-11581bfffffc",
      "supplierName": "Ambalaje Carpatin SRL",
      "purchaseOrderId": "f5085807-5ee6-47b4-92e1-6144464b73ed",
      "purchaseOrderNumber": "CA-0730",
      "date": "2026-11-18",
      "lines": [
        {
          "code": "CT-0610",
          "quantity": "60",
          "unitPrice": "10.30",
          "net": "618.00"
        }
      ],
      "net": "618.00",
      "vat": "129.78",
      "total": "747.78",
      "vatBreakdown": [
        {
          "rate": "21",
          "base": "618.00",
          "vat": "129.78"
        }
      ],
      "currency": "RON",
      "status": "awaiting_approval",
      "approvals": [],
      "nextStep": "requester",
      "held": false,
      "holdReason": null,
      "rejectionReason": null,
      "scheduledFor": null,
      "match": {
        "result": "price_differs",
        "differences": [
          {
            "code": "CT-0610",
            "kind": "price",
            "ordered": "60",
            "received": "60",
            "billed": "60",
            "orderedPrice": "9.80",
            "billedPrice": "10.30"
          }
        ]
      },
      "revision": 2
    }

    Here the quantities agree and the supplier bills 10.30 where the order says 9.80. The line is listed with kind price. A line can be listed twice, once for quantity and once for price, and a quantity difference is reported before a price difference in result.

    `match.result`What you do
    matchedSubmit and approve.
    quantity_differsCheck the receipts. If a receipt is missing, record it and read the bill again. Otherwise reject the bill with the reason, or hold it while you ask the supplier.
    price_differsReject the bill with the reason, correct the lines to the price the supplier will bill, and submit again; or hold it while you agree the price.
    receipt_missingRecord the receipt. A bill in this result cannot be submitted (receipt_missing).

    Receipt missing

    curl

    curl "$RDC_BASE_URL/erp/v1/supplier-bills/c266579f-6a76-45a2-a99f-cd0cb13063a7" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/supplier-bills/c266579f-6a76-45a2-a99f-cd0cb13063a7`, {
      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"]}/erp/v1/supplier-bills/c266579f-6a76-45a2-a99f-cd0cb13063a7',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/supplier-bills/c266579f-6a76-45a2-a99f-cd0cb13063a7');
    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")}/erp/v1/supplier-bills/c266579f-6a76-45a2-a99f-cd0cb13063a7");
    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": "c266579f-6a76-45a2-a99f-cd0cb13063a7",
      "number": "FF-0607",
      "supplierNumber": "AC-2026-1219",
      "supplierId": "678cbd61-7ec7-49de-bff5-11581bfffffc",
      "supplierName": "Ambalaje Carpatin SRL",
      "purchaseOrderId": "fa085fe6-560f-4b77-9ffe-df6f842189c9",
      "purchaseOrderNumber": "CA-0731",
      "date": "2026-11-20",
      "lines": [
        {
          "code": "AM-0518",
          "quantity": "200",
          "unitPrice": "10.50",
          "net": "2100.00"
        }
      ],
      "net": "2100.00",
      "vat": "441.00",
      "total": "2541.00",
      "vatBreakdown": [
        {
          "rate": "21",
          "base": "2100.00",
          "vat": "441.00"
        }
      ],
      "currency": "RON",
      "status": "draft",
      "approvals": [],
      "nextStep": null,
      "held": false,
      "holdReason": null,
      "rejectionReason": null,
      "scheduledFor": null,
      "match": {
        "result": "receipt_missing",
        "differences": []
      },
      "revision": 1
    }

    Approve

    submitSupplierBill sends a draft for approval. The approval chain has 3 steps in a fixed order: requester, lead, finance. nextStep on the bill names the step that approves next, and approvals lists the steps that have. approveSupplierBill takes step; a step out of order is refused with wrong_approval_step. Approval is refused with match_differs unless the match is matched, and with bill_held while the bill is on hold. After the last step the bill is approved.

    curl

    curl -X POST "$RDC_BASE_URL/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/approve" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "0fe01cde-89a3-484c-9bfc-86375e6b22a2",
      "expectedRevision": 3,
      "step": "requester"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/approve`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "0fe01cde-89a3-484c-9bfc-86375e6b22a2",
        "expectedRevision": 3,
        "step": "requester"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/approve',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '0fe01cde-89a3-484c-9bfc-86375e6b22a2',
            'expectedRevision': 3,
            'step': 'requester',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "0fe01cde-89a3-484c-9bfc-86375e6b22a2",
      "expectedRevision": 3,
      "step": "requester"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/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")}/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/approve");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "0fe01cde-89a3-484c-9bfc-86375e6b22a2",
      "expectedRevision": 3,
      "step": "requester"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "0fe01cde-89a3-484c-9bfc-86375e6b22a2",
      "status": "accepted",
      "aggregateId": "c166560c-6b79-4137-b4a3-0c89a9537cdf",
      "aggregateRevision": 4
    }

    Hold or reject

    • holdSupplierBill stops approval with a reason of 1 to 200 characters, and releaseSupplierBill ends the hold; the bill goes on from the step it was at.
    • rejectSupplierBill sends the bill back to draft with a reason (the same limits). The approvals given are cleared, the reason is returned as rejectionReason, and the lines can be corrected with updateSupplierBill before the bill is submitted again.

    curl

    curl -X POST "$RDC_BASE_URL/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/reject" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "1db1fe1a-6629-4d21-92d6-af7c968b1232",
      "expectedRevision": 4,
      "reason": "Billed 96 units, 90 received. Waiting for the supplier to credit 6."
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/reject`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "1db1fe1a-6629-4d21-92d6-af7c968b1232",
        "expectedRevision": 4,
        "reason": "Billed 96 units, 90 received. Waiting for the supplier to credit 6."
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/reject',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '1db1fe1a-6629-4d21-92d6-af7c968b1232',
            'expectedRevision': 4,
            'reason': 'Billed 96 units, 90 received. Waiting for the supplier to credit 6.',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "1db1fe1a-6629-4d21-92d6-af7c968b1232",
      "expectedRevision": 4,
      "reason": "Billed 96 units, 90 received. Waiting for the supplier to credit 6."
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/reject');
    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")}/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/reject");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "1db1fe1a-6629-4d21-92d6-af7c968b1232",
      "expectedRevision": 4,
      "reason": "Billed 96 units, 90 received. Waiting for the supplier to credit 6."
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "1db1fe1a-6629-4d21-92d6-af7c968b1232",
      "status": "accepted",
      "aggregateId": "d8667a41-6863-4678-a198-fe94a1e33a17",
      "aggregateRevision": 5
    }

    Schedule and pay

    scheduleSupplierBill sets the day an approved bill is paid, today or later (date_in_the_past otherwise). recordSupplierBillPayment closes a scheduled bill on that day or after it; before it, the call is refused with payment_not_due.

    curl

    curl -X POST "$RDC_BASE_URL/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/schedule" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "a07813a1-0d2f-4f0b-a79f-bf9dd98d6777",
      "expectedRevision": 6,
      "on": "2026-11-27"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/schedule`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "a07813a1-0d2f-4f0b-a79f-bf9dd98d6777",
        "expectedRevision": 6,
        "on": "2026-11-27"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/schedule',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'a07813a1-0d2f-4f0b-a79f-bf9dd98d6777',
            'expectedRevision': 6,
            'on': '2026-11-27',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "a07813a1-0d2f-4f0b-a79f-bf9dd98d6777",
      "expectedRevision": 6,
      "on": "2026-11-27"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/schedule');
    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")}/erp/v1/supplier-bills/c166560c-6b79-4137-b4a3-0c89a9537cdf/schedule");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "a07813a1-0d2f-4f0b-a79f-bf9dd98d6777",
      "expectedRevision": 6,
      "on": "2026-11-27"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "a07813a1-0d2f-4f0b-a79f-bf9dd98d6777",
      "status": "accepted",
      "aggregateId": "c166560c-6b79-4137-b4a3-0c89a9537cdf",
      "aggregateRevision": 7
    }