For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve an address

Returns a single active customer address of the calling account.

get
/addresses/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the address. Only addresses of the calling account can be addressed; any other identifier returns 404.

Responses
200

The requested address.

application/json

A customer address as returned by the address endpoints.

pkintegerRead-onlyOptional

The unique identifier of the address.

Example: 42
emailstring · emailOptional

The e-mail address of the owning account.

Example: jane.doe@example.com
phone_numberstringOptional

The recipient's phone number.

Example: 05551234567
first_namestringOptional

The recipient's first name.

Example: Jane
last_namestringOptional

The recipient's last name.

Example: Doe
countryintegerOptional

The identifier of the country.

Example: 1
cityintegerOptional

The identifier of the city.

Example: 34
townshipintegerOptional

The identifier of the township.

Example: 410
districtinteger · nullableOptional

The identifier of the district, or null.

Example: 5123
linestringOptional

The street address.

Example: Example Street No 12 Flat 3
titlestringOptional

The label of the address.

Example: Home
postcodestring · nullableOptional

The post/zip code.

Example: 34710
notesstring · nullableOptional

Delivery instructions.

Example: Ring the bell twice.
company_namestring · nullableOptional

The company name for corporate invoices.

tax_officestring · nullableOptional

The tax office for corporate invoices.

tax_nostring · nullableOptional

The tax number for corporate invoices.

e_bill_taxpayerbooleanOptional

Whether the owner is registered for electronic invoicing.

Example: false
hash_datastringRead-onlyOptional

The fingerprint of the address content, used to detect duplicates.

Example: 3f1c2a9b8e7d6c5b4a39281706f5e4d3
address_typestring · enumOptional

The kind of address. Only customer addresses are returned by the address endpoints.

  • customer — a delivery or billing address of a customer (default).
  • retail_store — the address of a retail store.
  • pickup_location — the address of a pickup point.
  • checkout_provider — an address supplied by an external checkout provider.
Possible values:
retail_storeinteger · nullableOptional

The identifier of the related retail store, or null.

remote_idstring · nullableOptional

The identifier of the address in an external system.

identity_numberstring · nullableOptional

The national identity number of the recipient.

extra_fieldobject · nullableRead-onlyOptional

The values of the country-specific extra fields, keyed by field name, or null when none is stored.

userinteger · nullableOptional

The identifier of the owning user.

Example: 7
is_corporatebooleanRead-onlyOptional

true when any corporate invoice field (company_name, tax_office, tax_no, e_bill_taxpayer) is set.

Example: false
primarybooleanOptional

Whether this is the primary address of the account.

Example: true
get/addresses/{id}/
GET /api/v1/remote/1/addresses/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "pk": 42,
  "email": "jane.doe@example.com",
  "phone_number": "05551234567",
  "first_name": "Jane",
  "last_name": "Doe",
  "country": 1,
  "city": 34,
  "township": 410,
  "district": 5123,
  "line": "Example Street No 12 Flat 3",
  "title": "Home",
  "postcode": "34710",
  "notes": "Ring the bell twice.",
  "company_name": null,
  "tax_office": null,
  "tax_no": null,
  "e_bill_taxpayer": false,
  "hash_data": "3f1c2a9b8e7d6c5b4a39281706f5e4d3",
  "address_type": "customer",
  "retail_store": null,
  "remote_id": null,
  "identity_number": null,
  "extra_field": null,
  "user": 7,
  "is_corporate": false,
  "primary": true
}

Last updated

Was this helpful?