Skip to main content

Base URL

EnvironmentURL
Productionhttps://api.pixusglobal.com
Staginghttps://staging.pixusglobal.com
The Staging environment is currently under maintenance and may be unstable.

Authentication

All routes require a Bearer token in the Authorization header:
Authorization: Bearer <token>

Content Negotiation

FormatContent-TypeAcceptDescription
JSONapplication/jsonapplication/jsonDefault, compatible
msgpackapplication/msgpackapplication/msgpackBinary, more efficient
msgpack is recommended for server-to-server integration where performance is a priority.

Available endpoints

Quotes

MethodRouteDescription
GET/client/quoteGenerate a trade quote
Quotes expire in 5 seconds. The quoteId must be used to create the order before expiration.

Orders

MethodRouteDescription
POST/client/orderCreate a buy order
GET/client/ordersList orders with filters
GET/client/orders/:idGet order by ID
GET/client/orders/:id/trackingTrack cryptocurrency delivery

Order statuses

StatusDescription
pendingOrder created, awaiting payment
partialPartial payment received
paidFully paid
withdrawnCrypto sent to destination wallet
settledFully settled

Financial balance

MethodRouteDescription
GET/client/balanceGet financial summary
Returns:
  • Fiat balance (BRL) and crypto balance (USDT)
  • Credit limit total, used, and available
  • canWithdraw flag indicating withdrawal eligibility

Webhooks

MethodRouteDescription
POST/client/webhook/configConfigure webhook
GET/client/webhook/configGet configuration
GET/client/webhook/:id/logsLogs for a specific webhook
GET/client/webhook/logsAll webhook logs

Webhook events

EventDescription
quoteNew quote generated
orderNew order created
deposit_fiatFiat deposit (PIX) received
deposit_cryptoCrypto deposit received
withdrawal_fiatFiat withdrawal (PIX) sent
withdrawal_cryptoCrypto sent to blockchain

Payload format

The webhook sends a POST to the configured URL with the event payload:
{
  "event": "order",
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "amount": 1000,
    "symbol": "USDTBRL",
    "price": "5.4200",
    "side": "BUY",
    "timestamp": "2025-01-15T14:30:00.000Z"
  }
}

Pagination

Listing routes support pagination via query parameters:
ParameterTypeDefaultDescription
limitnumber20Items per page
offsetnumber1Current page

Common error codes

CodeDescription
400Invalid parameters or expired quote
401Missing or invalid token
403No permission for the resource
404Resource not found
500Internal server error