Skip to content
Made in India

BazaarProof API

Show your live BazaarProof record on your own site, send review requests and loyalty offers from your store when an order is delivered, put promotions on your page, and hear about new reviews, and who wrote them, the moment they arrive. Version v1, dated 2026-11-25.

Quick start

Create a secret key in your dashboard under API & webhooks, then call the API from your server. All responses are JSON over HTTPS from https://bazaarproof.in/api/v1.

Your summary
curl https://bazaarproof.in/api/v1/business \
  -H "Authorization: Bearer bp_sk_XXXXXXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

For AI agents

Building with a coding assistant such as Claude Code, Cursor or Copilot? Give it one of these instead of this page. They are generated from the same code that enforces the limits, so they never drift from what the API does.

  • Agent Skill (bazaarproof-api.zip): unzip into your agent's skills folder, for example ~/.claude/skills. It teaches the agent which endpoint and key to use, the rules for showing your record, and includes scripts to sign events and check webhooks. Read SKILL.md first if you like.
  • developers.md: this whole reference as one Markdown file.
  • openapi.json: OpenAPI 3.1, for code generators and API tools. No key needed.
Install the skill for Claude Code
curl -sL https://bazaarproof.in/skills/bazaarproof-api.zip -o /tmp/bazaarproof-api.zip
unzip -o /tmp/bazaarproof-api.zip -d ~/.claude/skills

Keep your keys in environment variables, never in a prompt. The skill reads BAZAARPROOF_KEY and BAZAARPROOF_SIGNING_SECRET on your server.

Keys

Secret keys

bp_sk_…. For servers only: never put one in page code or an app. Send it as Authorization: Bearer …. A key is shown once when you create it; we keep only a fingerprint, so a lost key is replaced, not recovered. Each key is read-only or read + write, and comes with a signing secret (bpsig_…) for order events. Revoking a key stops it at once.

Site key

bp_site_…. Public and safe in your site's HTML. It can only read what your BazaarProof page already shows (summary, proof strip, published reviews), so there is nothing to steal. Pass it as ?site= or the BazaarProof-Site header; browsers can call the read endpoints with it directly, but only from the websites you list under Widgets → Your websites (servers can call from anywhere). One per business; replacing it retires the old one.

From a web page
fetch("https://bazaarproof.in/api/v1/proof-strip?site=bp_site_XXXXXXXXXXXXXXXXXXXX")
  .then((r) => r.json())

Header loader

One tag in your site's <head> places your widgets for you. Choose where each one goes in your dashboard under Widgets → On your website: a floating proof-strip tab, or a widget before, after or inside the element a CSS selector matches, on every page or only on pages you list.

In <head>, once
<script async src="https://bazaarproof.in/embed.js" data-site="bp_site_XXXXXXXXXXXXXXXXXXXX"></script>
  • Widgets you already pasted as <div data-bazaarproof="…"> keep working, with or without data-site.
  • It loads with async, so it never holds up your page, and draws each widget in its own shadow root so your styles and ours can't clash.
  • No dependencies, no cookies, no storage, no tracking. It sends your site key and your site's address, nothing about the visitor.
  • Widgets show only on the websites you list under Widgets → Your websites, so a copied tag shows nothing anywhere else. With none listed, they show nowhere. Changes reach your site within about 5 minutes.
  • A placement only chooses where a widget goes. What it shows is the same as everywhere else, and it always links to your live page.
  • Every widget ends with the BazaarProof mark and “Powered by BazaarProof”, linking to your page. It stays on every widget, on every plan, and no attribute or setting removes it.

Size: embed.js is 8.5 KB gzipped (22.9 KB uncompressed), widgets and loader together, measured when this page was built.

Rate limits and errors

Secret key, readsLimit:120 a minute
Secret key, writesLimit:60 a minute
Site key (all visitors together)Limit:600 a minute

The same on every plan. Each response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; a refused call gets 429 with Retry-After.

Errors always look like this, with a plain-English message you can show to a person:

