BizKitHub
getAddressPubliczne API v1

/api/v1/address/list

Returns all addresses associated with a specific contact/customer. Each address includes type (delivery/billing/contact), personal/company details, and geographic information. The default address for the contact is marked with defaultAddress: true.

AddressgetApiV1AddressList

Parametry

2 w query

Parametry query

· 2
apiKeystringWymagane

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
identityIdstringWymagane

Logged user identity (from your frontend cookies). Learn more

PrzykładZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg

Schemat odpowiedzi

1 udokumentowany kod statusu

200SukcesList of customer addresses.
itemsobject[]Wymagane

Array of address objects.

Każdy element tablicy:
idstringWymagane

Address external identifier (core__address.external_id).

Przykład6IU2SWgP76FO2UXw
typestringOpcjonalne

Address type code. Common values: delivery, billing, contact, invoice.

Przykładydeliverybillingcontact
firstNamestringOpcjonalne

First name of the person.

lastNamestringOpcjonalne

Last name of the person.

companyNamestringOpcjonalne

Company name (for business addresses).

companyRegistrationNumberstringOpcjonalne

Company registration number (IČO in CZ, similar in other countries).

taxIdentificationNumberstringOpcjonalne

Tax identification number (DIČ in CZ, VAT ID in EU).

streetAddressstringOpcjonalne

Street name and house number.

citystringOpcjonalne

City name.

cityPartstringOpcjonalne

City district or part.

stateRegionstringOpcjonalne

State or region name.

postalCodestringOpcjonalne

Postal/ZIP code.

countrystringOpcjonalne

ISO 3166-1 alpha-2 country code.

PrzykładyCZSKUS
noticestringOpcjonalne

Additional notes or delivery instructions.

defaultAddressbooleanWymagane

True if this is the default address for the contact.

itemCountnumberWymagane

Total number of addresses.

Przykład odpowiedzi

application/json
{
  "items": [
    {
      "id": "6IU2SWgP76FO2UXw",
      "type": "delivery",
      "firstName": "example_firstName",
      "lastName": "example_lastName",
      "companyName": "example_companyName",
      "companyRegistrationNumber": "example_companyRegistrationNumber",
      "taxIdentificationNumber": "example_taxIdentificationNumber",
      "streetAddress": "example_streetAddress",
      "city": "example_city",
      "cityPart": "example_cityPart",
      "stateRegion": "example_stateRegion",
      "postalCode": "example_postalCode",
      "country": "CZ",
      "notice": "example_notice",
      "defaultAddress": false
    }
  ],
  "itemCount": 0
}

Przykład żądania

GET /api/v1/address/list

get
curl -X GET "https://api.bizkithub.com/api/v1/address/list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API