SitesPlaced Webhooks API
Endpoints that receive order events.
Endpoints that receive order events.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/sitesplaced-com:sitesplaced-com-webhooks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SitesPlaced Developer Webhooks API
version: v1
summary: Catalogue, checkout, orders, tracking and webhooks for one SitesPlaced store.
description: 'Two uses. **Headless:** a custom website with no backend of its own uses SitesPlaced for its catalogue, checkout and orders.
**Connected:** a seller who already runs WooCommerce or Shopify keeps that shop, and a plugin copies every order into SitesPlaced. The other platform stays in charge of payment, stock and cancellation; SitesPlaced sends back only the shipping status and the tracking details.
**Keys.** Send the key in a header: `Authorization: Bearer ` (`X-Api-Key: ` is also accepted). A key in the URL is refused. A secret key (`sp_live_sk_…`) is for servers only; sent from a web browser it is refused with 403. A publishable key (`sp_live_pk_…`) may sit in browser code: it can hold only `products:read`, `checkout:write` and `tracking:read`, and works only from the websites on its allowed list. A connection key is the secret key a plugin receives when a shop connects; routes marked "connection key" accept only such a key.
**Conventions.** JSON in, JSON out, UTF-8, bodies up to 1 MB. Dates are ISO 8601 in UTC. Money is a plain number in the order''s currency (`1499.5`). Lists are paged with a cursor and come newest first. Every response carries `X-Request-Id`, the `X-RateLimit-*` headers and `Cache-Control: no-store`.
**Rate limits.** 60 requests a minute per secret key on the free plan, 300 on a paid store plan. Publishable keys: 600 / 3000 a minute per key and 30 / 60 per visitor IP. Over the limit: 429 with `Retry-After` (seconds).
Human-readable reference: https://sitesplaced.com/developers/api'
contact:
name: SitesPlaced
url: https://sitesplaced.com/contact
servers:
- url: https://sitesplaced.com/api/v1
description: Always the apex host, never www.
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: Webhooks
description: Endpoints that receive order events.
paths:
/webhooks:
get:
operationId: listWebhooks
tags:
- Webhooks
summary: List webhook endpoints
description: Secret key. Permission `webhooks:write`. The signing secret is never listed.
responses:
'200':
description: The store's endpoints.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookList'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
'503':
$ref: '#/components/responses/Unavailable'
post:
operationId: createWebhook
tags:
- Webhooks
summary: Register a webhook endpoint
description: 'Secret key. Permission `webhooks:write`. `url` must be public https. The `secret` in the response is shown once. Deliveries are attempted once, with an 8 second timeout, and redirects are not followed: poll `GET /orders?updated_since=` as a backstop.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookCreate'
responses:
'201':
description: The endpoint, with its signing secret.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookCreated'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'409':
$ref: '#/components/responses/Conflict'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
'503':
$ref: '#/components/responses/Unavailable'
/webhooks/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
delete:
operationId: deleteWebhook
tags:
- Webhooks
summary: Remove a webhook endpoint
description: Secret key. Permission `webhooks:write`.
responses:
'200':
description: Removed.
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookDeleted'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
'503':
$ref: '#/components/responses/Unavailable'
webhooks:
orderEvent:
post:
operationId: onOrderEvent
tags:
- Webhooks
summary: An order event, delivered to your endpoint
description: 'One attempt, 8 second timeout, redirects not followed. Check `X-SitesPlaced-Signature` before trusting the body: it is `sha256=` followed by the hex HMAC-SHA256 of the raw body, made with the `whsec_…` secret shown once when the endpoint was created. Compare in constant time.'
security: []
parameters:
- name: X-SitesPlaced-Event
in: header
required: true
schema:
type: string
enum:
- order.created
- order.paid
- order.confirmed
- order.fulfilled
- order.shipped
- order.out_for_delivery
- order.completed
- order.cancelled
- order.updated
- name: X-SitesPlaced-Delivery
in: header
required: true
schema:
type: string
- name: X-SitesPlaced-Signature
in: header
required: true
description: '`sha256=<hex HMAC-SHA256 of the raw body>`'
schema:
type: string
pattern: ^sha256=[0-9a-f]{64}$
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
'200':
description: Answer with any 2xx status within 8 seconds.
components:
responses:
RateLimited:
description: '`rate_limited`. Wait for `Retry-After` seconds.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: rate_limited
message: Plain words.
request_id: req_…
Forbidden:
description: '`forbidden`. The key may not do this: a secret key sent from a browser, a publishable key from a website not on its list, the wrong kind of key, or a missing permission.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: forbidden
message: Plain words.
request_id: req_…
Conflict:
description: '`conflict`.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: conflict
message: Plain words.
request_id: req_…
PayloadTooLarge:
description: '`payload_too_large`. Bodies can be up to 1 MB.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: payload_too_large
message: Plain words.
request_id: req_…
Unavailable:
description: '`unavailable`.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: unavailable
message: Plain words.
request_id: req_…
BadRequest:
description: '`invalid_request`. The request is malformed or a field has a bad value; `param` names the field.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: invalid_request
message: Plain words.
request_id: req_…
Unauthorized:
description: '`unauthorized`. The key is missing, wrong or revoked.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: unauthorized
message: Plain words.
request_id: req_…
InternalError:
description: '`internal_error`.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: internal_error
message: Plain words.
request_id: req_…
NotFound:
description: '`not_found`.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: not_found
message: Plain words.
request_id: req_…
schemas:
WebhookList:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Webhook'
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
enum:
- invalid_request
- unauthorized
- forbidden
- not_found
- conflict
- payload_too_large
- unprocessable
- rate_limited
- internal_error
- unavailable
message:
type: string
description: Plain words, for a person.
param:
type: string
description: The field at fault, when there is one.
examples:
- totals.total
request_id:
type: string
examples:
- req_…
Webhook:
type: object
required:
- id
- url
- events
properties:
id:
type: string
format: uuid
url:
type: string
format: uri
events:
type: array
items:
$ref: '#/components/schemas/WebhookEvent'
WebhookCreate:
type: object
required:
- url
properties:
url:
type: string
format: uri
description: Must be public https.
events:
type: array
items:
$ref: '#/components/schemas/WebhookEvent'
examples:
- - order.created
WebhookDeleted:
type: object
required:
- id
- deleted
properties:
id:
type: string
format: uuid
deleted:
type: boolean
const: true
WebhookCreated:
allOf:
- $ref: '#/components/schemas/Webhook'
- type: object
required:
- secret
properties:
secret:
type: string
description: Shown once.
examples:
- whsec_…
WebhookEvent:
type: string
enum:
- order.created
- order.paid
- order.confirmed
- order.fulfilled
- order.shipped
- order.out_for_delivery
- order.completed
- order.cancelled
- order.updated
- '*'
headers:
X-RateLimit-Reset:
description: When the limit resets, in unix seconds.
schema:
type: integer
X-RateLimit-Remaining:
description: Requests left in the current minute.
schema:
type: integer
X-Request-Id:
description: Identifies this call. Quote it when asking for help.
schema:
type: string
examples:
- req_…
X-RateLimit-Limit:
description: Requests allowed per minute for this key.
schema:
type: integer
Retry-After:
description: Seconds to wait before trying again.
schema:
type: integer
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: '`Authorization: Bearer sp_live_sk_…` (or `sp_live_pk_…` on routes that accept a publishable key). A key in the URL is refused.'
apiKeyHeader:
type: apiKey
in: header
name: X-Api-Key
description: The same key, in `X-Api-Key`. Also accepted.
externalDocs:
description: API reference
url: https://sitesplaced.com/developers/api