{ "error": { "code": "plan_required", "message": "Write endpoints are on the Enterprise plan. Reads stay free." } }
400code:invalid_requestWhen:The body or a parameter is wrong
401code:unauthorized / invalid_signatureWhen:Missing, revoked or wrong key; bad event signature
402code:plan_requiredWhen:A write endpoint on the Free plan
403code:forbidden / suspendedWhen:Read-only key, site key used for a write, or a suspended profile
422code:opted_outWhen:The buyer asked not to get review requests on that channel
429code:rate_limited / limit_reachedWhen:Too many calls, or this month's request allowance is used up

Read endpoints

GET /api/v1/business

Your public summary: name, page link, claimed or not, rating with its count and the count per star, and your official accounts. The WhatsApp number appears only for a claimed seller, and the UPI ID only when you declared it yourself in settings.

Sample response (sample data)
{
  "object": "business",
  "id": "biz_4u5ponu3502ri2sg",
  "slug": "neel-loom-studio",
  "name": "Neel Loom Studio",
  "url": "https://bazaarproof.in/b/neel-loom-studio",
  "status": "claimed",
  "claimed": true,
  "rating": { "average": 4.4, "count": 37, "counts": { "1": 2, "2": 1, "3": 3, "4": 8, "5": 23 }, "lastReviewAt": "2026-11-20T09:12:00.000Z" },
  "officialAccounts": { "website": "https://neelloom.in", "instagramHandle": "neelloom", "whatsappNumber": "+919800000000", "upiId": null, "upiPayeeName": null },
  "onBazaarProofSince": "2026-03-02T00:00:00.000Z"
}

GET /api/v1/products?id=YOUR_PRODUCT_ID

One of your products, by your store's product id, with its rating, count and count per star. If you grouped it with other products (one design in several colours, or one item listed twice), the numbers are the whole group's, every review of every product in it, and group.productIds lists them. The group's name stays in your dashboard.

GET /api/v1/proof-strip

The same five facts as the proof strip on your page, already banded and worded: verified buyers in 30 days, arrived as described, buyers who came back, complaints resolved, and on BazaarProof since. Show them as given, with updated, and link to profileUrl. When the page is not active you get {"state":"inactive"} with a message to show instead.

GET /api/v1/reviews?page=1&per_page=20

Published reviews, newest first, up to 50 a page, with next and previous links. Follow next to page through: it carries an after cursor that stays fast however far back you go. There is no rating filter and no sort option, on purpose: a site shows the record as it is, low ratings included. Each review has the reviewer's chosen display name, rating, text, verified-purchase and incentive flags, your reply, photos and videos, and a link to the review on BazaarProof. No email or phone, unless you ask for them with include=customer (your customers).

GET /api/v1/reviews/{id}

One published review, the same shape as in the list. Add include=customer for who wrote it.

Product stars in Google (Enterprise plan)

Google can show a product's stars and review count under your product page in search results when the page carries schema.org Product markup with an aggregateRating and review. BazaarProof gives you that markup for each product, built from the same numbers your product widget shows. Two ways to add it: from your server (best: Bing and AI crawlers often don't run JavaScript), or by one attribute on the widget.

GET /api/v1/products/YOUR_PRODUCT_ID/jsonld

Returns aggregateRating and up to 10 review nodes for one product, to merge into the Product JSON-LD your page already has. Use your site key (the same websites rule as the widgets) or a secret key from your server. Pass widget=w_… with the product widget that's on that page and the reviews marked up are exactly the ones it shows, in its order. Without it, reviews=0 to 10 (default 8) says how many the page shows; reviews=0 for a page with only the star line. Pass ld_id with your Product's @id and node carries it, so Google merges the rating into your Product. Cached up to 5 minutes; a new review shows within seconds.

Request
curl "https://bazaarproof.in/api/v1/products/8841/jsonld?widget=w_YOUR_WIDGET&ld_id=https://neelloom.in/p/indigo-saree%23product" \
  -H "Authorization: Bearer $BAZAARPROOF_KEY"
