Get a bulk payment
curl --request GET \
--url https://api.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_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.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_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 => [
"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.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id}"
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.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id}")
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": "200 OK",
"data": {
"bulk_pay_id": "1b0123456789abcdef01234567",
"receipts": [
{
"id": "1reb05f9d5f2791616e3c",
"bulk_pay_id": "1b0123456789abcdef01234567",
"entity": "self",
"user_id": "user@example.com",
"is_fee_incl": false,
"chain": "Sepolia",
"coin": "USDT",
"to_address": "0x2222222222222222222222222222222222222222",
"amount": "10.25",
"memo": "BulkPay",
"est_fee": "0.09",
"act_fee": "0",
"tx_hash": "",
"block_num": 0,
"status": "Processing",
"start_ts_us": 1789992000000000,
"end_ts_us": 0
}
]
}
}<string><string><string><string><string><string><string>History
Get a bulk payment
Returns the ordered individual receipts created by one managed-wallet or self-custodial bulk-payment submission.
GET
/
v1
/
payment
/
onchain
/
bulkpay
/
{bulk_pay_id}
Get a bulk payment
curl --request GET \
--url https://api.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_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.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_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 => [
"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.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id}"
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.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payunifi.com/v1/payment/onchain/bulkpay/{bulk_pay_id}")
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": "200 OK",
"data": {
"bulk_pay_id": "1b0123456789abcdef01234567",
"receipts": [
{
"id": "1reb05f9d5f2791616e3c",
"bulk_pay_id": "1b0123456789abcdef01234567",
"entity": "self",
"user_id": "user@example.com",
"is_fee_incl": false,
"chain": "Sepolia",
"coin": "USDT",
"to_address": "0x2222222222222222222222222222222222222222",
"amount": "10.25",
"memo": "BulkPay",
"est_fee": "0.09",
"act_fee": "0",
"tx_hash": "",
"block_num": 0,
"status": "Processing",
"start_ts_us": 1789992000000000,
"end_ts_us": 0
}
]
}
}<string><string><string><string><string><string><string>