Plaxswap Checkout API
What the hosted checkout page calls. No key; the payer's browser.
What the hosted checkout page calls. No key; the payer's browser.
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/plaxswap-com:plaxswap-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: Plaxswap Checkout API
version: 1.0.0
summary: Quote and create crypto swaps that pay out straight to your user's address.
description: 'JSON over HTTPS. Coin amounts are decimal strings in coin units ("0.015"), never floats. US dollar values are numbers. Times are ISO 8601 in UTC.
A coin on one network is a method, with an id such as btc, eth-base or usdt-tron: use those ids for from and to.
Partners: send your API key in x-api-key (or Authorization: Bearer) and the end user''s public IP address in x-user-ip, so the country rules apply to that person. Requests without a key act as a regular visitor with no commission.
Errors: every error is { "error": { "code", "message", "details"? } } with a matching HTTP status. The message is plain English and safe to show.
Rate limits are per IP address (the end user''s for partners): each operation lists its limit in x-rate-limit. Going over returns 429 rate_limited.
Sandbox: a build in sim mode simulates every chain. POST /api/dev/deposit and POST /api/dev/mine move test orders forward there (not part of this API).'
contact:
email: support@plaxswap.com
servers:
- url: https://plaxswap.com
description: This deployment
security: []
tags:
- name: Checkout
description: What the hosted checkout page calls. No key; the payer's browser.
paths:
/api/v1/checkout/{id}:
get:
operationId: getCheckout
summary: The hosted checkout's view of a payment
description: Used by plaxswap.com/checkout/. No secrets and no merchant address.
tags:
- Checkout
parameters:
- $ref: '#/components/parameters/PaymentId'
responses:
'200':
description: What the payer sees.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutView'
'404':
description: not_found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
x-rate-limit: 240 per minute
/api/v1/checkout/{id}/quote:
post:
operationId: quoteCheckout
summary: How much to send with one coin
tags:
- Checkout
parameters:
- $ref: '#/components/parameters/PaymentId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutQuoteRequest'
responses:
'200':
description: The amount to send and its parts. Nothing is reserved.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutQuote'
'400':
description: invalid_input, amount_out_of_range.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: not_found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: no_route, payment_closed, payment_busy, coin_unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
x-rate-limit: 15 per minute
/api/v1/checkout/{id}/pay:
post:
operationId: payCheckout
summary: Pay with a coin
description: Creates an ordinary variable-rate order for the amount asked, paying the merchant's address. Checkout is closed in countries under sanctions or high risk, with no limits by country; sanctions and wallet screening and the travel rule still apply.
tags:
- Checkout
parameters:
- $ref: '#/components/parameters/PaymentId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutPayRequest'
responses:
'201':
description: The order and the updated checkout.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutPayResponse'
'400':
description: invalid_input, terms_required, amount_out_of_range.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: not_found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: no_route, payment_closed, payment_busy.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited, velocity_limit.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'451':
description: jurisdiction_blocked.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- {}
- accountCookie: []
x-rate-limit: 10 per minute
/api/v1/checkout/{id}/simulate:
post:
operationId: simulateCheckout
summary: 'Test mode: the checkout''s outcome buttons'
tags:
- Checkout
parameters:
- $ref: '#/components/parameters/PaymentId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutSimulateRequest'
responses:
'200':
description: The checkout after the outcome.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutView'
'400':
description: invalid_outcome.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: 'forbidden: a live payment.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: not_found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: already_simulated.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
x-rate-limit: 20 per minute
components:
schemas:
PaymentFee:
type: object
properties:
bps:
type: integer
description: 'Basis points: 100 = 1%.'
paidBy:
type: string
enum:
- merchant
- customer
amount:
type: string
description: In the receive coin.
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
required:
- bps
- paidBy
- amount
CheckoutAsk:
type: object
properties:
method:
$ref: '#/components/schemas/MethodRef'
amount:
type: string
description: Send exactly this much.
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
remaining:
type: string
description: Still to send after what arrived.
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
orderId:
type: string
depositAddress:
type:
- string
- 'null'
description: null while an identity check must come first, or once the payment is closed.
depositMemo:
type:
- string
- 'null'
kycRequired:
type: boolean
required:
- method
- amount
- remaining
- orderId
- depositAddress
- depositMemo
- kycRequired
Error:
type: object
description: Every error has this shape, with an HTTP status code that matches.
properties:
error:
type: object
properties:
code:
type: string
description: Stable, machine-readable code, for example "quote_expired".
message:
type: string
description: Plain English, safe to show to the person.
details:
description: Extra data for some errors, for example { field } or { min, max }.
required:
- code
- message
required:
- error
DepositStatus:
type: string
enum:
- pending
- processing
- review
- settling
- settled
- refund
- refunding
- refunded
- frozen
- failed
CheckoutView:
type: object
properties:
trackingUrl:
type: string
description: Public single-page payment and tracking link.
format: uri
receiveMode:
type: string
enum:
- selected
- original
receiveLockedAt:
type:
- string
- 'null'
format: date-time
id:
type: string
livemode:
type: boolean
status:
$ref: '#/components/schemas/PaymentStatus'
merchant:
type: object
properties:
name:
type: string
website:
type:
- string
- 'null'
required:
- name
- website
orderId:
type:
- string
- 'null'
description:
type:
- string
- 'null'
amount:
type: string
currency:
type: string
receive:
$ref: '#/components/schemas/MethodRef'
receiveAmount:
type: string
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
fee:
$ref: '#/components/schemas/PaymentFee'
expiresAt:
type: string
format: date-time
returnUrl:
type:
- string
- 'null'
cancelUrl:
type:
- string
- 'null'
options:
type: array
items:
$ref: '#/components/schemas/CheckoutOption'
ask:
anyOf:
- $ref: '#/components/schemas/CheckoutAsk'
- type: 'null'
paidFraction:
type: number
description: Share of the amount asked that arrived, 0 to 1 (more when overpaid).
late:
type: boolean
overpaid:
type: boolean
underReview:
type: boolean
transactions:
type: array
items:
$ref: '#/components/schemas/PaymentTransaction'
receivedBalances:
type: array
items:
type: object
properties:
method:
$ref: '#/components/schemas/MethodRef'
amount:
type: string
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
required:
- method
- amount
testOutcomes:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/TestOutcome'
required:
- trackingUrl
- receiveMode
- receiveLockedAt
- id
- livemode
- status
- merchant
- orderId
- description
- amount
- currency
- receive
- receiveAmount
- fee
- expiresAt
- returnUrl
- cancelUrl
- options
- ask
- paidFraction
- late
- overpaid
- underReview
- transactions
- receivedBalances
- testOutcomes
CheckoutRoute:
type: string
description: 'same: the coin the merchant receives, passed on. uniswap / swapkit: converted.'
enum:
- same
- uniswap
- swapkit
CheckoutOption:
type: object
properties:
method:
$ref: '#/components/schemas/MethodRef'
route:
$ref: '#/components/schemas/CheckoutRoute'
available:
type: boolean
reason:
type:
- string
- 'null'
required:
- method
- route
- available
- reason
MethodRef:
type: object
properties:
id:
type: string
assetId:
type: string
networkId:
type: string
label:
type: string
decimals:
type: integer
memoRequired:
type: boolean
required:
- id
- assetId
- networkId
- label
- decimals
- memoRequired
CheckoutQuoteRequest:
type: object
properties:
from:
type: string
description: The coin the payer would send.
required:
- from
PaymentStatus:
type: string
enum:
- pending
- confirming
- paid
- partially_paid
- expired
- cancelled
- failed
CheckoutQuote:
type: object
properties:
method:
$ref: '#/components/schemas/MethodRef'
route:
$ref: '#/components/schemas/CheckoutRoute'
payAmount:
type: string
description: Send exactly this much.
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
lines:
type: array
items:
type: object
properties:
label:
type: string
usd:
type: number
required:
- label
- usd
description: Its parts in US dollars.
totalUsd:
type: number
description: What the amount to send is worth now, in US dollars.
minAmount:
type: string
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
maxAmount:
type: string
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
required:
- method
- route
- payAmount
- lines
- totalUsd
- minAmount
- maxAmount
CheckoutPayRequest:
type: object
properties:
customer:
type: object
properties:
name:
type: string
maxLength: 120
email:
type: string
maxLength: 254
format: email
note:
type: string
maxLength: 500
additionalProperties: false
from:
type: string
description: The coin the payer sends, for example btc.
refundAddress:
type: string
description: Where coins go back if they cannot be used.
refundMemo:
type: string
acceptTerms:
type: boolean
const: true
required:
- customer
- from
- acceptTerms
PaymentTransaction:
type: object
properties:
id:
type: string
orderId:
type: string
status:
$ref: '#/components/schemas/DepositStatus'
payCurrency:
$ref: '#/components/schemas/MethodRef'
receiveCurrency:
$ref: '#/components/schemas/MethodRef'
amount:
type: string
description: What the payer sent, in payCurrency.
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
txid:
type:
- string
- 'null'
txUrl:
type:
- string
- 'null'
format: uri
receivedAmount:
type:
- string
- 'null'
description: What it gave you, in the receive coin, once it reached you.
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
payoutTxid:
type:
- string
- 'null'
description: The transfer to your address.
payoutTxUrl:
type:
- string
- 'null'
format: uri
late:
type: boolean
description: It arrived after the payment expired.
detectedAt:
type: string
format: date-time
settledAt:
type:
- string
- 'null'
format: date-time
required:
- id
- orderId
- status
- payCurrency
- receiveCurrency
- amount
- txid
- txUrl
- receivedAmount
- payoutTxid
- payoutTxUrl
- late
- detectedAt
- settledAt
TestOutcome:
type: string
enum:
- paid
- partially_paid
- overpaid
- late
- expired
- failed
CheckoutSimulateRequest:
type: object
properties:
outcome:
$ref: '#/components/schemas/TestOutcome'
required:
- outcome
CheckoutPayResponse:
type: object
properties:
orderId:
type: string
orderToken:
type:
- string
- 'null'
description: The order's token, for the payer's browser.
checkout:
$ref: '#/components/schemas/CheckoutView'
required:
- orderId
- orderToken
- checkout
parameters:
PaymentId:
name: id
in: path
required: true
description: Payment id.
schema:
type: string
pattern: ^pay_[0-9a-z]{16}$
securitySchemes:
partnerKey:
type: apiKey
in: header
name: x-api-key
description: Partner API key, pxk_<prefix>_<secret>. Created in the admin console and shown once. A wrong or switched-off key gets 401 invalid_api_key.
partnerBearer:
type: http
scheme: bearer
description: 'The same API key as Authorization: Bearer pxk_<prefix>_<secret>.'
merchantBearer:
type: http
scheme: bearer
description: 'Payment gateway merchant key as Authorization: Bearer pxs_live_<prefix>_<secret> (or pxs_test_... for test mode). Shown once at sign-up.'
merchantCookie:
type: apiKey
in: cookie
name: px_merchant
description: 'Merchant owner session after Google or Telegram login. Writes also require x-px-merchant: 1 and the site Origin. API keys cannot manage accounts, credentials or withdrawals.'
merchantKey:
type: apiKey
in: header
name: x-api-key
description: The same merchant key in x-api-key.
accountCookie:
type: apiKey
in: cookie
name: px_acct
description: The browser's account key (HttpOnly). Set by POST /api/v1/account or /api/v1/account/restore.
externalDocs:
url: https://plaxswap.com/developers
description: Guides, flows and the widget