API Documentation
REST API for accepting payments, creating invoices, managing withdrawals and webhooks.
Getting Started
Overview
Explore the Paymos Merchant API for invoices, token balances, signed webhooks, and withdrawals across 13 supported blockchain networks.
Quick Start
Create a project, issue a Payment key, sign the first invoice request, open Hosted Checkout, and verify the paid webhook end to end.
Payment Flow
Follow an invoice from creation through asset selection, payment detection, confirmation, expiry, and the final webhook your system consumes.
Testing
Test invoice and withdrawal state changes with dedicated test keys, signed webhooks, and simulation endpoints that move no real funds.
API
Authentication
Authenticate every Merchant API request with HMAC-SHA256: required headers, canonical payload construction, timestamps, and replay protection.
API Keys
Create Payment or Payout API keys, understand their scopes and prefixes, rotate credentials safely, and separate test from live access.
Base URL
Use the Paymos Merchant API base URL for both test and live requests, select the environment by key prefix, and keep one integration path.
Supported Currencies
Check which of the 13 blockchain networks support USDT, USDC, USD1, DAI, and gold-backed XAUT before enabling assets in a project.
Error Handling
Handle Merchant API errors consistently: response envelope, HTTP status groups, machine-readable codes, request limits, and retry guidance.
Error Codes
Handle Merchant API failures with stable machine-readable codes, field-level validation details, and documented recovery paths.
General
Invoices
POST
Create Invoice
Create an invoice to accept a crypto payment. Two flows: direct crypto (token and network fixed) and fiat (customer picks the token on the hosted checkout).
GET
List Invoices
List invoices with strict status and date filters, navigate forward with cursor pagination, and reconcile results without duplicate pages.
POST
Confirm Payment
Lock the selected token and network for a fiat-priced invoice from a custom checkout, then display the returned payment details safely.
GET
Get Invoice
Retrieve one invoice by ID, inspect its payment and confirmation state, and reconcile the response with your own external order reference.
POST
Cancel Invoice
Cancel an open invoice before the customer locks an asset, understand the allowed state transition, and handle the cancellation response.
POST
Simulate Invoice Payment
Move a sandbox invoice through a payment outcome and test the same lifecycle and webhooks as a confirmed on-chain transfer.
Withdrawals
POST
Create Withdrawal
Create a withdrawal from a token balance to a whitelisted wallet, choose the payout network, sign the request, and track its status.
GET
List Withdrawals
List withdrawals with strict filters and forward cursor pagination, review destination networks, and reconcile transfer history reliably.
GET
Get Withdrawal
Retrieve a withdrawal by ID, inspect its current state and transaction reference, and reconcile completion with the signed webhook.
POST
Cancel Withdrawal
Cancel a pending withdrawal before MPC signing begins, understand which states allow cancellation, and process the updated response.
POST
Simulate Withdrawal Completion
Complete a pending sandbox withdrawal without broadcasting a transaction and verify payout webhooks end to end.
Balance
Webhooks
Webhooks
Connect Paymos to your backend with signed, environment-isolated webhook endpoints and a complete delivery workflow.
Webhook events
Handle all 13 Paymos webhook event types with explicit resource state and terminal-state semantics.
Webhook payloads
Read the versioned webhook envelope and the complete invoice or withdrawal resource snapshot in data.
Verify signatures
Verify the X-Webhook-Signature header with HMAC-SHA256, compare signatures safely, enforce timestamp rules, and support secret rotation.
Delivery and retries
Design for 11 webhook delivery attempts over roughly 16 hours, deduplicate repeated events, inspect failures, and replay after recovery.
Test webhooks
Exercise the real sandbox invoice and webhook delivery path from the interactive documentation playground.
Plugins
WooCommerce Plugin
Install the official Paymos plugin for WooCommerce, connect project credentials securely, test checkout, and update orders by signed webhook.
WHMCS Plugin
Add stablecoin payments to WHMCS invoices, connect the preconfigured Paymos package, test the webhook, and keep existing provisioning rules.
OpenCart Plugin
Install the official Paymos extension for OpenCart, connect the store without copying secrets, and validate payment status updates in test mode.
Easy Digital Downloads Plugin
Connect Paymos to Easy Digital Downloads, test a stablecoin order, verify signed payment updates, and release files only after confirmation.
CS-Cart Plugin
Install the official Paymos add-on for CS-Cart and Multi-Vendor, connect a project, verify signed status updates, and test an order before launch.
Magento 2 Plugin
Install the Paymos module for Magento 2 or Adobe Commerce, connect test and live credentials, and verify the order-to-invoice status flow.
Shopware 6 Plugin
Install the Paymos plugin for Shopware 6, enable it per sales channel, validate signed transaction updates, and switch modes without reinstalling.
PrestaShop Plugin
Add Paymos to PrestaShop 8 or 9, download a configured module, verify the signed callback, and test the Payment accepted order transition.
Integrations
Hosted Checkout
Redirect customers to Hosted Checkout or embed the payment page in a restricted iframe, then fulfil orders from the signed confirmation webhook.
JavaScript Widget SDK
Add a configurable Pay button to any web page, choose the amount source and theme, and open Paymos checkout without building a backend form.
Terminal
Use a project link as an in-person stablecoin terminal on a phone or tablet, enter the amount, show a QR code, and track confirmation.
Server SDKs
Use official Paymos Merchant API clients for JavaScript/TypeScript, Python, PHP, Go, .NET, Java, Ruby, and Rust with typed requests and HMAC signing.