> For the complete documentation index, see [llms.txt](https://knowledge.out-smart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.out-smart.com/openapi/advanced-filters/addresses-addresses-token-software_token.md).

# addresses \[/addresses/{?token,software\_token}]

This api is used to sync addresses with WorkorderApp. An address should always be related to a certain client and can have a main contact person associated with it.\
`adr_code` is used as a unique reference to either insert or update the address.

Each address record can contain the following data:

| Parameter       | Description                                                     | Required | Type (size)   |
| --------------- | --------------------------------------------------------------- | -------- | ------------- |
| adr\_debtor\_nr | Debtor number of the relation                                   | Y        | Varchar (255) |
| adr\_code       | Unique code of the address. Used as reference in the workorder. | Y        | Varchar (255) |
| adr\_cpn\_code  | Contact person code of the address                              | N        | Varchar (255) |
| adr\_line\_1    | Address line. Usually street and number.                        | Y        | Varchar (255) |
| adr\_zip        | Zipcode of the address                                          | Y        | Varchar (255) |
| adr\_city       | City of the adress                                              | Y        | Varchar (255) |
| adr\_country    | Country of the address                                          | N        | Varchar (255) |
| adr\_remark     | Remark of the address                                           | N        | Varchar (255) |

* Parameters
  * token (string,required ,`0f24d1e07c8609c0fb111fbcc168f9aaa`) ... WorkorderApp customer token
  * software\_token (string,required , `c316c4532fa7cccdcd572491d9552f80945a51366`) ... WorkorderApp external software token

#### Add addresses \[POST]

* Request addresses data posted. `response` will contain the amount of addresses synced with WorkOrderApp (application/json)
  * \[ { "adr\_debtor\_nr":"2082092", "adr\_code":"1", "adr\_cpn\_code":"3", "adr\_line\_1":"Zonnebaan 9", "adr\_zip":"3542 AA", "adr\_city":"Utrecht", "adr\_country":"Nederland", "adr\_remark":"Crediteurenadministratie" }, { "adr\_debtor\_nr":"82", "adr\_code":"2", "adr\_cpn\_code":"3", "adr\_line\_1":"Zonnebaan 22", "adr\_zip":"3542 EE", "adr\_city":"Utrecht", "adr\_country":"Nederland", "adr\_remark":"" } ]
* Response 200 (application/json)
  * {"code":200,"messages":\[],"response":2}

#### Get addresses \[GET]

* Response 200 (application/json)
  * { "code":200, "messages":\[ ], "response":\[ { "adr\_debtor\_nr":"2082092", "adr\_code":"1", "adr\_cpn\_code":"3", "adr\_line\_1":"Zonnebaan 9", "adr\_zip":"3542 AA", "adr\_city":"Utrecht", "adr\_country":"Nederland", "adr\_remark":"Crediteurenadministratie" }, { "adr\_debtor\_nr":"82", "adr\_code":"2", "adr\_cpn\_code":"3", "adr\_line\_1":"Zonnebaan 22", "adr\_zip":"3542 EE", "adr\_city":"Utrecht", "adr\_country":"Nederland", "adr\_remark":"" } ] }


---

# 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 dynamically by asking a question.

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

```
GET https://knowledge.out-smart.com/openapi/advanced-filters/addresses-addresses-token-software_token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
