List merchant addresses
curl --request GET \
--url https://api-beta.pepay.io/api/v1/commerce/merchant/addresses \
--header 'x-commerce-api-key: <api-key>'import requests
url = "https://api-beta.pepay.io/api/v1/commerce/merchant/addresses"
headers = {"x-commerce-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-commerce-api-key': '<api-key>'}};
fetch('https://api-beta.pepay.io/api/v1/commerce/merchant/addresses', 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-beta.pepay.io/api/v1/commerce/merchant/addresses",
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-commerce-api-key: <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-beta.pepay.io/api/v1/commerce/merchant/addresses"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-commerce-api-key", "<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-beta.pepay.io/api/v1/commerce/merchant/addresses")
.header("x-commerce-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-beta.pepay.io/api/v1/commerce/merchant/addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-commerce-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"addresses": [
{
"addressId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "<string>",
"walletAddress": "<string>",
"walletNetwork": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"country": "<string>",
"phoneNumber": "<string>",
"email": "<string>",
"isValidated": true,
"validatedAt": 123,
"createdAt": 123
}
]
}
}Commerce
List merchant addresses
Retrieve saved addresses scoped to a merchant.
Provide either customer_id OR (wallet_address + wallet_network).
GET
/
api
/
v1
/
commerce
/
merchant
/
addresses
List merchant addresses
curl --request GET \
--url https://api-beta.pepay.io/api/v1/commerce/merchant/addresses \
--header 'x-commerce-api-key: <api-key>'import requests
url = "https://api-beta.pepay.io/api/v1/commerce/merchant/addresses"
headers = {"x-commerce-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-commerce-api-key': '<api-key>'}};
fetch('https://api-beta.pepay.io/api/v1/commerce/merchant/addresses', 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-beta.pepay.io/api/v1/commerce/merchant/addresses",
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-commerce-api-key: <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-beta.pepay.io/api/v1/commerce/merchant/addresses"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-commerce-api-key", "<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-beta.pepay.io/api/v1/commerce/merchant/addresses")
.header("x-commerce-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-beta.pepay.io/api/v1/commerce/merchant/addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-commerce-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"addresses": [
{
"addressId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "<string>",
"walletAddress": "<string>",
"walletNetwork": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"country": "<string>",
"phoneNumber": "<string>",
"email": "<string>",
"isValidated": true,
"validatedAt": 123,
"createdAt": 123
}
]
}
}Authorizations
commerceApiKeymerchantApiKey
Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.
Query Parameters
Merchant-specific customer identifier (alternative to wallet)
Maximum string length:
255Customer wallet address (required with wallet_network)
Wallet network (required with wallet_address)
Available options:
ethereum, base, solana, avalanche, ton, bsc, arbitrum, optimism, cardano, sui Maximum addresses to return
Required range:
1 <= x <= 100Offset for pagination
Required range:
x >= 0Was this page helpful?
⌘I

