Boostify Hub automatic pricing refresh — integration kit

One-time integration is required on each reseller website. Boostify cannot rewrite caches on independent websites. Saving a rate on Boostify changes fresh API prices and the customer-scoped pricingVersion immediately. The frontend helper checks your backend every5seconds while visible and on return; network delays and API limits can extend that time. This is near-real-time display refresh, not a guarantee of zero latency.

1. Keep the Boostify API key in a server environment variable. Install BoostifyPricingClient.php outside your public website. Create a private0700 cache directory. Never send the key to browsers or put it in URLs.
2. In your existing authenticated catalogue endpoint, create BoostifyPricingClient(getenv('BOOSTIFY_API_KEY'), '/private/path/boostify-catalogues') and call catalogue(resource, parameters). This returns pricingVersion, expires and data. The client checks pricing.version before reusing any saved catalogue, so a changed rate invalidates cached prices. It verifies the revision header, handles a rate changing during transmission, and fails rather than silently serving an unverified old rate. Only GET catalogues are allowed; it cannot buy or read wallets/inboxes.
3. Apply your own retail markup to the returned data if needed, preserving pricingVersion. Send Cache-Control: private, no-store from your endpoint. Bind cache storage to the integration key and pricingVersion. Keep quote/order routes separate: always get a fresh quote and explicit customer confirmation before purchasing.
4. Import boostify-price-refresh.mjs in your frontend. Call createBoostifyPriceRefresh({getRequest:()=>({url:'/YOUR-authenticated-catalogue-endpoint?resource=...',key:'CURRENT-SERVICE-COUNTRY-TERM'}),apply:payload=>updateVisiblePrices(payload.data),onError:error=>showPriceVerificationNotice(error.message)}).start(). updateVisiblePrices must repaint the active list/estimate without clearing search, country, selected service, URL or quantity. Mark the display as awaiting verification on errors and prevent checkout until a fresh quote verifies it.
5. Refresh when country/server/term changes by calling refresh(). Give each selection a distinct key so late responses cannot overwrite the current view. Do not cache the endpoint in a service worker, CDN or page cache. The helper uses same-origin authenticated requests and no-store, pauses hidden tabs, deduplicates pending requests and backs off on failures.

Version endpoint: GET https://boostifyhub.org/api/v1/index.php?resource=pricing.version
Authorization: Bearer YOUR_API_KEY
Read-only keys can use it. Normal API access restrictions and request limits apply. Share server-side catalogue caches across users of the same reseller integration, avoid needless polling, and tune traffic for your approved capacity. Full authentication is still required for every call.

Catalogue and quote responses include X-Boostify-Pricing-Version. The opaque version reflects only this customer's effective rates and relevant website pricing configuration. It does not reveal supplier names, other customers' rates or your API key. Changes to an unrelated customer's rates do not invalidate your prices.

The kit does not change your markup, wallet, order history or website design. Existing completed purchases are unaffected. Keep your existing server-side quoting, quantity/stock checks and payment confirmation controls.


Telegram Premium and current prices (25 October 2026)
Use catalogue("premium.catalogue") for subscription plans, and accounts.catalogue for account products across platforms. Social server identifiers are standard, economy and express; older integration identifiers remain accepted.

Premium recipient checks, quotes and confirmations belong on your authenticated backend using the documented premium.recipient, premium.quote and premium.confirm resources. This price-refresh kit deliberately does not submit orders or debit wallets. Confirm the returned recipient name and username with the customer before purchase. Recheck pricing.version before cached reads and request a fresh quote after price changes. Premium and account sales have separate pricing categories; do not assume they share the social-boosting price rule.


Current service coverage and future updates
Use the same catalogue() and browser-refresh flow for every supported category:
  catalogue('boosting.catalogue', ['server'=>'standard','platform'=>'instagram'])
  catalogue('accounts.catalogue')
  catalogue('premium.catalogue')
  catalogue('stars.catalogue')
  catalogue('stars.catalogue', ['quantity'=>250])
  catalogue('numbers.global.services', ['country'=>COUNTRY_ID])
  catalogue('rentals.global.price', ['country'=>COUNTRY_ID,'service'=>SERVICE_ID,'days'=>DAYS])
Read server IDs and resourcePrefixes from GET servers instead of inferring them from dashboard labels. Premium/Stars providers are selected within Boostify; integrations retain the same premium.* and stars.* resources. Routine price, reseller-rule, quantity-limit, stock, delivery-term and shared-handler fixes do not require a new key or a new API version.

Consume the returned fields on every refresh: IDs, prices, min/max counts, product/platform, checkoutEnabled/orderingEnabled and availability where present. Do not hard-code catalogue products, discounts, currency rates or stock flags. Quantity plus/minus controls, swipe animations and layout changes are Boostify UI features; render your own controls and enforce the returned limits. The API returns NGN wallet amounts; show a separate retail currency only using your own explicit conversion logic.

