SitesPlaced Checkout API
Prepare a cart on the store's SitesPlaced checkout.
Prepare a cart on the store's SitesPlaced checkout.
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-checkout-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 Checkout 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: Checkout
description: Prepare a cart on the store's SitesPlaced checkout.
paths:
/checkout/sessions:
post:
operationId: createCheckoutSession
tags:
- Checkout
summary: Prepare a cart and get a link to it
description: 'Secret or publishable key. Permission `checkout:write`. Send the shopper to `url`: the cart opens with those lines; prices, stock, payment methods and every checkout guard are SitesPlaced''s own. Up to 50 lines. Unknown or archived products give 422. With a publishable key, `return_url` must be on the key''s allowed websites. The link works for 24 hours.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutSessionRequest'
responses:
'201':
description: The prepared cart.
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/CheckoutSession'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'422':
$ref: '#/components/responses/Unprocessable'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/InternalError'
'503':
$ref: '#/components/responses/Unavailable'
components:
responses:
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_…
Unprocessable:
description: '`unprocessable`.'
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: unprocessable
message: Plain words.
request_id: req_…
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_…
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_…
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_…
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_…
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_…
headers:
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
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
schemas:
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_…
CheckoutSessionRequest:
type: object
required:
- items
properties:
items:
type: array
minItems: 1
maxItems: 50
items:
type: object
required:
- product_id
properties:
product_id:
type: string
format: uuid
quantity:
type: integer
minimum: 1
variant:
type: object
additionalProperties:
type: string
examples:
- Size: M
return_url:
type: string
format: uri
description: With a publishable key, this must be on the key's allowed websites.
CheckoutSession:
type: object
required:
- url
- token
- expires_at
properties:
url:
type: string
format: uri
description: Send the shopper here.
examples:
- https://asha-jewels.sitesplaced.site/cart?restore=cl_…
token:
type: string
examples:
- cl_…
expires_at:
type: string
format: date-time
description: ISO 8601, in UTC.
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