Price monitoring in Trinidad and Tobago · API & webhooks

Price API and webhooks for development teams in Trinidad and Tobago

Plenty of distributors and retailers in Trinidad and Tobago run stock, ordering or point-of-sale software of their own. 4pricing can feed it through a REST API: tracked products with history, group comparisons, opportunities and the daily briefing, plus 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 reverted (price.apply, price.revert) and when the briefing is ready (briefing.ready). There are no packaged ERP, WMS or shop-platform connectors; your developers build the connection.

What your developers can build on the 4pricing API

Current prices in JSON

Authenticated REST endpoints return the latest price of every tracked product. The OpenAPI 3.1 specification is published, so a client can be generated in your team's language of choice.

History when you ask for it

Retrieve the stored readings of any product, for instance to see how a line behaved after a competitor's shipment or through the Christmas trade. Reading data uses no credits.

Alerts posted 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. Routine readings are not pushed.

Sales data for valuing opportunities

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

Findings and the briefing

GET /insights/ returns findings with evidence and price proposals, GET /opportunities/ summarises them 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 each action as proposed, sent, applied or reverted. When your system has written a price received through price.apply, POST /actions/{id}/confirm marks it applied.

Keys you control

Create API keys in the panel and revoke them when a contractor finishes or a key may be exposed; an active plan is required. Send the key in the X-API-Key header or as a Bearer token.

Your prices in, a proposal out

Push your own prices one at a time or up to 2,000 at once, then read the group comparison and the proposed price. A proposal is never applied by itself; it reaches your system by webhook only after approval.

Signed deliveries, retried on failure

Every POST carries X-4Pricing-Timestamp and X-4Pricing-Signature, the latter 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. Events: alerts, price.apply, price.revert and briefing.ready.

What the 4pricing API and webhook offer a development team in Trinidad and Tobago.

FeatureDetail
REST APIAuthenticated JSON endpoints, up to 60 requests per minute per account, OpenAPI 3.1 specification published
Stored historyReadings for every tracked product, retrieved without credits
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 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 writing a price.apply
Access keysCreated and revoked in the panel, sent as X-API-Key or Bearer, active plan required
Own pricesSent one at a time or up to 2,000 at once, without credits

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 example 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 on every POST. When price.apply arrives, write the price in your own system and call POST /actions/{id}/confirm. Opportunities and the briefing are served by GET /insights/, GET /opportunities/ and GET /briefings/latest.

API and webhooks: what developers ask

What can our software read from the API?

Tracked products with current prices, 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?

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 reverted prices (price.apply, price.revert) and a ready briefing (briefing.ready); failed deliveries are retried with growing pauses.

How do we check the signature?

Take the X-4Pricing-Timestamp value and the raw body, compute the HMAC-SHA256 of “<timestamp>.<request body>” with the webhook secret from your account, add the sha256= prefix and compare the result with X-4Pricing-Signature before acting on the request.

What is in a price.apply event, and what should we do with 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. Write 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 plug-in for our ERP or point-of-sale system?

No. The REST API, the signed webhook and the CSV product list are the pieces your team or an integrator works with. Direct writing without any system of yours happens 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 4pricing's figures into your own software

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