Get started

Authentication

Every API request is made with one of your secret keys, sent in the Authorization header.

Authorization: Bearer sk_live_••••••••••••••••••••••••••••••••••••••••

Requests without a valid key get 401 with code INVALID_API_KEY. If your Selligate account isn’t active, you get 403 MERCHANT_NOT_ACTIVE.

Test and live keys

TestLive
Create keys atsandbox.selligate.com → Developersapp.selligate.com → Developers
Key starts withsk_test_sk_live_
Base URLhttps://sandbox-api.selligate.com/v1https://api-developers.selligate.com/v1
OrdersSandbox: nothing is delivered or paid. Move orders along with Simulate. Deleted after 3 daysReal deliveries

The two environments are completely separate: they have different accounts, and a test key doesn’t work on the live URL.

The sandbox

The sandbox at sandbox.selligate.com runs the same code as live, so it behaves the same way, with a few differences that make testing easy:

Creating and revoking keys

Keep keys safe

!

A secret key can create and cancel orders on your account. Treat it like a password.

Want orders from a website without a server? Use the order form. It uses a public pk_… key that’s safe to put on a web page.