Skip to main content
PATCH
/
v1
/
virtual-accounts
/
onramp
/
{id}
Update on ramp virtual account
curl --request PATCH \
  --url 'https://api.moonpay.com/v1/virtual-accounts/onramp/{id}?apiKey=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "destinationCurrencyCode": "<string>"
}
'
{
  "createdAt": "<string>",
  "customerId": "<string>",
  "destination": {},
  "destinationCurrency": {},
  "id": "<string>",
  "organizationId": "<string>",
  "sourceCurrency": {},
  "status": "pending",
  "type": "auto_on_ramp",
  "updatedAt": "<string>",
  "destinations": [
    "<unknown>"
  ],
  "externalCustomerId": "<string>",
  "source": "<unknown>",
  "sources": [
    "<unknown>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

apiKey
string
query
required

API Key authentication using a publishable API key in the query string. The key is passed as the apiKey query parameter. Publishable keys are safe to expose in client-side code.

Path Parameters

id
string
required
Pattern: [^\/#\?]+?

Body

application/json

UpdateOnRampVirtualAccountBody

destination
object
destinationCurrencyCode
string
Maximum string length: 20

Response

200 - application/json
createdAt
string
required
Pattern: \d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?
customerId
string
required
destination
object
required
destinationCurrency
object
required
id
string
required
organizationId
string
required
sourceCurrency
object
required
status
enum<string>
required
Available options:
pending,
completed,
failed,
manual_review
type
enum<string>
required
Available options:
auto_on_ramp,
auto_off_ramp
updatedAt
string
required
Pattern: \d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?
destinations
any[]
externalCustomerId
string
source
any
sources
any[]