Get off ramp transaction
curl --request GET \
--url 'https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey='import requests
url = "https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"createdAt": "<string>",
"destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientDetails": {
"city": "<string>",
"country": "<string>",
"emailAddress": "<string>",
"familyName": "<string>",
"givenName": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"postalCode": "<string>",
"state": "<string>",
"street": "<string>"
},
"routingDetails": {
"bankCountryCode": "<string>",
"bankName": "<string>"
}
},
"destinationAmount": "<string>",
"destinationCurrency": {
"code": "<string>",
"name": "<string>",
"type": "<string>"
},
"feeBreakdown": {
"networkFees": [
{
"amount": "<string>",
"currency": "<string>"
}
],
"partnerFees": [
{
"amount": "<string>",
"currency": "<string>"
}
],
"deductedFee": {
"amount": "<string>",
"currency": "<string>"
}
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": {
"wallet": {
"walletAddress": "<string>",
"walletAddressTag": "<string>"
},
"network": {
"icon": "<string>",
"name": "<string>"
}
},
"sourceAmount": "<string>",
"sourceCurrency": {
"network": {
"code": "<string>",
"icon": "<string>",
"name": "<string>"
},
"notAllowedCountries": [
"<unknown>"
],
"notAllowedUSStates": [
"<unknown>"
]
}
}Virtual Accounts
Get off ramp transaction
GET
/
v1
/
virtual-accounts
/
transactions
/
offramp
/
{transactionId}
Get off ramp transaction
curl --request GET \
--url 'https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey='import requests
url = "https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moonpay.com/v1/virtual-accounts/transactions/offramp/{transactionId}?apiKey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"createdAt": "<string>",
"destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientDetails": {
"city": "<string>",
"country": "<string>",
"emailAddress": "<string>",
"familyName": "<string>",
"givenName": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"postalCode": "<string>",
"state": "<string>",
"street": "<string>"
},
"routingDetails": {
"bankCountryCode": "<string>",
"bankName": "<string>"
}
},
"destinationAmount": "<string>",
"destinationCurrency": {
"code": "<string>",
"name": "<string>",
"type": "<string>"
},
"feeBreakdown": {
"networkFees": [
{
"amount": "<string>",
"currency": "<string>"
}
],
"partnerFees": [
{
"amount": "<string>",
"currency": "<string>"
}
],
"deductedFee": {
"amount": "<string>",
"currency": "<string>"
}
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": {
"wallet": {
"walletAddress": "<string>",
"walletAddressTag": "<string>"
},
"network": {
"icon": "<string>",
"name": "<string>"
}
},
"sourceAmount": "<string>",
"sourceCurrency": {
"network": {
"code": "<string>",
"icon": "<string>",
"name": "<string>"
},
"notAllowedCountries": [
"<unknown>"
],
"notAllowedUSStates": [
"<unknown>"
]
}
}Authorizations
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
Pattern:
[^\/#\?]+?Response
200 - application/json
Pattern:
\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?Show child attributes
Show child attributes
Maximum string length:
255Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum string length:
255Show child attributes
Show child attributes
Available options:
FundsReviewInProgress, ConversionInProgress, PayoutInProgress, Completed, Failed, RejectedAml, RejectedFraud, RejectedMinAmount ⌘I