BizKitHub
DokumentacePrůzkumník APIReview/api/v1/shop/review/allowance
getReviewVeřejné 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 v query

Parametry v query

· 3
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
identityIdstringPovinné

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

PříkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
productSlugstringVolitelné

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

Příkladset-start

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
canReviewbooleanPovinné
remainingnumberPovinné

How many reviews the customer can write now.

pendingnumberPovinné
reviewednumberPovinné
delayDaysnumberPovinné
maxTextLengthnumberPovinné
suggestedAuthorstringVolitelné

Name from the customer profile, to prefill the form.

Ukázka odpovědi

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

Ukázka požadavku

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"

Potřebujete API klíč?

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

Získat API klíč