Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Refresh On-Ramp Funding

Refresh an eligible unfunded on-ramp transaction to obtain updated quotes and fiat payment instructions.

Use this only when the customer still needs to fund an existing transaction. It is not a payout retry. Refresh availability depends on the transaction state and the route being enabled; funded or completed transactions cannot be refreshed. For on-ramp, a fresh quote and fiat payment instructions may be returned.

Authentication

Accepts a Ramp API key, business-user JWT or customer JWT. The transaction must belong to that business/customer and environment. Keep API keys on your server.

Create a refresh

POST /api/v1/onramp/:reference/refresh
Authorization: <ramp_secret_key>
Idempotency-Key: 71baf0c3-2a16-45e6-a752-79a27f8c0d09
Content-Type: application/json

{ "sourceReference": "550e8400-e29b-41d4-a716-446655440000" }
  • reference: the original transaction reference (UUID).

  • Idempotency-Key: a new UUID for this intended refresh. Save it before sending.

  • sourceReference: data.fundingRevision.sourceReference from the current refresh read, or the original transaction reference when no revision exists. Copy the actual saved value; do not use the example UUID.

Returns HTTP 201 with the standard success envelope. data.transferDetails contains the current payment instructions and data.fundingRevision describes the refresh result. The transaction reference stays the same.

Read the result after a timeout

GET /v1/onramp/refresh/:reference reads/reconciles the saved allocation. It does not create a new refresh. Include requestId to inspect the exact request; omit it to inspect the current one. A missing request returns 404.

Repeating POST with the same key, source and caller returns the retained request's current result. Changing those values can return 409. Do not rotate the key after a timeout or ask the customer to pay a second time while the outcome is uncertain.

Interpret the result

data.fundingRevision.outcome

Action

allocated

Use the current returned payment instructions and expiry, if this is the active unpaid session.

unknown

Allocation is not confirmed. Keep the order pending and read the same request again; do not show stale instructions or initiate another payment.

selected

Funding has been selected for this order. Track the transaction status; do not collect again.

paid_unapplied

A payment was retained but not selected for completion. Reconcile with support before another action.

Inspect active as well as outcome. A historical request may no longer be the active funding session. A refresh receipt is not proof that the final crypto payout succeeded; use Get status and webhooks.

If refresh is paused or rejected, retain the reference and returned reason. Do not create another transaction until you have checked whether money was received.

Last updated