BizKitHub
DokumentacjaEksplorator APIReferral/api/v1/referral/referred-customers
getReferralPubliczne API v1

/api/v1/referral/referred-customers

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

referralgetApiV1ReferralReferred-customers

Parametry

1 w query

Parametry query

· 1
cuRefNostringWymagane

cuRefNo = customer reference number.

Długość: 16
Przykład1cGIHvFoQDGLAbcA

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
itemsobject[]Wymagane
Każdy element tablicy:
cuRefNostringWymagane

cuRefNo = customer reference number.

Długość: 16
Przykład1cGIHvFoQDGLAbcA
emailstringWymagane

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.

firstNamestringOpcjonalne
PrzykładJan
lastNamestringOpcjonalne
PrzykładBarášek
insertedDateDate | string | string | numberWymagane
Jedna z 4 opcji:
Wariant 1
Date
Przykład2025-01-10T16:19:40.150Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
lastActivityDateDate | string | string | numberWymagane
Jedna z 4 opcji:
Wariant 1
Date
Przykład2025-01-10T16:19:40.150Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number

Przykład odpowiedzi

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"
    }
  ]
}

Przykład żądania

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"

Potrzebujesz klucza API?

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

Uzyskaj klucz API