Legacy: Retrieve an onramp
curl --request GET \
--url https://api.daya.co/v1/onramps/{id} \
--header 'X-Api-Key: <x-api-key>'import requests
url = "https://api.daya.co/v1/onramps/{id}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.daya.co/v1/onramps/{id}', 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.daya.co/v1/onramps/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>"
],
]);
$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.daya.co/v1/onramps/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-api-key>")
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.daya.co/v1/onramps/{id}")
.header("X-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/onramps/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"id": "750e8400-e29b-41d4-a716-446655440000",
"type": "PERMANENT",
"customer_id": "650e8400-e29b-41d4-a716-446655440000",
"provisioning_status": "ACTIVE",
"developer_fee": {
"percentage": "2.5"
},
"settlement": {
"mode": "ONCHAIN",
"asset": "USDC",
"chain": "BASE",
"destination_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
},
"virtual_account": {
"account_number": "1234567890",
"account_name": "Daya-John Doe",
"bank_name": "Wema Bank"
},
"created_at": "2026-01-10T12:00:00Z"
}
{
"id": "850e8400-e29b-41d4-a716-446655440000",
"type": "TEMPORARY",
"customer_id": "660e8400-e29b-41d4-a716-446655440000",
"provisioning_status": "ACTIVE",
"amount": "50000.50",
"rate_id": "550e8400-e29b-41d4-a716-446655440000",
"rate_expires_at": "2026-01-14T15:30:00Z",
"developer_fee": {
"percentage": "2.5"
},
"settlement": {
"mode": "ONCHAIN",
"asset": "USDC",
"chain": "SOLANA",
"destination_address": "7EcDhSYGxXyscszYEp35KHN8vvw3svAuLKTzXwCFLtV"
},
"virtual_account": {
"account_number": "9876543210",
"account_name": "Daya - user@example.com",
"bank_name": "Wema Bank",
"expires_at": "2026-01-14T15:30:00Z"
},
"created_at": "2026-01-14T15:05:00Z"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Invalid onramp ID format",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Onramp not found",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
Onramps
Legacy: Retrieve an onramp
Legacy route for retrieving an NGN receive flow
GET
/
v1
/
onramps
/
{id}
Legacy: Retrieve an onramp
curl --request GET \
--url https://api.daya.co/v1/onramps/{id} \
--header 'X-Api-Key: <x-api-key>'import requests
url = "https://api.daya.co/v1/onramps/{id}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.daya.co/v1/onramps/{id}', 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.daya.co/v1/onramps/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <x-api-key>"
],
]);
$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.daya.co/v1/onramps/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-api-key>")
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.daya.co/v1/onramps/{id}")
.header("X-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/onramps/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"id": "750e8400-e29b-41d4-a716-446655440000",
"type": "PERMANENT",
"customer_id": "650e8400-e29b-41d4-a716-446655440000",
"provisioning_status": "ACTIVE",
"developer_fee": {
"percentage": "2.5"
},
"settlement": {
"mode": "ONCHAIN",
"asset": "USDC",
"chain": "BASE",
"destination_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
},
"virtual_account": {
"account_number": "1234567890",
"account_name": "Daya-John Doe",
"bank_name": "Wema Bank"
},
"created_at": "2026-01-10T12:00:00Z"
}
{
"id": "850e8400-e29b-41d4-a716-446655440000",
"type": "TEMPORARY",
"customer_id": "660e8400-e29b-41d4-a716-446655440000",
"provisioning_status": "ACTIVE",
"amount": "50000.50",
"rate_id": "550e8400-e29b-41d4-a716-446655440000",
"rate_expires_at": "2026-01-14T15:30:00Z",
"developer_fee": {
"percentage": "2.5"
},
"settlement": {
"mode": "ONCHAIN",
"asset": "USDC",
"chain": "SOLANA",
"destination_address": "7EcDhSYGxXyscszYEp35KHN8vvw3svAuLKTzXwCFLtV"
},
"virtual_account": {
"account_number": "9876543210",
"account_name": "Daya - user@example.com",
"bank_name": "Wema Bank",
"expires_at": "2026-01-14T15:30:00Z"
},
"created_at": "2026-01-14T15:05:00Z"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Invalid onramp ID format",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Onramp not found",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
Overview
Retrieve an onramp through the legacy compatibility route. New integrations should useGET /v1/funding-accounts/{id}.
Authentication
Your merchant API key
Path Parameters
Onramp ID (UUID format)Example:
750e8400-e29b-41d4-a716-446655440000Request Examples
curl --request GET \
--url https://api.daya.co/v1/onramps/750e8400-e29b-41d4-a716-446655440000 \
--header 'X-Api-Key: YOUR_API_KEY'
const response = await fetch(
'https://api.daya.co/v1/onramps/750e8400-e29b-41d4-a716-446655440000',
{
headers: {
'X-Api-Key': 'YOUR_API_KEY'
}
}
);
const onramp = await response.json();
import requests
response = requests.get(
'https://api.daya.co/v1/onramps/750e8400-e29b-41d4-a716-446655440000',
headers={'X-Api-Key': 'YOUR_API_KEY'}
)
onramp = response.json()
Response
Unique onramp identifier (UUID)
Onramp type:
TEMPORARY or PERMANENTAssociated customer ID (UUID)
Virtual account provisioning status:
PENDING, ACTIVE, or FAILEDExpected deposit amount in NGN. Always present for temporary onramps (required at creation). Not present for permanent onramps. Decimal string.Example:
"50000.50"Associated rate identifier (temporary onramps only)
When the locked rate expires (temporary onramps only)
Developer fee percentage used for deposits received through this onramp.
Show developer_fee properties
Show developer_fee properties
Configured percentage as a decimal string.
When the onramp was created (ISO 8601 timestamp)
Success Responses
{
"id": "750e8400-e29b-41d4-a716-446655440000",
"type": "PERMANENT",
"customer_id": "650e8400-e29b-41d4-a716-446655440000",
"provisioning_status": "ACTIVE",
"developer_fee": {
"percentage": "2.5"
},
"settlement": {
"mode": "ONCHAIN",
"asset": "USDC",
"chain": "BASE",
"destination_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
},
"virtual_account": {
"account_number": "1234567890",
"account_name": "Daya-John Doe",
"bank_name": "Wema Bank"
},
"created_at": "2026-01-10T12:00:00Z"
}
{
"id": "850e8400-e29b-41d4-a716-446655440000",
"type": "TEMPORARY",
"customer_id": "660e8400-e29b-41d4-a716-446655440000",
"provisioning_status": "ACTIVE",
"amount": "50000.50",
"rate_id": "550e8400-e29b-41d4-a716-446655440000",
"rate_expires_at": "2026-01-14T15:30:00Z",
"developer_fee": {
"percentage": "2.5"
},
"settlement": {
"mode": "ONCHAIN",
"asset": "USDC",
"chain": "SOLANA",
"destination_address": "7EcDhSYGxXyscszYEp35KHN8vvw3svAuLKTzXwCFLtV"
},
"virtual_account": {
"account_number": "9876543210",
"account_name": "Daya - user@example.com",
"bank_name": "Wema Bank",
"expires_at": "2026-01-14T15:30:00Z"
},
"created_at": "2026-01-14T15:05:00Z"
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Invalid onramp ID format",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Onramp not found",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
Next Steps
List Onramps
List all onramps with filters
List Deposits
View deposits for an onramp
⌘I