Bahamas price monitoring · API & webhooks

Price API and webhooks for Bahamian business systems

If your business already runs stock, ordering or till software, 4pricing's figures can feed into it through a REST API: followed products, price records, group comparisons, opportunities and the daily briefing, plus endpoints for sending your own prices and daily sales. A signed webhook posts to your address when an alert fires, when a price is approved or reversed (price.apply, price.revert) and when the briefing is ready (briefing.ready). There are no ready-made connectors for ERPs, WMSs or shop platforms; your developer or an integrator builds the link.

What your developer can build on the API

JSON endpoints for prices

Read current prices of followed products from authenticated REST endpoints returning JSON. The OpenAPI 3.1 specification is published, so client code can be generated rather than written by hand.

Price records on request

Pull the stored record of any followed product into your own reporting, for instance to compare a line across hurricane season and the Christmas run-up. Reading data uses no credits.

Webhook for alert events

When an alert fires (above or below a level, a percentage drop, back in stock or a rival undercutting you), your endpoint receives a signed POST with a JSON body. It is not a feed of every price change.

Your sales behind the values

POST /sales/bulk accepts daily sales per product, up to 2 000 rows, idempotent per product and day. Opportunity values are based on those figures; without them the value reads “—” rather than a guess.

Opportunities and the briefing

GET /insights/ returns findings with evidence and price proposals, GET /opportunities/ a summary that keeps the sales-based value apart from the market estimate, and GET /briefings/latest the newest briefing.

Price actions and confirmation

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

Keys you control

Create API keys in the panel and revoke them whenever you need to; an active plan is required. Send the key in the X-API-Key header, or as a Bearer token if your tools prefer that.

Your prices and the proposal

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; after approval it reaches you through the webhook.

Signed, retried deliveries

Each delivery carries X-4Pricing-Signature (sha256= plus the HMAC-SHA256 of “<timestamp>.<body>”) and X-4Pricing-Timestamp, and failed deliveries are retried with growing pauses. Events: alerts, price.apply, price.revert and briefing.ready.

What the 4pricing API and webhook provide.

FeatureWhat you get
REST APIJSON from authenticated endpoints, 60 requests per minute per account, OpenAPI 3.1 specification
Price recordsStored readings of followed products; reading data uses no credits
WebhookA signed POST to one address per account, retried on failure; events: alerts, price.apply, price.revert, briefing.ready
SalesPOST /sales/bulk takes up to 2 000 rows, idempotent per product and day
Opportunities and briefingGET /insights/, GET /opportunities/ and GET /briefings/latest
Price actionsGET /actions/, then POST /actions/{id}/confirm once a price.apply is applied
API keysCreated and revoked in the panel, sent in X-API-Key, active plan required
Own pricesSent one by one or in batches of up to 2 000, no credits used

Create an API key in the panel and call the REST endpoints, within 60 requests per minute per account. Credits are used only when a shop page has to be fetched, for example when a product or group member is added from an address, or on a refresh; reading data and pushing your own prices are free. For events, register your webhook address and check the signature on every POST. When price.apply arrives, set the price in your system and call POST /actions/{id}/confirm. Opportunities and the briefing can be read whenever your software needs them.

Questions about the API and webhooks

What can our software read through the API?

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

How is the webhook delivered?

Each account registers one address. 4pricing posts a JSON body signed with HMAC-SHA256, carrying the X-4Pricing-Signature and X-4Pricing-Timestamp headers, on alerts, on approved or reversed prices (price.apply, price.revert) and when the briefing is ready (briefing.ready). Failed deliveries are retried with growing pauses; it is not a stream of every price change.

How do we verify a webhook signature?

Each POST includes X-4Pricing-Timestamp and X-4Pricing-Signature. The signature is sha256= followed by the HMAC-SHA256 of “<timestamp>.<request body>”, calculated with the webhook secret from your account. Recalculate it on your side and compare before acting on the event.

What is inside price.apply, and what do we do with it?

A JSON body with the event, 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. Your system sets the price and then calls POST /api/v1/pricing/actions/{action_id}/confirm; only then does the action move from “sent” to “applied”. price.revert has the same shape and needs the same step.

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

No. The REST API, the signed webhook and the CSV download of the product list are the pieces your team or an integrator works with. Prices are applied directly, without your system, 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 require an active plan.

Do API calls consume credits?

Only those that make 4pricing fetch a shop page, such as adding a product or group member from an address, or a refresh. Reading data and pushing your own prices cost nothing.

Bring 4pricing's figures into your own software

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