Swipelux

Pay-out

Send crypto to external addresses

For complete API specification, see the API Reference.

Send cryptocurrency from customer wallets to any external wallet address.

Create Payout

Not authenticatedAuthenticate first
POST/v1/payout
Copy as

Sends cryptocurrency from a customer's wallet to an external blockchain address.

Request Format

The payout endpoint accepts two identifier formats in from.id:

FormatExampleRail Required?Description
Wallet IDwal_abc123NoDirectly specify the wallet. Rail is inferred from the wallet's network.
Customer IDcus_abc123YesThe system finds the customer's wallet matching the specified from.rail.

Using Wallet ID is simpler — you don't need to specify the rail since it's inferred from the wallet itself.

Examples

With Wallet ID (recommended):

{
  "from": {
    "id": "wal_abc123",
    "amount": 50
  },
  "to": {
    "id": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "rail": "polygon"
  }
}

With Customer ID:

{
  "from": {
    "id": "cus_abc123",
    "rail": "polygon",
    "amount": 50
  },
  "to": {
    "id": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "rail": "polygon"
  }
}

Common Errors

StatusErrorDescription
400Insufficient balance for this payoutCustomer wallet balance is too low for the requested payout amount
400Rail is required when using customer IDMust specify from.rail when using a customer ID
400Off-ramp will be supported soonFiat rails are not yet supported for payouts (crypto only)
404Wallet not foundSpecified wallet ID does not exist
404Customer not foundSpecified customer ID does not exist
404No wallet found for specified railCustomer does not have a wallet on the specified blockchain network
400Invalid currencySpecified currency is not supported

On this page