setAddress

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 emailstringE-mail address
Required
if cellno is
not used
telnostringTelephone number
Required
if telno is
not used
cellnostringCellphone number
Required fnamestringThe customer's first name
Required lnamestringThe customer's last name
companystringCompany name
careofstringC/O address
Required streetstringStreet address
Required zipintegerZip Code. In Netherlands this should be sent as a string
Required citystringCity
Required countryintegerCode 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_numberstringHouse number. Only used in Germany and Netherlands. For all other countries you can send in an empty string
Required
in Netherlands
house_extensionstringHouse extension. Only used in Netherlands, if the customer has one. For all other countries you can send in an empty string