Fetch an onramp
curl --request GET \
--url https://api.globalstack.io/v1/onramps/{onrampId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.globalstack.io/v1/onramps/{onrampId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.globalstack.io/v1/onramps/{onrampId}', 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.globalstack.io/v1/onramps/{onrampId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.globalstack.io/v1/onramps/{onrampId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.globalstack.io/v1/onramps/{onrampId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/onramps/{onrampId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Onramp fetched successfully",
"code": "ok",
"data": {
"id": "onr_01KPBH802PXQQXT8ASJGE0QX2K",
"reference": "INV-2026-001",
"status": "awaiting_deposit",
"quote_id": "quo_01KPBK123456789ABCDEFG",
"rate_source": "quoted",
"customer": {
"id": "cust_seed_alice",
"type": "individual",
"name": "Alice Johnson",
"email": "alice.seed@globalstack.mock",
"tier": "tier_2",
"created_at": "2026-04-16T16:14:08.000Z",
"updated_at": "2026-04-16T16:14:08.000Z"
},
"wallet": {
"id": "wal_seed_alice_usdc",
"currency": "USDC",
"label": "USDC Wallet"
},
"source_amount": "10000.00",
"source_currency": "NGN",
"destination_currency": "USDC",
"rate": "0.000000",
"deposit_instruction": {
"version": 1,
"type": "fiat",
"accountName": "GLOBALSTACK COLLECTIONS",
"accountNumber": "0123456789",
"bankName": "Access Bank",
"bankCode": "000014",
"expiresAt": "2026-06-03T16:14:08.000Z",
"depositReference": "GSVRYTZ496CM",
"message": "Include the deposit_reference in the transfer narration/reference so funds are correctly allocated to this deposit."
},
"metadata": {
"order_id": "ord_demo_001"
},
"created_at": "2026-04-16T16:16:03.000Z",
"updated_at": "2026-04-16T16:16:03.000Z",
"payment_instrument": null,
"destination_amount": "0.000000",
"received_amount": "100.00",
"rate_locked_until": null,
"failure_reason": null,
"failure_reason_message": null,
"split": {
"type": "percentage",
"fee_bearer": "merchant",
"status": "in_progress",
"shares": [
{
"wallet_id": "wal_01HXYZ",
"percentage": "60.00",
"amount": "10.000000"
}
],
"legs": [
{
"wallet_id": "wal_01HXYZ",
"amount": "60.000000",
"fee": "1.50",
"is_remainder": true,
"status": "processing",
"hold_reason": "tier_limit"
}
],
"split_id": "spl_01HXYZ",
"reason": "insufficient_delivered_amount"
}
},
"meta": {
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}Onramps
Fetch an onramp
Fetches a single onramp by its external id (prefixed onr_).
Path parameter
id— required. The onramp’s external id (e.g.onr_01KPBH802PXQQXT8ASJGE0QX2K). A value that is not a validonr_…id returns400. An id that does not exist returns404.
Example
GET /v1/onramps/onr_01KPBH802PXQQXT8ASJGE0QX2K
Split
split is null unless the quote carried a split. Otherwise it reports how the split went:
status:in_progress: the split hasn’t been applied yet, or isn’t decided for every recipient. The deposit that applies it can arrive aftersuccess. If the operation ends without a deposit the split could apply to, it staysin_progressand nosplit.completedevent follows.completed: every recipient has an outcome. A held share counts: check each leg. A leg held fortier_limitcan still move tosuccesslater;split.leg_releasedannounces it.skipped: the split couldn’t apply (reason:insufficient_delivered_amountorshares_round_to_zero); the whole amount stayed on the destination wallet.
shares: the split as attached to the quote.fee_bearer: who absorbed a provider fee,merchantorall_proportional.legs: every wallet credited, with itsamount(what it received, net of its part of any provider fee), itsfee(that part; zero when there was none) andstatus(processing,success,heldorfailed). The destination’s remainder is a leg withis_remainder: true(there’s none when the shares take the whole amount), and a recipient whose share rounds to zero gets no leg. Aheldleg has ahold_reason:tier_limit(the recipient is over their limit; the share is released when the limit allows it, for example after the customer is verified at a higher tier),payin_frozenorpayin_disabled.
split.completed carries the block when the split is completed or skipped. It isn’t sent
again when a held leg is released later: split.leg_released reports that.
GET
/
v1
/
onramps
/
{onrampId}
Fetch an onramp
curl --request GET \
--url https://api.globalstack.io/v1/onramps/{onrampId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.globalstack.io/v1/onramps/{onrampId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.globalstack.io/v1/onramps/{onrampId}', 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.globalstack.io/v1/onramps/{onrampId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.globalstack.io/v1/onramps/{onrampId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.globalstack.io/v1/onramps/{onrampId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/onramps/{onrampId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Onramp fetched successfully",
"code": "ok",
"data": {
"id": "onr_01KPBH802PXQQXT8ASJGE0QX2K",
"reference": "INV-2026-001",
"status": "awaiting_deposit",
"quote_id": "quo_01KPBK123456789ABCDEFG",
"rate_source": "quoted",
"customer": {
"id": "cust_seed_alice",
"type": "individual",
"name": "Alice Johnson",
"email": "alice.seed@globalstack.mock",
"tier": "tier_2",
"created_at": "2026-04-16T16:14:08.000Z",
"updated_at": "2026-04-16T16:14:08.000Z"
},
"wallet": {
"id": "wal_seed_alice_usdc",
"currency": "USDC",
"label": "USDC Wallet"
},
"source_amount": "10000.00",
"source_currency": "NGN",
"destination_currency": "USDC",
"rate": "0.000000",
"deposit_instruction": {
"version": 1,
"type": "fiat",
"accountName": "GLOBALSTACK COLLECTIONS",
"accountNumber": "0123456789",
"bankName": "Access Bank",
"bankCode": "000014",
"expiresAt": "2026-06-03T16:14:08.000Z",
"depositReference": "GSVRYTZ496CM",
"message": "Include the deposit_reference in the transfer narration/reference so funds are correctly allocated to this deposit."
},
"metadata": {
"order_id": "ord_demo_001"
},
"created_at": "2026-04-16T16:16:03.000Z",
"updated_at": "2026-04-16T16:16:03.000Z",
"payment_instrument": null,
"destination_amount": "0.000000",
"received_amount": "100.00",
"rate_locked_until": null,
"failure_reason": null,
"failure_reason_message": null,
"split": {
"type": "percentage",
"fee_bearer": "merchant",
"status": "in_progress",
"shares": [
{
"wallet_id": "wal_01HXYZ",
"percentage": "60.00",
"amount": "10.000000"
}
],
"legs": [
{
"wallet_id": "wal_01HXYZ",
"amount": "60.000000",
"fee": "1.50",
"is_remainder": true,
"status": "processing",
"hold_reason": "tier_limit"
}
],
"split_id": "spl_01HXYZ",
"reason": "insufficient_delivered_amount"
}
},
"meta": {
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}Response
Onramp fetched successfully