BizKitHub
DokumentáciaPrieskumník APICustomer/api/v1/customer/custom-field-definitions
getCustomerVerejné API v1

/api/v1/customer/custom-field-definitions

Custom contact fields the organisation defined in admin (contact detail, Custom fields), in admin order. Use it to render a profile form and to know which customFields keys POST /customer/update-profile accepts. options lists the allowed values of a select field. required is informative for the form; the API never requires a custom field.

customergetApiV1CustomerCustom-field-definitions

Parametre

1 v query

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

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
itemsobject[]Povinné
Každá položka poľa:
keystringPovinné
Príkladmain_goal
type"text" | "textarea" | "number" | "boolean" | "select" | "date"Povinné

Value type. date = YYYY-MM-DD, select = one of options[].value.

labelstringPovinné
PríkladHlavní cíl
helperTextstringVoliteľné
placeholderstringVoliteľné
requiredbooleanPovinné
optionsobject[]Voliteľné
Každá položka poľa:
valuestringPovinné
Príkladstrength
labelstringPovinné
PríkladSíla

Ukážka odpovede

application/json
{
  "items": [
    {
      "key": "main_goal",
      "label": "Hlavní cíl",
      "helperText": "example_helperText",
      "placeholder": "example_placeholder",
      "required": false,
      "options": [
        {
          "value": "strength",
          "label": "Síla"
        }
      ]
    }
  ]
}

Ukážka požiadavky

GET /api/v1/customer/custom-field-definitions

get
curl -X GET "https://api.bizkithub.com/api/v1/customer/custom-field-definitions?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

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

Získať API kľúč