Response (sample data)
{
  "object": "product_jsonld",
  "product_id": "8841",
  "eligible": true,
  "reason": null,
  "reason_text": null,
  "aggregateRating": { "@type": "AggregateRating", "ratingValue": 4.3, "reviewCount": 12, "bestRating": 5, "worstRating": 1 },
  "review": [
    {
      "@type": "Review",
      "url": "https://bazaarproof.in/b/neel-loom-studio/r/rev_…",
      "author": { "@type": "Person", "name": "Priya S." },
      "datePublished": "2026-11-20",
      "reviewRating": { "@type": "Rating", "ratingValue": 5, "bestRating": 5, "worstRating": 1 },
      "reviewBody": "Colour is exactly as shown.",
      "inLanguage": "en-IN",
      "publisher": { "@type": "Organization", "name": "BazaarProof", "url": "https://bazaarproof.in" }
    }
  ],
  "node": { "@context": "https://schema.org", "@type": "Product", "@id": "https://neelloom.in/p/indigo-saree#product", "aggregateRating": { … }, "review": [ … ] },
  "script": "<script type=\"application/ld+json\">…</script>"
}

eligible is false, with reason, when there's nothing to mark up: no_reviews, inactive (you aren't taking reviews), or imported. Imported reviews count in your widget's figures, but Google only accepts reviews a review service collected itself, so while any imported review counts toward a product we give no markup rather than figures that disagree with the widget.

Any server: merge into your Product

Node (Express, Next.js, any template)
const r = await fetch(
  `https://bazaarproof.in/api/v1/products/${product.id}/jsonld?widget=w_YOUR_WIDGET`,
  { headers: { Authorization: `Bearer ${process.env.BAZAARPROOF_KEY}` } },
).then((res) => res.json());

const ld = {
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": `${pageUrl}#product`,
  name: product.name,
  image: product.image,
  sku: product.sku,
  offers: { "@type": "Offer", price: product.price, priceCurrency: "INR", availability: "https://schema.org/InStock" },
  ...(r.eligible ? { aggregateRating: r.aggregateRating, review: r.review } : {}),
};
// In the page's <head>, with "<" escaped:
html += `<script type="application/ld+json">${JSON.stringify(ld).replace(/</g, "\\u003c")}</script>`;
Plain HTML: the result pasted by your build step, with the widget on the same page
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"Product","@id":"https://neelloom.in/p/indigo-saree#product",
 "name":"Indigo saree","sku":"8841",
 "aggregateRating":{"@type":"AggregateRating","ratingValue":4.3,"reviewCount":12,"bestRating":5,"worstRating":1}}
</script>
<div data-bazaarproof="w_YOUR_WIDGET" data-bp-product="8841"></div>
<script async src="https://bazaarproof.in/embed.js"></script>

Shopify

Liquid can't call an API, so Shopify takes two parts. The snippet below gives your theme's Product a fixed @id and merges our markup when you've saved it in a JSON metafield bazaarproof.jsonld (a scheduled job or Shopify Flow can call the endpoint and store the response). Until then, the widget's data-bp-schema below adds it in the browser, merging by that same @id.

snippets/bazaarproof-product-ld.liquid, rendered in main-product.liquid
{%- assign bp = product.metafields.bazaarproof.jsonld.value -%}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": {{ shop.url | append: product.url | append: '#product' | json }},
  "name": {{ product.title | json }},
  "image": {{ product.featured_image | image_url: width: 1200 | prepend: 'https:' | json }},
  "sku": {{ product.selected_or_first_available_variant.sku | json }},
  "offers": {
    "@type": "Offer",
    "price": {{ product.selected_or_first_available_variant.price | divided_by: 100.0 | json }},
    "priceCurrency": {{ cart.currency.iso_code | json }},
    "availability": "https://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}"
  }
  {%- if bp and bp.eligible -%},
  "aggregateRating": {{ bp.aggregateRating | json }},
  "review": {{ bp.review | json }}
  {%- endif %}
}
</script>
<div data-bazaarproof="w_YOUR_WIDGET" data-bp-product="{{ product.id }}"
  {%- unless bp and bp.eligible %} data-bp-schema="product" data-bp-ld-id="{{ shop.url | append: product.url | append: '#product' }}"{% endunless %}></div>
<script async src="https://bazaarproof.in/embed.js"></script>

