API Reference

Base URL https://app.satsrail.com. Merchant endpoints, under /api/v1/m/, take a secret key (sk_live_…, or sk_test_… in test mode) as Authorization: Bearer. Public endpoints, under /api/v1/pub/, take a publishable key (pk_live_…) where they need one.

This page draws the full reference with JavaScript. The same reference as text, with every parameter, request field and example response: Markdown. The document it is drawn from: OpenAPI 3.0 (JSON). Every page of these docs in one file: llms-full.txt.

Merchant API

MethodPathSummary
POST/api/v1/m/access/verifyverify
GET/api/v1/m/api_tokens/{id}/usageGet API token usage
GET/api/v1/m/catalogshow
POST/api/v1/m/invoices/generategenerate
GET/api/v1/m/invoices/{id}show
GET/api/v1/m/invoices/{id}/qrqr
GET/api/v1/m/invoices/{id}/statusstatus
GET/api/v1/m/media_keysindex
POST/api/v1/m/media_keyscreate
GET/api/v1/m/media_keys/{id}show
PATCH/api/v1/m/media_keys/{id}update
DELETE/api/v1/m/media_keys/{id}destroy
POST/api/v1/m/media_keys/{id}/clear_old_keyclear_old_key
GET/api/v1/m/media_keys/{id}/keykey
POST/api/v1/m/media_keys/{id}/productslink_products
DELETE/api/v1/m/media_keys/{id}/products/{product_id}unlink_product
POST/api/v1/m/media_keys/{id}/rotaterotate
GET/api/v1/m/merchantshow
GET/api/v1/m/ordersindex
POST/api/v1/m/orderscreate
GET/api/v1/m/orders/{id}show
PATCH/api/v1/m/orders/{id}update
DELETE/api/v1/m/orders/{id}destroy
POST/api/v1/m/payment_requestscreate
GET/api/v1/m/payment_requests/{id}show
GET/api/v1/m/payment_requests/{id}/statusstatus
GET/api/v1/m/paymentsindex
GET/api/v1/m/payments/{id}show
GET/api/v1/m/productsList products
POST/api/v1/m/productsCreate a product
GET/api/v1/m/products/{id}Get a product
PATCH/api/v1/m/products/{id}Update a product
DELETE/api/v1/m/products/{id}Archive a product
POST/api/v1/m/products/{product_id}/media_keyslink_to_product
DELETE/api/v1/m/products/{product_id}/media_keys/{id}unlink_from_product
POST/api/v1/m/sessionscreate
POST/api/v1/m/sessions/activateactivate
GET/api/v1/m/walletsindex
GET/api/v1/m/wallets/{id}show
GET/api/v1/m/webhooksindex
POST/api/v1/m/webhookscreate
GET/api/v1/m/webhooks/{id}show
PATCH/api/v1/m/webhooks/{id}update
DELETE/api/v1/m/webhooks/{id}destroy

Public API

MethodPathSummary
POST/api/v1/pub/access/verifyverify
GET/api/v1/pub/categoriesindex
GET/api/v1/pub/channelsindex
POST/api/v1/pub/checkout_sessionscreate
GET/api/v1/pub/creatorsindex
GET/api/v1/pub/exchangesindex
GET/api/v1/pub/subscription_plansindex