Plaxswap Partner portal API
Your volume, commission, webhook deliveries and withdrawals. Needs your API key.
Your volume, commission, webhook deliveries and withdrawals. Needs your API key.
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-partner-portal-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 Partner portal 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: Partner portal
description: Your volume, commission, webhook deliveries and withdrawals. Needs your API key.
paths:
/api/v1/partner:
get:
operationId: getPartnerDashboard
summary: Your volume, commission, recent orders, webhook deliveries and withdrawals
tags:
- Partner portal
responses:
'200':
description: The dashboard.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerDashboard'
'401':
description: api_key_required, invalid_api_key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- partnerKey: []
- partnerBearer: []
x-rate-limit: 60 per minute
/api/v1/partner/signup:
post:
operationId: requestPartnerKey
summary: Get a partner API key
description: No API key needed. The key in the answer is shown once. It works at once within the starter limits in the answer (a deposit over them waits for review); we can raise them on request.
tags:
- Partner portal
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerSignupRequest'
example:
name: Crypto Forum
website: https://forum.example.com
commissionBps: 50
acceptTerms: true
responses:
'201':
description: The partner and its key, shown once.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerSignupResponse'
'400':
description: bad_request (details.field names the field), bot_check_required, bot_check_failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: signup_closed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: 'rate_limited: 3 requests per hour.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
x-rate-limit: 3 per hour
/api/v1/partner/orders:
get:
operationId: listPartnerOrders
summary: Orders made with your API key, newest first, 25 per page
tags:
- Partner portal
parameters:
- name: cursor
in: query
required: false
description: nextCursor from the previous page.
schema:
type: string
responses:
'200':
description: A page of orders.
content:
application/json:
schema:
$ref: '#/components/schemas/PartnerOrdersResponse'
'401':
description: api_key_required, invalid_api_key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- partnerKey: []
- partnerBearer: []
x-rate-limit: 60 per minute
/api/v1/partner/withdrawals:
get:
operationId: listPartnerWithdrawals
summary: Your commission withdrawals
tags:
- Partner portal
responses:
'200':
description: Withdrawals.
content:
application/json:
schema:
$ref: '#/components/schemas/WithdrawalsResponse'
'401':
description: api_key_required, invalid_api_key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- partnerKey: []
- partnerBearer: []
x-rate-limit: 60 per minute
post:
operationId: withdrawPartnerCommission
summary: Withdraw all available commission as one stablecoin payout
description: Your own connection's country rule applies. The address is validated and screened like any payout. You get withdrawal.sent and withdrawal.completed webhooks.
tags:
- Partner portal
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WithdrawRequest'
responses:
'201':
description: The withdrawal.
content:
application/json:
schema:
$ref: '#/components/schemas/WithdrawResponse'
'400':
description: invalid_input, invalid_method, invalid_address, invalid_memo, below_minimum.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: api_key_required, invalid_api_key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: address_not_allowed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: method_unavailable, rate_unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'451':
description: jurisdiction_blocked.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- partnerKey: []
- partnerBearer: []
x-rate-limit: 5 per minute
components:
schemas:
WithdrawalView:
type: object
properties:
id:
type: string
status:
type: string
description: queued, sent (broadcast), completed (confirmed) or failed (never sent; the earnings are released).
enum:
- queued
- sent
- completed
- failed
amountUsd:
type: string
pattern: ^\d+\.\d{6}$
examples:
- '12.345600'
method:
$ref: '#/components/schemas/MethodRef'
amount:
type: string
description: Coin amount sent.
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
toAddress:
type: string
toMemo:
type:
- string
- 'null'
txid:
type:
- string
- 'null'
txUrl:
type:
- string
- 'null'
note:
type:
- string
- 'null'
description: Plain-English note while it waits, for example for an operator check.
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
required:
- id
- status
- amountUsd
- method
- amount
- toAddress
- toMemo
- txid
- txUrl
- note
- createdAt
- updatedAt
WithdrawMethod:
type: object
properties:
id:
type: string
assetId:
type: string
networkId:
type: string
label:
type: string
decimals:
type: integer
memoName:
type:
- string
- 'null'
priceUsd:
type: number
required:
- id
- assetId
- networkId
- label
- decimals
- memoName
- priceUsd
PartnerDashboard:
type: object
properties:
partner:
type: object
properties:
id:
type: string
name:
type: string
commissionBps:
type: integer
webhookConfigured:
type: boolean
trustedGeo:
type: boolean
description: 'True when the user IP and country this key sends are believed. False: every user counts as an unknown country and needs an identity check; ask us to verify your key.'
required:
- id
- name
- commissionBps
- webhookConfigured
- trustedGeo
volume:
type: object
properties:
last30d:
$ref: '#/components/schemas/PartnerVolume'
allTime:
$ref: '#/components/schemas/PartnerVolume'
required:
- last30d
- allTime
earnings:
$ref: '#/components/schemas/EarningsTotals'
minWithdrawUsd:
type: number
withdrawMethods:
type: array
items:
$ref: '#/components/schemas/WithdrawMethod'
withdrawals:
type: array
items:
$ref: '#/components/schemas/WithdrawalView'
recentOrders:
type: array
items:
$ref: '#/components/schemas/PartnerOrderRow'
webhooks:
type: array
items:
$ref: '#/components/schemas/WebhookDeliveryView'
description: Recent webhook deliveries.
limits:
type: object
description: Limits for swaps through the key. A deposit over them waits for review.
properties:
maxSwapUsd:
type:
- number
- 'null'
description: 'Largest single swap through the key, in US dollars. null: no limit.'
dailyUsd:
type:
- number
- 'null'
description: 'All deposits through the key in any 24 hours, in US dollars. null: no limit.'
usedTodayUsd:
type: number
description: Deposits through the key in the last 24 hours, in US dollars.
required:
- maxSwapUsd
- dailyUsd
- usedTodayUsd
required:
- partner
- volume
- earnings
- minWithdrawUsd
- withdrawMethods
- withdrawals
- recentOrders
- webhooks
- limits
PartnerOrderRow:
type: object
properties:
id:
type: string
type:
$ref: '#/components/schemas/OrderType'
status:
$ref: '#/components/schemas/OrderStatus'
createdAt:
type: string
format: date-time
from:
$ref: '#/components/schemas/MethodRef'
to:
$ref: '#/components/schemas/MethodRef'
partnerRef:
type:
- string
- 'null'
description: Your own reference, as sent when the order was created.
deposited:
type:
- string
- 'null'
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
received:
type:
- string
- 'null'
pattern: ^\d+(\.\d+)?$
examples:
- '0.015'
settledUsd:
type:
- number
- 'null'
commissionBps:
type: integer
earnedUsd:
type:
- string
- 'null'
pattern: ^\d+\.\d{6}$
examples:
- '12.345600'
required:
- id
- type
- status
- createdAt
- from
- to
- partnerRef
- deposited
- received
- settledUsd
- commissionBps
- earnedUsd
OrderType:
type: string
description: 'fixed: locked price, exact amount. variable: any amount within limits, market rate when it confirms.'
enum:
- fixed
- variable
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
EarningsTotals:
type: object
properties:
earnedUsd:
type: string
description: Everything ever earned.
pattern: ^\d+\.\d{6}$
examples:
- '12.345600'
availableUsd:
type: string
description: Not yet withdrawn.
pattern: ^\d+\.\d{6}$
examples:
- '12.345600'
pendingUsd:
type: string
description: In a withdrawal on its way.
pattern: ^\d+\.\d{6}$
examples:
- '12.345600'
paidUsd:
type: string
description: In withdrawals that completed.
pattern: ^\d+\.\d{6}$
examples:
- '12.345600'
required:
- earnedUsd
- availableUsd
- pendingUsd
- paidUsd
WebhookDeliveryView:
type: object
properties:
id:
type: integer
event:
type: string
status:
type: string
enum:
- pending
- delivered
- failed
attempts:
type: integer
lastCode:
type:
- integer
- 'null'
description: HTTP status your server answered on the last attempt.
lastError:
type:
- string
- 'null'
orderId:
type:
- string
- 'null'
createdAt:
type: string
format: date-time
nextAttemptAt:
type:
- string
- 'null'
format: date-time
required:
- id
- event
- status
- attempts
- lastCode
- lastError
- orderId
- createdAt
- nextAttemptAt
WithdrawalsResponse:
type: object
properties:
withdrawals:
type: array
items:
$ref: '#/components/schemas/WithdrawalView'
required:
- withdrawals
OrderStatus:
type: string
enum:
- waiting
- pending
- processing
- review
- settling
- settled
- refund
- refunding
- refunded
- frozen
- failed
- expired
- cancelled
- multiple
WithdrawResponse:
type: object
properties:
withdrawal:
$ref: '#/components/schemas/WithdrawalView'
required:
- withdrawal
PartnerSignupRequest:
type: object
properties:
name:
type: string
description: Your site or forum name.
minLength: 2
maxLength: 80
website:
type: string
description: https:// address of your site.
maxLength: 200
email:
type: string
description: For partner news.
format: email
maxLength: 200
commissionBps:
type: integer
minimum: 0
maximum: 200
description: Your default commission in basis points (0 to 200 = 0% to 2%). Orders can set their own.
acceptTerms:
type: boolean
description: Must be true.
botCheckToken:
type: string
description: Cloudflare Turnstile token, when MetaResponse.botCheckSiteKey is set.
required:
- name
- acceptTerms
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
PartnerSignupResponse:
type: object
properties:
partnerId:
type: string
name:
type: string
commissionBps:
type: integer
apiKey:
type: string
description: pxk_..., shown once.
pendingApproval:
type: boolean
description: 'false: the key works now, within the limits. true: it works once an admin switches the partner on.'
limits:
type: object
properties:
maxSwapUsd:
type:
- number
- 'null'
description: 'Largest single swap through the key, in US dollars. null: no limit.'
dailyUsd:
type:
- number
- 'null'
description: 'All deposits through the key in any 24 hours, in US dollars. null: no limit.'
required:
- maxSwapUsd
- dailyUsd
required:
- partnerId
- name
- commissionBps
- apiKey
- pendingApproval
- limits
PartnerOrdersResponse:
type: object
properties:
orders:
type: array
items:
$ref: '#/components/schemas/PartnerOrderRow'
nextCursor:
type:
- string
- 'null'
required:
- orders
- nextCursor
WithdrawRequest:
type: object
properties:
methodId:
type: string
description: A stablecoin from withdrawMethods, for example usdt-tron.
address:
type: string
memo:
type:
- string
- 'null'
required:
- methodId
- address
PartnerVolume:
type: object
properties:
settledUsd:
type: number
settledOrders:
type: integer
createdOrders:
type: integer
required:
- settledUsd
- settledOrders
- createdOrders
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