curl --request POST \
--url https://api.request.network/v2/payouts/batch \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "2",
"invoiceCurrency": "FAU-sepolia",
"paymentCurrency": "FAU-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "2",
"invoiceCurrency": "fUSDC-sepolia",
"paymentCurrency": "fUSDC-sepolia"
},
{
"payee": "0xb07D2398d2004378cad234DA0EF14f1c94A530e4",
"amount": "10",
"invoiceCurrency": "USD",
"paymentCurrency": "FAU-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "0.00001",
"invoiceCurrency": "ETH-sepolia-sepolia",
"paymentCurrency": "ETH-sepolia-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "10",
"invoiceCurrency": "USD",
"paymentCurrency": "ETH-sepolia-sepolia"
}
],
"payer": "0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570"
}
'import requests
url = "https://api.request.network/v2/payouts/batch"
payload = {
"requests": [
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "2",
"invoiceCurrency": "FAU-sepolia",
"paymentCurrency": "FAU-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "2",
"invoiceCurrency": "fUSDC-sepolia",
"paymentCurrency": "fUSDC-sepolia"
},
{
"payee": "0xb07D2398d2004378cad234DA0EF14f1c94A530e4",
"amount": "10",
"invoiceCurrency": "USD",
"paymentCurrency": "FAU-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "0.00001",
"invoiceCurrency": "ETH-sepolia-sepolia",
"paymentCurrency": "ETH-sepolia-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "10",
"invoiceCurrency": "USD",
"paymentCurrency": "ETH-sepolia-sepolia"
}
],
"payer": "0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
requests: [
{
payee: '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
amount: '2',
invoiceCurrency: 'FAU-sepolia',
paymentCurrency: 'FAU-sepolia'
},
{
payee: '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
amount: '2',
invoiceCurrency: 'fUSDC-sepolia',
paymentCurrency: 'fUSDC-sepolia'
},
{
payee: '0xb07D2398d2004378cad234DA0EF14f1c94A530e4',
amount: '10',
invoiceCurrency: 'USD',
paymentCurrency: 'FAU-sepolia'
},
{
payee: '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
amount: '0.00001',
invoiceCurrency: 'ETH-sepolia-sepolia',
paymentCurrency: 'ETH-sepolia-sepolia'
},
{
payee: '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
amount: '10',
invoiceCurrency: 'USD',
paymentCurrency: 'ETH-sepolia-sepolia'
}
],
payer: '0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570'
})
};
fetch('https://api.request.network/v2/payouts/batch', 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.request.network/v2/payouts/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requests' => [
[
'payee' => '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
'amount' => '2',
'invoiceCurrency' => 'FAU-sepolia',
'paymentCurrency' => 'FAU-sepolia'
],
[
'payee' => '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
'amount' => '2',
'invoiceCurrency' => 'fUSDC-sepolia',
'paymentCurrency' => 'fUSDC-sepolia'
],
[
'payee' => '0xb07D2398d2004378cad234DA0EF14f1c94A530e4',
'amount' => '10',
'invoiceCurrency' => 'USD',
'paymentCurrency' => 'FAU-sepolia'
],
[
'payee' => '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
'amount' => '0.00001',
'invoiceCurrency' => 'ETH-sepolia-sepolia',
'paymentCurrency' => 'ETH-sepolia-sepolia'
],
[
'payee' => '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
'amount' => '10',
'invoiceCurrency' => 'USD',
'paymentCurrency' => 'ETH-sepolia-sepolia'
]
],
'payer' => '0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.request.network/v2/payouts/batch"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"FAU-sepolia\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"fUSDC-sepolia\",\n \"paymentCurrency\": \"fUSDC-sepolia\"\n },\n {\n \"payee\": \"0xb07D2398d2004378cad234DA0EF14f1c94A530e4\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"0.00001\",\n \"invoiceCurrency\": \"ETH-sepolia-sepolia\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n }\n ],\n \"payer\": \"0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.request.network/v2/payouts/batch")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"FAU-sepolia\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"fUSDC-sepolia\",\n \"paymentCurrency\": \"fUSDC-sepolia\"\n },\n {\n \"payee\": \"0xb07D2398d2004378cad234DA0EF14f1c94A530e4\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"0.00001\",\n \"invoiceCurrency\": \"ETH-sepolia-sepolia\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n }\n ],\n \"payer\": \"0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.request.network/v2/payouts/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"requests\": [\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"FAU-sepolia\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"fUSDC-sepolia\",\n \"paymentCurrency\": \"fUSDC-sepolia\"\n },\n {\n \"payee\": \"0xb07D2398d2004378cad234DA0EF14f1c94A530e4\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"0.00001\",\n \"invoiceCurrency\": \"ETH-sepolia-sepolia\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n }\n ],\n \"payer\": \"0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570\"\n}"
response = http.request(request)
puts response.read_body{
"ERC20ApprovalTransactions": [
{
"data": "0x095ea7b3...",
"to": "0x370DE27fdb7D1Ff1e1BaA7D11c5820a324Cf623C",
"value": 0
}
],
"batchPaymentTransaction": {
"data": "0x92cddb91...",
"to": "0x67818703c92580c0e106e401F253E8A410A66f8B",
"value": {
"type": "BigNumber",
"hex": "0x0d83b3d1afc58b"
}
}
}Pay multiple requests in one transaction
Pays multiple payment requests in one transaction by either creating new requests or using existing request IDs. All requests must be on the same network. Supports mixed ERC20, Native, and conversion requests.
curl --request POST \
--url https://api.request.network/v2/payouts/batch \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "2",
"invoiceCurrency": "FAU-sepolia",
"paymentCurrency": "FAU-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "2",
"invoiceCurrency": "fUSDC-sepolia",
"paymentCurrency": "fUSDC-sepolia"
},
{
"payee": "0xb07D2398d2004378cad234DA0EF14f1c94A530e4",
"amount": "10",
"invoiceCurrency": "USD",
"paymentCurrency": "FAU-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "0.00001",
"invoiceCurrency": "ETH-sepolia-sepolia",
"paymentCurrency": "ETH-sepolia-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "10",
"invoiceCurrency": "USD",
"paymentCurrency": "ETH-sepolia-sepolia"
}
],
"payer": "0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570"
}
'import requests
url = "https://api.request.network/v2/payouts/batch"
payload = {
"requests": [
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "2",
"invoiceCurrency": "FAU-sepolia",
"paymentCurrency": "FAU-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "2",
"invoiceCurrency": "fUSDC-sepolia",
"paymentCurrency": "fUSDC-sepolia"
},
{
"payee": "0xb07D2398d2004378cad234DA0EF14f1c94A530e4",
"amount": "10",
"invoiceCurrency": "USD",
"paymentCurrency": "FAU-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "0.00001",
"invoiceCurrency": "ETH-sepolia-sepolia",
"paymentCurrency": "ETH-sepolia-sepolia"
},
{
"payee": "0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7",
"amount": "10",
"invoiceCurrency": "USD",
"paymentCurrency": "ETH-sepolia-sepolia"
}
],
"payer": "0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
requests: [
{
payee: '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
amount: '2',
invoiceCurrency: 'FAU-sepolia',
paymentCurrency: 'FAU-sepolia'
},
{
payee: '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
amount: '2',
invoiceCurrency: 'fUSDC-sepolia',
paymentCurrency: 'fUSDC-sepolia'
},
{
payee: '0xb07D2398d2004378cad234DA0EF14f1c94A530e4',
amount: '10',
invoiceCurrency: 'USD',
paymentCurrency: 'FAU-sepolia'
},
{
payee: '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
amount: '0.00001',
invoiceCurrency: 'ETH-sepolia-sepolia',
paymentCurrency: 'ETH-sepolia-sepolia'
},
{
payee: '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
amount: '10',
invoiceCurrency: 'USD',
paymentCurrency: 'ETH-sepolia-sepolia'
}
],
payer: '0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570'
})
};
fetch('https://api.request.network/v2/payouts/batch', 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.request.network/v2/payouts/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requests' => [
[
'payee' => '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
'amount' => '2',
'invoiceCurrency' => 'FAU-sepolia',
'paymentCurrency' => 'FAU-sepolia'
],
[
'payee' => '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
'amount' => '2',
'invoiceCurrency' => 'fUSDC-sepolia',
'paymentCurrency' => 'fUSDC-sepolia'
],
[
'payee' => '0xb07D2398d2004378cad234DA0EF14f1c94A530e4',
'amount' => '10',
'invoiceCurrency' => 'USD',
'paymentCurrency' => 'FAU-sepolia'
],
[
'payee' => '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
'amount' => '0.00001',
'invoiceCurrency' => 'ETH-sepolia-sepolia',
'paymentCurrency' => 'ETH-sepolia-sepolia'
],
[
'payee' => '0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7',
'amount' => '10',
'invoiceCurrency' => 'USD',
'paymentCurrency' => 'ETH-sepolia-sepolia'
]
],
'payer' => '0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.request.network/v2/payouts/batch"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"FAU-sepolia\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"fUSDC-sepolia\",\n \"paymentCurrency\": \"fUSDC-sepolia\"\n },\n {\n \"payee\": \"0xb07D2398d2004378cad234DA0EF14f1c94A530e4\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"0.00001\",\n \"invoiceCurrency\": \"ETH-sepolia-sepolia\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n }\n ],\n \"payer\": \"0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.request.network/v2/payouts/batch")
.header("Content-Type", "application/json")
.body("{\n \"requests\": [\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"FAU-sepolia\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"fUSDC-sepolia\",\n \"paymentCurrency\": \"fUSDC-sepolia\"\n },\n {\n \"payee\": \"0xb07D2398d2004378cad234DA0EF14f1c94A530e4\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"0.00001\",\n \"invoiceCurrency\": \"ETH-sepolia-sepolia\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n }\n ],\n \"payer\": \"0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.request.network/v2/payouts/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"requests\": [\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"FAU-sepolia\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"2\",\n \"invoiceCurrency\": \"fUSDC-sepolia\",\n \"paymentCurrency\": \"fUSDC-sepolia\"\n },\n {\n \"payee\": \"0xb07D2398d2004378cad234DA0EF14f1c94A530e4\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"FAU-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"0.00001\",\n \"invoiceCurrency\": \"ETH-sepolia-sepolia\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n },\n {\n \"payee\": \"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7\",\n \"amount\": \"10\",\n \"invoiceCurrency\": \"USD\",\n \"paymentCurrency\": \"ETH-sepolia-sepolia\"\n }\n ],\n \"payer\": \"0x2e2E5C79F571ef1658d4C2d3684a1FE97DD30570\"\n}"
response = http.request(request)
puts response.read_body{
"ERC20ApprovalTransactions": [
{
"data": "0x095ea7b3...",
"to": "0x370DE27fdb7D1Ff1e1BaA7D11c5820a324Cf623C",
"value": 0
}
],
"batchPaymentTransaction": {
"data": "0x92cddb91...",
"to": "0x67818703c92580c0e106e401F253E8A410A66f8B",
"value": {
"type": "BigNumber",
"hex": "0x0d83b3d1afc58b"
}
}
}Headers
API key for authentication (optional if using Client ID)
Client ID for frontend authentication (optional if using API key)
Origin header (required for Client ID auth, automatically set by browser)
Body
A list of payment requests to be created andprocessed in batch. All requests must be on the same network and contain payment/invoice currency information. Either requests or requestIds must be provided, but not both.
Show child attributes
Show child attributes
The request IDs of the existing requests to be paid. Requests must be on the same network. Either requests or requestIds must be provided, but not both.
The wallet address of the payer, user to check if approval is needed or not.
Fee percentage to apply at payment time (e.g., '2.5' for 2.5%)
Address to receive the fee
Response
Batch payment calldata retrieved successfully
Array of ERC20 approval transactions needed before the batch payment. Only present when token approval is required.
Show child attributes
Show child attributes
The batch payment transaction for ERC20 tokens. Only present when the batch contains ERC20 payments.
Show child attributes
Show child attributes
The batch payment transaction for native ETH. Only present when the batch contains ETH payments.
Show child attributes
Show child attributes
Was this page helpful?