If your theme or another app already prints a Product node, remove that one or give it the same @id: one product page, one Product.

Without a server: data-bp-schema

Add data-bp-schema="product" to a product reviews or product star line widget. After it draws, embed.js loads a small extra script that adds one <script type="application/ld+json"> to your page's head, built from the data the widget already fetched. If your page has a Product with an @id, it adds a node with that @id carrying only aggregateRating and review. If your Product has no @id, the rating is added to it. With no Product, it adds one with the product's name and photo. It never adds a second Product, and adds nothing if your Product already has ratings or the page has two Products (name the right one with data-bp-ld-id). Google runs JavaScript, so this works for Google; for Bing and AI search, use the endpoint.

Product page snippet
<div data-bazaarproof="w_YOUR_WIDGET" data-bp-product="8841" data-bp-schema="product"></div>
<script async src="https://bazaarproof.in/embed.js"></script>

What the markup always follows

  • Product ratings only. Never a rating for your business (Organization, LocalBusiness, OnlineStore) on your own site: Google treats that as self-serving and won't show it.
  • Only reviews BazaarProof collected: never imported ones, never sample data.
  • The figures your widget prints: the average to one decimal and the same count, pooled across a product group as the widget pools it.
  • Only on a page that shows the reviews. The star line shows no review text, so it gets the rating and no review nodes; the review block gets the reviews it shows, up to 10.
  • Google decides whether stars appear. Valid markup makes a page eligible; it doesn't guarantee a snippet.

Review requests (Enterprise plan)

POST /api/v1/review-requests

Queues one review request, with exactly the checks the dashboard applies: your profile isn't suspended, the channel is on your plan, WhatsApp requests name their order, the monthly allowance isn't used up, and the buyer hasn't opted out. consent: true is required: it records that the buyer agreed to hear from you about this order on this channel. Don't send it unless they did.

Request
curl https://bazaarproof.in/api/v1/review-requests \
  -H "Authorization: Bearer $BAZAARPROOF_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "email",
    "contact": "[email protected]",
    "name": "Asha",
    "orderRef": "NL-1042",
    "product": "Indigo block-print saree",
    "delayDays": 2,
    "consent": true
  }'
201 Created
{ "object": "review_request", "id": "req_…", "channel": "email", "status": "queued", "sendAfter": "2026-11-27T10:00:00.000Z", "orderRef": "NL-1042", "duplicate": false }

Calling again for the same order, channel and buyer within 30 days returns the first request with duplicate: true, so retries are safe. The buyer's contact is never echoed back.

Order and delivery events (Enterprise plan)

POST /api/v1/events

For store platforms and courier tools: tell us an order was placed, shipped, delivered or cancelled. Needs a read + write key, and the body must be signed with that key's signing secret (see Signing).

  • A request is queued only when consent says the buyer agreed to that channel. With no consent, the event is recorded and nothing is sent.
  • Channel: the one you name in channel, otherwise the first agreed channel with a contact, in the order email, WhatsApp, SMS.
  • Default wait before sending: order.placed 7 days, order.shipped 5 days, order.delivered 2 days. Override with delayDays (0–30).
  • order.cancelled cancels requests for that order that haven't gone out yet.
  • id is your own event id. Sending the same id again is acknowledged and ignored, and one request per order, channel and buyer is made at most.
  • promos: up to 5 loyalty offers the buyer gets for writing a review, whatever they rate. Each has a headline (80 characters), an image (https, square, at least 500 x 500; we keep a 500 x 500 copy), a description (400) and terms (600). They show in the review request email. They are the request's reward, so a review written through it is labelled with the offer, and no offer can mention stars, ratings or positive reviews.
