Swipelux
Rails/Our OnRamp/Server-side Integration

Create Orders

Create Swipelux OnRamp orders programmatically using our REST API. Choose the integration approach that best fits your needs:

Integration Options

Quick Example

Here's a basic order creation request:

{
"amounts": {
"from": {
  "amount": 100,
  "currency": "USD"
},
"to": {
  "currency": "USDC"
}
},
"externalId" : "your-system-reference-order-id",
"user": {
"email": "user@example.com",
"phone": "+1234567890"
},
"targetAddress": "0x1234567890abcdef..."
}

Response:

{
  "acsUrl": "https://track.swipelux.com?specificSettings={...}"
}

Next Steps

After creating order:

  • Redirect User: Use the ascUrl to redirect the user to the payment stage

On this page