The client includes custom Stars quantity in the cache identity and automatically refreshes account display snapshots when refreshRecommended is returned. Its short cache lifetime still expires when the pricing revision is unchanged, so supplier catalogue/stock updates are re-read. Pricing revision changes invalidate prices; they are not a per-SMS or order-status event stream. Read owned/inbox/status resources separately. Always request a fresh quote before confirmation, and recover the original reference after an uncertain purchase result.

Install this updated kit once and wire apply() to repaint your visible prices and availability. Existing integrations using direct HTTP requests can implement this same contract. Boostify cannot force changes into independent site caches or change your retail markup. A new service family or a breaking field/route change may need integration work; this mechanism covers compatible data and business-rule updates, not arbitrary future features. No customer pricing webhook is currently available.

VPN and proxies: vpn.catalogue, vpn.quote, vpn.confirm, vpn.status, vpn.orders. Catalogue GETs are supported by this connector. Add this service family to your interface once. Accounts stays one catalogue; store complete opaque string product IDs, group by platform, obey stock and quantity fields. deliveryState describes email progress separately from provider completion. Credentials are emailed to the saved chosen address; never expose secrets in logs.


Graduated boosting prices (1 November2026)
The smallOrderPricing object is the complete small-order rule. A graduated policy has minimumTotal, normalFrom, currency NGN and nearest_kobo rounding. First round the normal API rate * quantity /1000 to kobo (do not reapply any reseller discount). For base below normalFrom, estimate minimumTotal + round(base * (normalFrom - minimumTotal) / normalFrom,2); otherwise keep base. The default30-to50scale maps8to33.20,15to36,30to42,50to50. Never use only minimumOrderTotal for a graduated estimate. A null policy and zero minimumOrderTotal disable the adjustment. Consume the returned policy on refresh; policy edits change pricingVersion. Use the fresh boosting.quote.total for payment. No other service family or supplier cost uses this curve. Existing route identifiers and keys stay compatible; independent reseller interfaces need to implement the returned graduated policy for matching estimates.


Server availability (20 November 2026)
Use $client->serverStatus() for GET servers.status. It returns administrative availability, not provider uptime. All servers, including disabled ones, appear in serverStatus; active directory maps contain only acceptingNewOrders servers. Read the stable public server and resourcePrefix, not a visual position. availabilityVersion and pricingVersion change after server, section or service availability edits. catalogue() automatically rechecks the effective revision, so paused-server lists return fresh items:[], available:false and orderingEnabled:false. Your apply() must REPLACE each list, including empty lists, remove unavailable selections and block new checkout. Never keep an old item merely because the new list is empty. A transport error means availability is unverified; disable new checkout until refreshed. No webhook or push callback exists.

Continue polling status/history/owned/inbox with saved order references even when a server is disabled. Do not delete historical orders. Price/stock reads and new purchase requests remain blocked with 409 for paused servers. List GETs return 200 with clearCachedCatalogue:true. Poll the status/version at refreshAfterSeconds, currently5seconds, through one shared backend result per key; obey429 Retry-After. A re-enabled server changes the version and is read afresh. This kit changes no retail markup and cannot update independent reseller UI until installed and wired to repaint availability.


ADDITIONAL ACCOUNT / VPN PRODUCTS AND RECIPIENT-PRICED TELEGRAM OPTIONS (2026-11-24)
The same native handlers, shared NGN markups and your effective reseller rules apply. Existing public route names are unchanged. Product identifiers are opaque. Refresh pricing.version and replace catalogues, including empty lists; recheck quantity and stock at fresh quote/confirmation. Withdrawn stock must not remove historical order tracking or a saved chosen delivery email.

Telegram premium.catalogue and stars.catalogue may add quoteOnlyItems beside the existing numeric-priced items array. These options have price:null and priceRequiresRecipient:true. NEVER convert null to zero or offer them as free. Explicitly update your UI to show Check recipient for price, or ignore this new field until your UI supports it.
Use the exact returned service ID on premium.recipient / stars.recipient, supplying recipient and Stars quantity where applicable. The response includes an NGN price, recipient identity and a five-minute verificationToken. Show the intended recipient and price, obtain confirmation, then request premium.quote / stars.quote with that token, recipient, service, quantity where required, and a fresh requestKey. Confirm only the resulting reviewed reference and total. Reverify changed/expired recipient, plan, quantity or price.
Any unavailableItems or orderingEnabled:false/checkoutEnabled:false entries are browse-only and must not take payment. Provider completion is separate from verified access-detail delivery; don't create duplicate purchases while credentials are pending. No external reseller UI is changed automatically by this kit.