Body
{
  "id": "shiprocket-77812-delivered",
  "type": "order.delivered",
  "occurredAt": "2026-11-25T08:30:00+05:30",
  "order": { "ref": "NL-1042", "product": "Indigo block-print saree" },
  "buyer": { "name": "Asha", "email": "[email protected]", "phone": "+919800000000" },
  "consent": { "email": true, "whatsapp": false },
  "promos": [
    { "headline": "15% off your next order", "image": "https://neelloom.in/img/offer-15.jpg", "description": "Use code THANKYOU15 at checkout.", "terms": "Valid 60 days on orders over ₹999. One use per buyer." }
  ]
}
202 Accepted
{ "object": "order_event", "id": "oev_…", "eventId": "shiprocket-77812-delivered", "duplicate": false, "outcome": "queued", "requestId": "req_…", "channel": "email", "sendAfter": "2026-11-27T03:00:00.000Z", "message": "Review request queued." }

Other outcomes: no_consent, no_contact, invalid_contact, opted_out, duplicate_order, limit_reached, channel_needs_plan, cancelled_requests, nothing_to_cancel. We keep the outcome and order reference, not the buyer's contact (a queued request holds it, as one from the dashboard would).

Reviews from your website

Two ways to connect the review form on your own website. Your widgets show the reviews either way, every rating included. Each review is either a business review (your shop as a whole: ordering, packing, delivery, support) or a product review (one product, shown with its photo and name).

Full and Lighter, side by side
Buyer writesFull: our form:On your site, in BazaarProof's review formLighter: your form:On your site, in your own form
Confirmed byFull: our form:A 6-digit code to the buyer's phone or emailLighter: your form:Nobody: we can't check who wrote it
Shown asFull: our form:A BazaarProof reviewLighter: your form:Imported from your website, never a verified purchase
Set upFull: our form:Create a Review form widget, paste its snippet where your form wasLighter: your form:Your server sends each review to POST /api/v1/reviews, signed
PlanFull: our form:Seller and upLighter: your form:Enterprise

Full: the review form widget

In your dashboard, Widgets → create a Review form, then paste its snippet where your old form was. It works only on the websites you list under Widgets → Your websites. Make as many variations as you need, each its own widget with its own heading, intro and optional questions, and each collecting either business reviews or product reviews. A product form shows the product's photo and name at the top: pick the product in the dashboard, or leave it to the snippet with data-bp-product="YOUR_PRODUCT_ID" so one snippet in your product page template covers every product. The product needs to be in your product list with a photo address; one that isn't is saved as a business review. The buyer's number or email never appears on your site, and no cookie is set on your site. There's no API call to make.

Snippet (from your dashboard)
<div data-bazaarproof="w_XXXXXXXXXXXX"></div>
<script async src="https://bazaarproof.in/embed.js"></script>
A product form in your product page template
<div data-bazaarproof="w_XXXXXXXXXXXX" data-bp-product="{{ product.id }}" data-bp-gtin="{{ product.barcode }}"></div>
<script async src="https://bazaarproof.in/embed.js"></script>

data-bp-gtin is optional: the product's barcode number (GTIN-8, UPC-A, EAN-13 or GTIN-14). BazaarProof keeps it for its own use and never shows it; a wrong or blank one is ignored.

Lighter: POST /api/v1/reviews

Keep your own form and send each review as it comes in. Needs a read + write key, and the body signed with that key's signing secret (see Signing). Reviews publish at once and count in your rating, labelled “Imported from the seller's store” with your website.

  • Send every review, low ratings included, exactly as the buyer wrote it.
  • id is your website's own review id. Sending it again is acknowledged with "duplicate": true and changes nothing, so retries are safe.
  • author.name is required: the name the buyer chose to show; a full name is shortened to first name and initial. author.email is optional and stays private: never shown, never echoed back, and we never write to it. Don't send a phone number.
  • Send product for a product review: your store's product id (the same as data-bp-product), its name, an https image address (we keep a 320 px copy as the thumbnail) and optionally its url and gtin. It adds the product to your product list, or updates it there. Leave product out for a business review.
  • product.gtin is optional: the barcode number (GTIN-8, UPC-A, EAN-13 or GTIN-14), digits only. BazaarProof keeps it for its own use and never shows it. A number with a wrong check digit is ignored; the review still goes in.
  • There is no edit or delete. Once sent, a review stays as sent.
Body
{
  "id": "rev-1042",
  "rating": 2,
  "title": "Late, and lighter than the photos",
  "body": "Arrived a week late and the colour was lighter than the photos.",
  "author": { "name": "Priya Sharma", "city": "Pune" },
  "product": {
    "id": "8841",
    "name": "Indigo saree",
    "image": "https://neelloom.in/img/indigo.jpg",
    "url": "https://neelloom.in/p/indigo-saree",
    "gtin": "8901030865275"
  },
  "createdAt": "2026-11-25T08:30:00+05:30"
}
201 Created
{ "object": "site_review", "id": "rev_site_…", "reviewId": "rev-1042", "duplicate": false, "subject": "product", "url": "https://bazaarproof.in/b/neel-loom-studio/r/rev_site_…", "importedFrom": "neelloom.in", "verifiedPurchase": false }

Signing

Order events and reviews you send, and webhooks we send, are signed the same way: the BazaarProof-Signature header is t={unix seconds},v1={hex}, where v1 is HMAC-SHA256 of {t}.{raw body} with the secret. Sign and check the exact bytes on the wire, and reject timestamps more than 5 minutes off, which stops replays.

Node: sign an order event
import { createHmac } from "node:crypto";

const body = JSON.stringify(event);
const t = Math.floor(Date.now() / 1000);
const v1 = createHmac("sha256", process.env.BAZAARPROOF_SIGNING_SECRET).update(`${t}.${body}`).digest("hex");

await fetch("https://bazaarproof.in/api/v1/events", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.BAZAARPROOF_KEY}`,
    "Content-Type": "application/json",
    "BazaarProof-Signature": `t=${t},v1=${v1}`,
  },
  body,
});
Node: check a webhook from us
import { createHmac, timingSafeEqual } from "node:crypto";

function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest();
  const given = Buffer.from(parts.v1 ?? "", "hex");
  return given.length === expected.length && timingSafeEqual(given, expected);
}
PHP: check a webhook from us (WooCommerce, WordPress)
$raw = file_get_contents('php://input');
$header = $_SERVER['HTTP_BAZAARPROOF_SIGNATURE'] ?? '';
parse_str(str_replace(',', '&', $header), $p);
$ok = isset($p['t'], $p['v1'])
  && abs(time() - (int) $p['t']) <= 300
  && hash_equals(hash_hmac('sha256', $p['t'] . '.' . $raw, $secret), $p['v1']);

Webhooks (Enterprise plan)

Add endpoints in the dashboard and choose events. Each gets its own signing secret (whsec_…), shown once.

review.createdWhen:A buyer published a new review on your page. Carries the review and who wrote it.
complaint.createdWhen:A buyer raised a complaint. Details stay in your dashboard.
complaint.dueWhen:6 hours before the 48-hour reply clock runs out, and 2 days before the 30-day resolve clock.

complaint.due fires 6 hours before the 48-hour reply clock and 2 days before the 30-day resolve clock, unless you've already replied or closed it. Complaint events carry the ticket, kind, status and clocks, and a link to the complaint in your dashboard; the buyer's words and contact details stay there.

Sample delivery (sample data)
POST /hooks/bazaarproof
Content-Type: application/json
BazaarProof-Signature: t=1764054000,v1=5f0c…
BazaarProof-Event: review.created
BazaarProof-Event-Id: evt_…
BazaarProof-Delivery: dlv_…

{
  "id": "evt_…",
  "type": "review.created",
  "apiVersion": "2026-11-25",
  "createdAt": "2026-11-25T09:00:00.000Z",
  "business": { "id": "biz_…", "slug": "neel-loom-studio" },
  "data": {
    "review": { "object": "review", "id": "rev_…", "rating": 2, "body": "…", "url": "https://bazaarproof.in/b/neel-loom-studio/r/rev_…" },
    "customer": { "object": "customer", "name": "Asha Rao", "displayName": "Asha R.", "email": "[email protected]", "emailConfirmed": true, "phone": "+919800000001", "city": "Pune", "orderRef": "NL-1042", "requestId": "req_…", "requestChannel": "email" }
  }
}

Answer with any 2xx within 10 seconds. Anything else, a redirect or no answer is retried with growing gaps, 8 tries over about two hours. The same event keeps its id on every try and every endpoint, so de-duplicate on it. Endpoints must be public https addresses. The dashboard shows the last deliveries and can send a test event.

review.created carries customer: who wrote the review, so you can match it to the order and follow up. See your customers for the fields. It is null if we can't tell.

Your customers (Enterprise plan)

Who wrote your reviews, for following up on orders: name, email, verified phone, city, your order reference and the review request behind it. Call these from your server with a secret key; a site key never gets them. They count against the read limit. Don't publish these details, and never show a buyer's contact next to their review.

GET /api/v1/reviews?include=customerWhat you get:Your reviews, newest first, each with its customer. Page with next, as usual: for syncing into a CRM.
GET /api/v1/reviews/{id}/customerWhat you get:Who wrote one review.
GET /api/v1/customers/reviews?email_sha256=…What you get:One customer's reviews of you, with a summary. Also phone_sha256 and order_ref; send any mix.
POST /api/v1/customers/lookupWhat you get:The same, for a plain email, phone or orderRef sent in the body. Nothing you send is stored.
GET /api/v1/orders/{ref}/reviewsWhat you get:Reviews tied to one of your orders.

An email or phone never goes in a URL, so the GET takes a sha256 of it. Email: trimmed and lowercase. Phone: +91 and ten digits. A review matches on the reviewer's email, their account email or phone, the address or number you sent a review request to, or the order reference. Only published reviews are listed, up to 100, newest first.

Node: a customer's reviews by email
import { createHash } from "node:crypto";
const sha = (s) => createHash("sha256").update(s).digest("hex");
const email = "[email protected]".trim().toLowerCase();
const res = await fetch(`https://bazaarproof.in/api/v1/customers/reviews?email_sha256=${sha(email)}`, {
  headers: { Authorization: `Bearer ${process.env.BAZAARPROOF_KEY}` },
});
Sample response (sample data)
{
  "object": "customer_reviews",
  "matchedOn": ["emailSha256"],
  "customer": { "object": "customer", "name": "Asha Rao", "email": "[email protected]", "phone": "+919800000001", "orderRef": "NL-1042", "…": "…" },
  "summary": { "reviewCount": 2, "averageRating": 3.5, "lowRatings": 0, "firstReviewAt": "2026-08-14T10:02:00.000Z", "lastReviewAt": "2026-11-20T09:12:00.000Z" },
  "data": [{ "object": "review", "id": "rev_…", "rating": 3, "…": "…", "customer": { "…": "…" } }],
  "truncated": false
}

