MarketplaceHub Docs Docs

Getting started

Mint a credential in the app, exchange it for a token with client_credentials, and make your first authenticated call. Includes the full scope list.

The MarketplaceHub API is a server-to-server REST API over your own account's data. It exposes your orders, your catalogue and the health of your marketplace connections. It does not proxy the marketplaces themselves and never exposes their credentials.

1. Mint a credential

In the app, open the account menu, then API → Credentials. Give the credential a name, tick the permissions it needs, and create it.

The secret is shown once. It is stored hashed, so nobody — including us — can recover it afterwards. Copy it somewhere safe before you leave the page; if you lose it, create a new credential and delete the old one.

Grant only the permissions the integration actually uses. A system that reads orders and never writes should hold OrdersRead and nothing else — that way a leaked credential cannot cancel anybody's order.

2. Get a token

The API uses OAuth 2.0 client_credentials. There is no user, no browser and no redirect — your server exchanges the credential for a token directly.

curl -X POST https://identity.marketplacehub.com/connect/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id=mh_YourClientId" \
  -d "client_secret=YourSecret" \
  -d "scope=OrdersRead OrdersWrite"

Ask for the scopes you need, space-separated. The response carries an access_token and an expires_in. Cache the token until shortly before it expires rather than fetching one per request.

3. Call the API

The base URL is https://api.marketplacehub.com. Send the token as a bearer credential.

curl -X POST https://api.marketplacehub.com/api/orders/List \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"Limit": 25}'

That is the whole handshake. If it returns orders, you are integrated.

Mint a credential in the app, exchange it for a bearer token via OAuth 2.0 client_credentials, then call the API with that token 1 Mint a credential app.marketplacehub.com Account menu › API › Credentials client_id + client_secret (secret shown once) 2 Exchange for a token identity.marketplacehub.com POST /connect/token grant_type=client_credentials returns access_token + expires_in — cache it 3 Call the API api.marketplacehub.com Authorization: Bearer {access_token} Only your own account's data — never a marketplace's
Three steps: mint a credential, exchange it for a token, call the API.

Permissions

ScopeGrants
OrdersReadList and read orders
OrdersWriteConfirm, cancel, refund and update orders
InventoryReadRead products, their listings and job status; search marketplace categories and read attribute schemas
InventoryWriteCreate products and push price and quantity changes
MarketplacesReadRead marketplace connections and their health
WebhooksWriteRegister, list and delete outbound webhook subscriptions — see Webhooks

Try it interactively

Swagger UI is a live console against the same API, with the full machine-readable schema behind it. Use it to poke at a request shape; use these pages to understand what the endpoints mean.

What is not here

Connecting and disconnecting marketplaces stays in the app. Those are OAuth journeys with consent screens and redirects, which is not something an API can carry. You can read the state of a connection through the API — see Marketplaces and jobs — but you authorise it in the app.