Purpose:
setAddress is used to create addresses (i.e. the addr argument to the addTransaction function).
Return value:
The argument addr for the addTransaction, reserveAmount and activateReservation function. or Throws an exception with error code and error message.
Code examples
Please note that you can find more code examples in our API-files which you will find under Download API in the left menu.
Input data:
| Variable | Type | Description | |
|---|---|---|---|
| Required | string | E-mail address | |
| Required if cellno is not used |
telno | string | Telephone number |
| Required if telno is not used |
cellno | string | Cellphone number |
| Required | fname | string | The customer's first name |
| Required | lname | string | The customer's last name |
| company | string | Company name | |
| careof | string | C/O address | |
| Required | street | string | Street address |
| Required | zip | integer | Zip Code. In Netherlands this should be sent as a string |
| Required | city | string | City |
| Required | country | integer | Code for the country where the customer is living in:
Sweden: KRED_ISO3166_SE (value: 209) Finland: KRED_ISO3166_FI (value: 73) Denmark: KRED_ISO3166_DK (value: 59) Norway: KRED_ISO3166_NO (value: 164) Germany: KRED_ISO3166_DE (value: 81) Netherlands: KRED_ISO3166_NL (value: 154) |
| Required in Germany and Netherlands |
house_number | string | House number. Only used in Germany and Netherlands. For all other countries you can send in an empty string |
| Required in Netherlands |
house_extension | string | House extension. Only used in Netherlands, if the customer has one. For all other countries you can send in an empty string |
