# COD (cash on delivery)

COD / Cash on Delivery is a service that allows payment for goods at the time of shipment delivery. Through the API, this service is added as an additional shipment service within the <mark style="color:green;">`services`</mark> block using <mark style="color:$success;">`serviceCode: "COD"`</mark><mark style="color:$success;">.</mark>

Before starting the integration, it is necessary to sign an agreement with NovaPost for using the COD service.\\

#### To use the service, the following required fields must be completed:

<table><thead><tr><th width="192.39996337890625">Field name</th><th>Description</th></tr></thead><tbody><tr><td>serviceCode</td><td>Service code indicating that the shipment includes the Cash on Delivery service.<br>Always <code>"COD"</code> for this payment type.</td></tr><tr><td>amount</td><td><p>The total amount that the recipient must pay within the COD service. It is specified twice:</p><ul><li>in the <code>services</code> block — as the total COD amount;</li><li>in the <code>bankAccount</code> block — as the amount to be transferred to the account.</li></ul></td></tr><tr><td>contractNumber</td><td>If multiple contracts exist, the required one must be specified.</td></tr><tr><td>payerType</td><td>Defines the payer of the service; in this example, it is the recipient.</td></tr><tr><td>currencyCode</td><td>Transaction currency. It is determined according to the sender's contract.</td></tr><tr><td>bankAccountId</td><td>Tax identification number or equivalent identifier (EDRPOU, TIN, NIP, IČO).<br>The value corresponds to the sender company's <code>companyTin</code> field.</td></tr><tr><td>bankAccountName</td><td>IBAN</td></tr><tr><td>commissionPayer</td><td>Defines the COD commission payer: Recipient / Sender.</td></tr></tbody></table>

#### Example:

```
"services": [
  {
    "shipmentParcelRowNumber": null,
    "serviceCode": "COD",
    "amount": 10,
    "contractNumber": null,
    "payerType": "Recipient",
    "additionalParameters": {
      "cod": {
        "cash": null,
        "card": null,
        "bankAccount": {
          "amount": 10,
          "currencyCode": "PLN",
          "bankAccountId": "1234567890",
          "bankAccountName": "PL12345678901234567890123456",
          "description": "test S",
          "commissionPayer": "Recipient"
        }
      }
    }
  }
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-portal.novapost.com/checklists/cod-cash-on-delivery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
