BizKitHub
DokumentacjaEksplorator APIReview/api/v1/shop/review/allowance
getReviewPubliczne API v1

/api/v1/shop/review/allowance

Each delivered order entitles the customer to one shop review and one review per product in the order. An order counts once it has been delivered (status done) for delayDays days. Cancelled orders never count. pending = orders that will unlock a review later, reviewed = orders already used.

reviewgetApiV1ShopReviewAllowance

Parametry

3 w query

Parametry query

· 3
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
identityIdstringWymagane

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

PrzykładZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
productSlugstringOpcjonalne

Slug of the product. Omit for a review of the shop itself.

Przykładset-start

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
canReviewbooleanWymagane
remainingnumberWymagane

How many reviews the customer can write now.

pendingnumberWymagane
reviewednumberWymagane
delayDaysnumberWymagane
maxTextLengthnumberWymagane
suggestedAuthorstringOpcjonalne

Name from the customer profile, to prefill the form.

Przykład odpowiedzi

application/json
{
  "canReview": false,
  "remaining": 0,
  "pending": 0,
  "reviewed": 0,
  "delayDays": 0,
  "maxTextLength": 0,
  "suggestedAuthor": "example_suggestedAuthor"
}

Przykład żądania

GET /api/v1/shop/review/allowance

get
curl -X GET "https://api.bizkithub.com/api/v1/shop/review/allowance?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg&productSlug=set-start" \
  -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