BizKitHub
DokumentacePrůzkumník APIReferral/api/v1/referral/referred-customers
getReferralVeřejné API v1

/api/v1/referral/referred-customers

Returns a list of customers referred by the given customer (identified by cuRefNo).

referralgetApiV1ReferralReferred-customers

Parametry

1 v query

Parametry v query

· 1
cuRefNostringPovinné

cuRefNo = customer reference number.

Délka: 16
Příklad1cGIHvFoQDGLAbcA

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
itemsobject[]Povinné
Každá položka pole:
cuRefNostringPovinné

cuRefNo = customer reference number.

Délka: 16
Příklad1cGIHvFoQDGLAbcA
emailstringPovinné

Contact email address.

The system validates the input as a standard email address and automatically applies normalization and canonicalization.

All API responses return the normalized form, and each email address is unique per organisation within the system.

Phone-only contacts: Since 2026-06-10 a contact may exist without an e-mail when it was registered only by phone (e.g. imports of phone-only records). Responses that expose such contacts use API_EMAIL_NULLABLE instead, where this field can be null. Endpoints that accept e-mail as input still require a valid value here — phone-only creation goes through admin-only import / BFF flows.

firstNamestringVolitelné
PříkladJan
lastNamestringVolitelné
PříkladBarášek
insertedDateDate | string | string | numberPovinné
Jedna z 4 možností:
Varianta 1
Date
Příklad2025-01-10T16:19:40.150Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
lastActivityDateDate | string | string | numberPovinné
Jedna z 4 možností:
Varianta 1
Date
Příklad2025-01-10T16:19:40.150Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number

Ukázka odpovědi

application/json
{
  "items": [
    {
      "cuRefNo": "1cGIHvFoQDGLAbcA",
      "email": "[email protected]",
      "firstName": "Jan",
      "lastName": "Barášek",
      "insertedDate": "2025-01-10T16:19:40.150Z",
      "lastActivityDate": "2025-01-10T16:19:40.150Z"
    }
  ]
}

Ukázka požadavku

GET /api/v1/referral/referred-customers

get
curl -X GET "https://api.bizkithub.com/api/v1/referral/referred-customers?cuRefNo=1cGIHvFoQDGLAbcA" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potřebujete API klíč?

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

Získat API klíč