Address

Shows the address of the logged user.


Renders: [application/json, text/html, application/xml]

Parses: [application/json, application/x-www-form-urlencoded, multipart/form-data]


Required fields

  • country
  • address_1
  • zip_code
  • city

Optional fields

  • company
  • org_number
  • reference
  • address_2
  • phone
  • email
  • extra_email
  • vat_id
  • gln_number

GET /profile/address/

Responds with the address data for the authenticated user

Example:

GET `/profile/address/`

{
    "country": "DK",
    "company": "",
    "org_number": "",
    "reference": "Reference",
    "address_1": "Address 1",
    "address_2": "Address 2",
    "zip_code": "1000",
    "city": "City",
    "phone": "000 00 00",
    "email": "user@example.com",
    "extra_email": "",
    "vat_id": ""
}

Billing address

It has the same structure as address and is used when the different_billing_address in the profile is set to true

Example:

GET `/profile/billing_address/`

{
    "country": "DK",
    "company": "",
    "org_number": "",
    "reference": "Reference",
    "address_1": "Address 1",
    "address_2": "Address 2",
    "zip_code": "1000",
    "city": "City",
    "phone": "000 00 00",
    "email": "user@example.com",
    "extra_email": "",
    "vat_id": ""
}