New guideHow to start selling on Pigu.lt: seller account, requirements, first listingHow to start selling on Pigu.ltRead the guide ››
API

Read and update your catalog from your own system

A REST API over HTTPS that accepts and returns JSON. Use it for products, suppliers, sales channels and imports.

What the API can do

The API gives access to the same data as the panel. With an API key you can work with these resources:

  • /api/products for the product catalog
  • /api/suppliers for suppliers and their feeds
  • /api/sales-channels for connected channels
  • /api/imports for supplier imports

The API also serves the WooCommerce plugin, Shopify authorization and public export feeds that Google Shopping, Facebook, marketplaces and price comparison sites read.

Base URL and format

All requests go to https://panel.sync2sys.com/api over HTTPS. Requests that write data send JSON and need the header Content-Type: application/json. Public feed endpoints can return XML, CSV or JSON.

Authentication

Create an API key in the panel under Settings, API Keys. Keys start with s2s_. Send the key in the Authorization header:

Authorization: Bearer s2s_your_api_key

The header X-API-Key and the query parameter api_key also work, but the Authorization header is recommended. Keep keys private: a key gives access to your account data. Panel sessions and the WooCommerce plugin use JWT tokens instead.

Request limits

Each API key has its own limit in a sliding 60-second window. The limit depends on the plan of your organization.

PlanRequests per minuteUse case
Sandbox (free)30Testing and building integrations
Control, €39 per month60Standard catalog and order synchronization
Optimize, €99 per month180Frequent synchronization and medium stores
Scale, €199 per month600High-volume data streams

Every response to a key returns X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds until the window resets). Public feed endpoints allow 30 requests per 60 seconds per IP address.

First request

List the products in your catalog:

curl -i -X GET "https://panel.sync2sys.com/api/products" \
  -H "Authorization: Bearer s2s_your_api_key_here"

Check that a key works and see the current plan:

GET /api/auth/account-status
Authorization: Bearer s2s_your_api_key

{
  "connected": true,
  "email": "admin@yourstore.com",
  "plan": "sandbox",
  "organizationName": "My Store"
}

Need something the API does not do yet? Talk to us, or read the documentation.

Get an API key on the free plan

Free Sandbox plan with 30 requests per minute. No card, no time limit.