BizKitHub
postAddressVerejné API v1

/api/v1/address/update

Updates an existing address identified by ID. Only provided fields will be updated, omitted fields remain unchanged. Address is automatically validated and normalized. Requires identityId to verify the address belongs to the contact.

AddresspostApiV1AddressUpdate

Parametre

1 v query · JSON telo

Parametre v query

· 1
apiKeystringPovinné

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

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Telo požiadavky

application/json
identityIdstringPovinné

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

PríkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
idstringPovinné

Address external identifier (core__address.external_id).

Príklad6IU2SWgP76FO2UXw
typestringVoliteľné

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

Príkladydeliverybillingcontact
firstNamestringVoliteľné

First name of the person.

lastNamestringVoliteľné

Last name of the person.

companyNamestringVoliteľné

Company name (for business addresses).

streetAddressstringVoliteľné

Street name and house number.

postalCodestringVoliteľné

Postal/ZIP code.

citystringVoliteľné

City name.

cityPartstringVoliteľné

City district or part.

stateRegionstringVoliteľné

State or region name.

countrystringVoliteľné

ISO 3166-1 alpha-2 country code.

PríkladyCZSKUS
companyRegistrationNumberstringVoliteľné

Company registration number (IČO in CZ).

taxIdentificationNumberstringVoliteľné

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

noticestringVoliteľné

Additional notes or delivery instructions.

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
idstringPovinné

Address external identifier (core__address.external_id).

Príklad6IU2SWgP76FO2UXw
typestringVoliteľné

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

Príkladydeliverybillingcontact
firstNamestringVoliteľné

First name of the person.

lastNamestringVoliteľné

Last name of the person.

companyNamestringVoliteľné

Company name (for business addresses).

companyRegistrationNumberstringVoliteľné

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

taxIdentificationNumberstringVoliteľné

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

streetAddressstringVoliteľné

Street name and house number.

citystringVoliteľné

City name.

cityPartstringVoliteľné

City district or part.

stateRegionstringVoliteľné

State or region name.

postalCodestringVoliteľné

Postal/ZIP code.

countrystringVoliteľné

ISO 3166-1 alpha-2 country code.

PríkladyCZSKUS
noticestringVoliteľné

Additional notes or delivery instructions.

Ukážka odpovede

application/json
{
  "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"
}

Ukážka požiadavky

POST /api/v1/address/update

post
curl -X POST "https://api.bizkithub.com/api/v1/address/update?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "identityId": "Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg",
  "id": "6IU2SWgP76FO2UXw",
  "type": "delivery",
  "firstName": "example_firstName",
  "lastName": "example_lastName",
  "companyName": "example_companyName",
  "streetAddress": "example_streetAddress",
  "postalCode": "example_postalCode",
  "city": "example_city",
  "cityPart": "example_cityPart",
  "stateRegion": "example_stateRegion",
  "country": "CZ",
  "companyRegistrationNumber": "example_companyRegistrationNumber",
  "taxIdentificationNumber": "example_taxIdentificationNumber",
  "notice": "example_notice"
}'

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč