Price monitoring in Guyana · API & webhooks

Price API and webhooks for Guyanese development teams

As more Guyanese businesses move from social selling to their own web stores and back-office systems, developers need the figures in a form code can use. The 4pricing REST API and signed webhook give your team prices, records, findings and approved price changes, while the decision to change a price stays with the business.

What the API gives your developers

Current prices in JSON

Authenticated REST endpoints return the latest prices of your followed products. The OpenAPI 3.1 specification is public, so your team can generate a client in the language it already uses.

Records when you need them

Retrieve the stored record of any followed product, for example to see how an appliance was priced across the Christmas season. Reading data costs no credits.

Alerts pushed to your endpoint

When one of your rules fires, whether a price under or over a level, a percentage fall, a restock or a rival undercutting you, your endpoint receives a signed POST with a JSON body. Ordinary price changes are not streamed.

Sales that give the value

POST /sales/bulk takes your daily units sold per product, up to 2,000 rows per call, idempotent per product and day. Opportunity values are calculated from these; without sales the value appears as “—”.

Findings and the briefing

GET /insights/ returns findings with their evidence and price proposals, GET /opportunities/ sums them up while keeping sales-based value apart from the market estimate, and GET /briefings/latest returns the newest briefing.

Price actions you confirm

GET /actions/ lists every action as proposed, sent, applied or reverted. After your system has saved a price received through price.apply, POST /actions/{id}/confirm marks it as applied.

Keys you can withdraw

Create API keys in the panel and revoke them when a developer moves on or a key may have been exposed; an active plan is required. Send the key in the X-API-Key header or as a Bearer token.

Your prices in, proposals out

Send your own prices one by one or in batches of up to 2,000, then read the group comparison and the proposed price. A proposal is never applied on its own; it reaches your system by webhook only after approval.

Signed deliveries, retried

Every POST carries X-4Pricing-Timestamp and X-4Pricing-Signature, the second being sha256= followed by the HMAC-SHA256 of “<timestamp>.<body>”. Failed deliveries are retried at widening intervals, useful when a server is briefly offline. Events: alerts, price.apply, price.revert and briefing.ready.

What the 4pricing API and webhook give a development team in Guyana.

FeatureDetail
REST APIAuthenticated JSON endpoints, up to 60 requests a minute per account, public OpenAPI 3.1 specification
Stored recordsVisits of every followed product, retrieved without using credits
WebhookSigned POST to one URL per account, retried after failures; alerts, price.apply, price.revert, briefing.ready
Sales inputPOST /sales/bulk, up to 2,000 rows per call, idempotent per product and day
Findings and briefingGET /insights/, GET /opportunities/ and GET /briefings/latest
Price actionsGET /actions/, then POST /actions/{id}/confirm after a price.apply is saved
Access keysCreated and revoked in the panel, sent as X-API-Key or Bearer, active plan required
Own pricesSent one by one or up to 2,000 at once, with no credits used

Create an API key in the panel and call the REST endpoints, keeping under 60 requests per minute per account. Credits are spent only when a shop page has to be fetched, for instance when a product or group member is added from a link or refreshed; reading data and sending your own prices are free of credits. To receive events, register one webhook URL and check the signature of every POST. When price.apply arrives, save the price in your system and call POST /actions/{id}/confirm. Findings and the briefing are served by GET /insights/, GET /opportunities/ and GET /briefings/latest.

API and webhooks: developer questions from Guyana

What can our software read through the API?

Followed products with current prices, stored records, group comparisons, opportunities (GET /insights/, GET /opportunities/), the briefing (GET /briefings/latest) and price actions (GET /actions/). You can push in your own prices and daily sales (POST /sales/bulk), all within 60 requests per minute per account.

What does the webhook deliver, and where?

A single URL per account receives JSON bodies signed with HMAC-SHA256, with the X-4Pricing-Signature and X-4Pricing-Timestamp headers. Events cover alerts, approved and reversed prices (price.apply, price.revert) and a finished briefing (briefing.ready); failed deliveries are sent again at widening intervals.

How do we check the signature?

Read the X-4Pricing-Timestamp value and the raw request body, compute the HMAC-SHA256 of “<timestamp>.<request body>” with the webhook secret from your account, put sha256= in front and compare the result with X-4Pricing-Signature before doing anything else.

What does a price.apply contain, and how do we handle it?

The event name, the action_id, the group (id, name, sku, store_product_id), the old and new price in minor units, the currency, the reason, the mode and the confirmation path. Save the price in your system, then call POST /api/v1/pricing/actions/{action_id}/confirm so the action moves from “sent” to “applied”. A price.revert has the same shape and is confirmed the same way.

Is there a ready plug-in for our ERP, WMS or shop platform?

No. The REST API, the signed webhook and the CSV product list are the pieces your team or an integrator works with. Direct writing, with no system of yours involved, happens only in a 4buildsite shop linked to the product.

How does our integration log in?

With an API key sent in the X-API-Key header or as a Bearer token. Keys are created and revoked in the panel and need an active plan.

Do API calls use up credits?

Only calls that make 4pricing fetch a shop page, such as adding a product or group member from a link, or a refresh. Reading data and sending your own prices use no credits.

Connect your own systems to the price data

Create a key, read the OpenAPI specification and register your webhook.