Price monitoring in Jamaica · API & webhooks

Price API and webhooks for Jamaican development teams

Importers and retailers in Jamaica often keep stock, landed costs and orders in their own software. 4pricing can feed it over a REST API: tracked products and their history, group comparisons, opportunities and the daily briefing, with endpoints for sending in your own prices and daily sales. A signed webhook posts to your URL when an alert fires, when a price is approved or reversed (price.apply, price.revert) and when the briefing is ready (briefing.ready). No packaged connectors exist for ERPs, WMSs or shop platforms; your developers build the link.

What your developers can build on the 4pricing API

Latest prices in JSON

Authenticated REST endpoints return the current prices of your tracked products. The published OpenAPI 3.1 specification lets your team generate a client instead of writing each call by hand.

History when you ask for it

Retrieve the stored history of any tracked product, for example to compare a competitor's prices before and after a new shipment arrived. Reading data uses no credits.

Alerts sent to your endpoint

When a rule 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. It is not a stream of every price change.

Sales that give the value

POST /sales/bulk takes your daily units sold per product, up to 2,000 rows a call and idempotent per product and day. Opportunity values come from these figures; with no sales the value shows as “—”.

Findings and the briefing

GET /insights/ returns findings with evidence and price proposals, GET /opportunities/ summarises them with sales-based value kept apart from the market estimate, and GET /briefings/latest returns the most recent briefing.

Actions your system confirms

GET /actions/ lists each action as proposed, sent, applied or reverted. After your system writes a price received via price.apply, POST /actions/{id}/confirm marks it as applied.

Revocable access keys

Create API keys in the panel and withdraw any of them when a contractor finishes 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 price in, a proposal out

Push 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 never applies itself; it reaches your system by webhook only after approval.

Signed deliveries, retried

Each 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 with lengthening pauses, which helps if your server is briefly offline after a storm. Events: alerts, price.apply, price.revert and briefing.ready.

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

FeatureWhat you get
REST APIAuthenticated JSON endpoints, 60 requests a minute per account, OpenAPI 3.1 specification published
Stored historyEvery tracked product's readings, retrieved with no credits spent
WebhookSigned POST to one URL per account, retried on failure; alerts, price.apply, price.revert, briefing.ready
Sales inputPOST /sales/bulk, up to 2,000 rows a 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 written
Access keysCreated and revoked in the panel, sent as X-API-Key or Bearer, active plan needed
Your own pricesPushed singly or up to 2,000 at a time, with no credits used

Generate an API key in the panel and call the REST endpoints, keeping within 60 requests per minute per account. Credits are spent only when a shop page has to be fetched, such as adding a product or group member from a link or refreshing one; reading data and sending your own prices are free of credits. To receive events, register one webhook URL and check the signature on every POST. When price.apply arrives, write the price in your system and call POST /actions/{id}/confirm. Opportunities and the briefing come from GET /insights/, GET /opportunities/ and GET /briefings/latest.

API and webhooks: what Jamaican developers ask

What data can our software read from the API?

Tracked products with current prices, the stored history, group comparisons, opportunities (GET /insights/, GET /opportunities/), the briefing (GET /briefings/latest) and price actions (GET /actions/). Your own prices and daily sales (POST /sales/bulk) can be sent in, all within 60 requests per minute per account.

What does the webhook deliver, and where?

One 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 ready briefing (briefing.ready); failed deliveries are retried with increasing pauses.

How do we check the signature?

Take 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 processing the event.

What arrives in a price.apply, and what should we do?

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. Write the price in your system, then call POST /api/v1/pricing/actions/{action_id}/confirm so that the action moves from “sent” to “applied”. A price.revert has the same shape and is confirmed in the same way.

Is there a connector for our ERP, WMS or web shop?

No. The REST API, the signed webhook and the CSV product list are what your team or an integrator works with. Prices are written directly, without a system of yours, only in a 4buildsite shop linked to the product.

How does our integration authenticate?

With an API key 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.

Feed competitor prices into your own software

A REST API for prices, history, opportunities and the briefing, with a signed webhook for alerts and approved prices.