Promotions on your page (Enterprise plan)

A feed of general offers, shown on your BazaarProof page after the reviews and labelled as yours. POST /api/v1/promotions with the whole feed, up to 10, in the order to show them: ones you leave out are removed, and an empty list clears it. GET /api/v1/promotions reads it back with any key.

Each promotion has your id, a headline, an image, a description and terms, plus optional startsAt and endsAt. Images are fetched when you send the feed and kept as a 500 x 500 copy: send a square image at least that size. If one can't be fetched, nothing changes and the error names it. Offers can't mention stars, ratings or positive reviews.

Body (sample data)
{
  "promotions": [
    {
      "id": "diwali-2026",
      "headline": "Festive weaves, 20% off",
      "image": "https://neelloom.in/img/diwali-2026.jpg",
      "description": "Every handloom saree in the festive edit, shipped free across India.",
      "terms": "Till 15 Nov 2026 or while stock lasts. Not with other codes.",
      "endsAt": "2026-11-15T23:59:00+05:30"
    }
  ]
}

What the API never does

  • Delete, hide, edit or reorder a review or a complaint. There is no endpoint for it, and PUT, PATCH and DELETE are refused.
  • Filter reviews by rating. Reviews come newest first, every rating included.
  • Return a buyer's email or phone to a site key or below the Enterprise plan, or the text of a complaint to anyone.
  • Show a phone number for a seller who hasn't claimed their page, or a UPI ID the seller didn't declare.
  • Change a number because a seller pays. Plans change what you can do, never what the record says.

Questions or a use we haven't thought of? Read the review guidelines first; the same rules apply to everything built on the API.