Address structure

This document describes the structure of the address, which is returned from API. Everytime address is returned from API, it has this structure:

example 1: Address
{
  "id_address":9,
  "type":"postal",
  "primary":1,
  "name":"John",
  "surname":"Doe",
  "title":"Prof.",
  "company":"JohnDoe Inc.",
  "street":"Doe Street",
  "building_number":"123",
  "city":"Doe City",
  "zip":"98765",
  "country":"sk",
  "company_number":"987654321",
  "vat_number":"SK123456"
}  
  

Objects has following parameters:

id_address
Unique ifentifier.
primary
Whether address is used as primary for it's type.1 means that address is primary. There is always one primary instance for every type of address (assumimg at least one exists).
type
Typ adresy.
name
User's name.
surname
User's surname.
title
User's title.
company
Company name.
street
Street.
building_number
Building number.
city
City.
zip
ZIP code.
country
ISO country code.
company_number
Company (business) number.
vat_number
VAT number.