> For the complete documentation index, see [llms.txt](https://dev.ropo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.ropo.com/guides/basics/invoice/update-invoice-addresses.md).

# Update invoice addresses

Set primary and additional addresses in an invoice payload.

Set the invoice recipient address in the invoice `dataset`.

Use `addaddress` for billing, delivery, or other related addresses. Submit the complete invoice through `POST /jobs`.

### Primary address

Provide the recipient details directly in the invoice `dataset`.

| Field                 | Description                |
| --------------------- | -------------------------- |
| `company` or `person` | Recipient name.            |
| `address`             | Street address.            |
| `postcode`            | Postal code.               |
| `city`                | City or locality.          |
| `addresscountry`      | Three-letter country code. |

### Additional addresses

Add related addresses in the `addaddress` array. Each entry supports the same address fields as the primary recipient.

| `addresstype` | Address type     |
| ------------- | ---------------- |
| `1`           | Mailing address  |
| `2`           | Delivery address |
| `3`           | Billing address  |
| `4`           | Parallel address |
| `5`           | Secondary debtor |
| `6`           | Other address    |
| `7`           | Usage place      |
| `8`           | Supplier         |

### Example

Include the address fields in a complete invoice payload. This example shows the address portion of one `dataset` entry.

```json
{
  "company": "Example Company Ltd",
  "address": "Invoice Street 1",
  "postcode": "00100",
  "city": "Helsinki",
  "addresscountry": "FIN",
  "addaddress": [
    {
      "addresstype": 2,
      "company": "Example Company Ltd",
      "address": "Delivery Street 5",
      "postcode": "00200",
      "city": "Helsinki",
      "addresscountry": "FIN"
    }
  ]
}
```

{% hint style="info" %}
Correct address details before submitting the invoice. The example is a payload fragment, not a complete invoice.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.ropo.com/guides/basics/invoice/update-invoice-addresses.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
