BizKitHub
postAddressVeřejné API v1

/api/v1/address/create

Creates a new address for the specified contact. Address is automatically validated and normalized (street names, postal codes, etc.). If country is not provided, it defaults to the organisation default country. Returns the created address object with the generated ID.

AddresspostApiV1AddressCreate

Parametry

1 v query · JSON tělo

Parametry 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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Tělo požadavku

application/json
identityIdstringPovinné

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

PříkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
typestringVolitelné

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

Příkladydeliverybillingcontact
firstNamestringVolitelné

First name of the person.

lastNamestringVolitelné

Last name of the person.

companyNamestringVolitelné

Company name (for business addresses).

streetAddressstringVolitelné

Street name and house number.

postalCodestringVolitelné

Postal/ZIP code.

citystringVolitelné

City name.

cityPartstringVolitelné

City district or part.

stateRegionstringVolitelné

State or region name.

countrystringVolitelné

ISO 3166-1 alpha-2 country code.

PříkladyCZSKUS
companyRegistrationNumberstringVolitelné

Company registration number (IČO in CZ).

taxIdentificationNumberstringVolitelné

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

noticestringVolitelné

Additional notes or delivery instructions.

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
idstringPovinné

Address external identifier (core__address.external_id).

Příklad6IU2SWgP76FO2UXw
typestringVolitelné

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

Příkladydeliverybillingcontact
firstNamestringVolitelné

First name of the person.

lastNamestringVolitelné

Last name of the person.

companyNamestringVolitelné

Company name (for business addresses).

companyRegistrationNumberstringVolitelné

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

taxIdentificationNumberstringVolitelné

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

streetAddressstringVolitelné

Street name and house number.

citystringVolitelné

City name.

cityPartstringVolitelné

City district or part.

stateRegionstringVolitelné

State or region name.

postalCodestringVolitelné

Postal/ZIP code.

countrystringVolitelné

ISO 3166-1 alpha-2 country code.

PříkladyCZSKUS
noticestringVolitelné

Additional notes or delivery instructions.

Ukázka odpovědi

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ázka požadavku

POST /api/v1/address/create

post
curl -X POST "https://api.bizkithub.com/api/v1/address/create?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "identityId": "Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg",
  "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"
}'

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč