Skip to main content
A ramp payment records the order and its progress. Create one by confirming a quote or creating a payment directly.

Fields that matter

Read

Get a payment to read its current state. List payments to browse recent orders. The list supports status and direction filters with cursor pagination; see the reference for parameters and response fields.

Idempotency

Send idempotency_key on confirm and create. A retry with the same key returns the original payment instead of creating another. Use your own order id.

Funding an off-ramp

If the workspace wallet holds the stablecoins, Onstacks moves them when the payment is created. If the funds are coming from elsewhere, funding_instructions gives the deposit address; the payment stays pending until the deposit is confirmed, then moves to processing.

Display the returned QR code

Off-ramp payment responses include funding_instructions.qr_code when a deposit wallet address is available. Use this value directly as an image source; you do not need to generate a QR code in your API integration.
Off-ramp response fragment
Onstacks returns a provider-supplied HTTPS image URL or supported image data URL when available. Otherwise, it generates a PNG data URL beginning with data:image/png;base64,. Generated QR codes encode only the exact deposit address; display the required network and amount alongside the image. The field is included in create, quote-confirmation, idempotent retry, get, and list responses, including previously created payments. Payment webhooks include it in data.payment.funding_instructions.qr_code. If there is no deposit address or QR generation is unavailable, qr_code is omitted. Keep the wallet address visible and offer a copy action. See the payment API reference for the response contract.

Using an embedded widget instead?

For a partner-funded widget such as HyperFX’s integration, obtain the receiving wallet from instruction.address in onTransferRequired, not from this API’s funding_instructions field. These are different integration contracts. Follow Partner-funded withdrawals for the complete example, amounts, wallet transfer and acknowledgement steps. The embedded widget continues to generate its own QR code in the frontend. The returned API image is for your direct API integration.