anyshop docs homeStatusOpen the dashboard

Get started Overview

v1REST, JSON, OpenAPI 3.1

Build on
anyshop.

Products, stock, orders, licenses and webhooks of your store, over one API at api.anyshop.io. Payments go to your own rails; anyshop delivers what was bought, exactly once, and tells your servers.

Your first request. No key needed.
$ curl https://api.anyshop.io/v1
{
  "object": "api",
  "version": "v1",
  "openapi": "https://api.anyshop.io/v1/openapi.json",
  "documentation": "https://docs.anyshop.io"
}

Start here

Every guide runs in test mode first: no money moves.

The rules every call follows

Read these once. Every endpoint in the reference behaves the same way, so its page only lists what is its own.

  • Authentication

    A Bearer API key from Developers, API keys. A test key sees only test mode and cannot change the catalog.

    Authorization: Bearer as_test_...
  • Errors

    Every error has the same body and a 4xx or 5xx status; param names the field at fault.

    { "error": { "type", "code", "message", "param" } }
  • Pagination

    Lists are newest first. Pass the last ID you got as starting_after for the next page.

    ?limit=100&starting_after=ord_...
  • Idempotency

    Send an Idempotency-Key with a write: a retry within 24 hours gets the first answer and runs once.

    Idempotency-Key: 9b1c...
  • Rate limits

    1,000 requests a minute per key. Over it, 429 with Retry-After.

    Retry-After: 12
  • Money and time

    Amounts are integers in minor units of the store currency. Times are ISO 8601, UTC.

    "price": 1999
Authentication

A Bearer API key from Developers, API keys. A test key sees only test mode and cannot change the catalog.

Authorization: Bearer as_test_...More on authentication
Errors

Every error has the same body and a 4xx or 5xx status; param names the field at fault.

{ "error": { "type", "code", "message", "param" } }More on errors
Pagination

Lists are newest first. Pass the last ID you got as starting_after for the next page.

?limit=100&starting_after=ord_...More on pagination
Idempotency

Send an Idempotency-Key with a write: a retry within 24 hours gets the first answer and runs once.

Idempotency-Key: 9b1c...More on idempotency
Rate limits

1,000 requests a minute per key. Over it, 429 with Retry-After.

Retry-After: 12More on rate limits
Money and time

Amounts are integers in minor units of the store currency. Times are ISO 8601, UTC.

"price": 1999More on money and time

API reference

GET /v1/openapi.json