Plutocracy
MercuryJuno
  • Welcome
  • Our Apps
  • Mercury
    • Quick Start
    • Endpoints
  • Juno
    • Quick Start
    • Related Products
      • Widgets
    • Preorder/Backorder
  • Cupid
    • Quick Start
    • Endpoints
  • Working with Plutocracy
    • Development Philosophy
    • Support
Powered by GitBook
On this page
  • Local Development
  • Authentication Token
  • Make Your First Request
  1. Mercury

Quick Start

PreviousOur AppsNextEndpoints

Last updated 11 months ago

Make your first request to the View REST API in minutes!

This API is intended for client-side use and is read-only.

Local Development

Authentication Token

Every instance of Mercury generates a token that can be passed to Mercury to fetch a respective stores content from anywhere.

Visit the settings area of Mercury to see your BypassToken.

In production apps, approved domain names are used to fetch a store's content, but a token can also be specified.

Bypass Tokens are useful for local development - however, abuse of a token will result in it being removed and a new token generated.

Production Mercury relies on the Origin verification method over the token method

Make Your First Request

To make your first request, send a request to the /search endpoint. This will fetch some of your published products.

To make the request, use a networking client of your choice or follow this example using :

fetch('https://mercury.plutocracy.io/search/{term}?' + new URLSearchParams({
    bypassToken: 'your token'
}))
  .then(response => response.json())
  .then(data => console.log(data));

Got it working? Nice!

Do something cool with your newfound powers.

Struggle city?

, We're here to make it easy, our chat is manned by people who can answer your problem on the spot.

fetch
Send Help

Search

Learn how Mercury Search can be customised to meet your merchant's particular requirements

Collections

Super speedy collections with configurable Facets and Inline Merchandising

Products

Pulling products from our latency optimised products

No GraphQL required

Endpoints

Get the skinny on every endpoint available to you.