Get merchant order details (scoped)
curl --request GET \
--url https://api-beta.pepay.io/api/commerce/merchant/orders/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-beta.pepay.io/api/commerce/merchant/orders/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-beta.pepay.io/api/commerce/merchant/orders/{orderId}', 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/commerce/merchant/orders/{orderId}",
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-beta.pepay.io/api/commerce/merchant/orders/{orderId}"
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-beta.pepay.io/api/commerce/merchant/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-beta.pepay.io/api/commerce/merchant/orders/{orderId}")
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{
"success": true,
"data": {
"orderId": "550e8400-e29b-41d4-a716-446655440000",
"invoiceId": "550e8400-e29b-41d4-a716-446655440111",
"merchantId": 123,
"networkEnvironment": "devnet",
"retailer": "amazon",
"createdAt": 1765843200,
"updatedAt": 1765843800,
"customerId": "cust_123456",
"walletAddress": "0x0000000000000000000000000000000000000001",
"walletNetwork": "bsc",
"status": "placed",
"substatus": "AWAITING_TRACKING",
"actions": {
"canCancel": false
},
"timeline": [
{
"status": "processing",
"timestamp": 1765843260,
"message": "Payment received, processing order"
},
{
"status": "placed",
"timestamp": 1765843320,
"message": "Order placed with retailer"
}
],
"payment": {
"status": "paid",
"txHash": "0xpay",
"settlement": {
"status": "settled",
"txHash": "0xsettle",
"network": "bsc"
}
},
"fulfillment": {
"shipments": [
{
"shipmentId": "ship_123",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"carrierTrackingUrl": "https://t.17track.net/en#nums=1Z999AA10123456784",
"deliveryStatus": "In Transit",
"retailerTrackingNumber": "TBA111189418000",
"retailerTrackingUrl": "https://www.amazon.com/progress-tracker/...",
"obtainedAt": 1765843500
}
]
},
"lineItems": [
{
"productId": "B08N5WRWNW",
"title": "Item",
"imageUrl": "https://example.com/product.jpg",
"quantity": 1,
"price": "9.00",
"status": "processing"
}
],
"shippingAddress": null,
"cancellationStatus": "none",
"refundStatus": "NONE",
"totalAmountUsd": "10.00",
"commerceFeeUsd": "1.00",
"refund": {
"status": "NONE",
"amountUsd": null,
"feeUsd": null,
"destinationWalletAddressBsc": "0x0000000000000000000000000000000000000001",
"txHash": null
}
}
}Commerce
Get merchant order details (scoped)
Returns the canonical merchant-facing snapshot for a single commerce order.
This is the same shape delivered in commerce.order.* webhook events and is safe to build merchant UI against.
Auth:
- Server-to-server:
X-Commerce-Api-Key - Dashboard/user:
Authorization: Bearer <JWT>
GET
/
api
/
commerce
/
merchant
/
orders
/
{orderId}
Get merchant order details (scoped)
curl --request GET \
--url https://api-beta.pepay.io/api/commerce/merchant/orders/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-beta.pepay.io/api/commerce/merchant/orders/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-beta.pepay.io/api/commerce/merchant/orders/{orderId}', 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/commerce/merchant/orders/{orderId}",
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-beta.pepay.io/api/commerce/merchant/orders/{orderId}"
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-beta.pepay.io/api/commerce/merchant/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-beta.pepay.io/api/commerce/merchant/orders/{orderId}")
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{
"success": true,
"data": {
"orderId": "550e8400-e29b-41d4-a716-446655440000",
"invoiceId": "550e8400-e29b-41d4-a716-446655440111",
"merchantId": 123,
"networkEnvironment": "devnet",
"retailer": "amazon",
"createdAt": 1765843200,
"updatedAt": 1765843800,
"customerId": "cust_123456",
"walletAddress": "0x0000000000000000000000000000000000000001",
"walletNetwork": "bsc",
"status": "placed",
"substatus": "AWAITING_TRACKING",
"actions": {
"canCancel": false
},
"timeline": [
{
"status": "processing",
"timestamp": 1765843260,
"message": "Payment received, processing order"
},
{
"status": "placed",
"timestamp": 1765843320,
"message": "Order placed with retailer"
}
],
"payment": {
"status": "paid",
"txHash": "0xpay",
"settlement": {
"status": "settled",
"txHash": "0xsettle",
"network": "bsc"
}
},
"fulfillment": {
"shipments": [
{
"shipmentId": "ship_123",
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"carrierTrackingUrl": "https://t.17track.net/en#nums=1Z999AA10123456784",
"deliveryStatus": "In Transit",
"retailerTrackingNumber": "TBA111189418000",
"retailerTrackingUrl": "https://www.amazon.com/progress-tracker/...",
"obtainedAt": 1765843500
}
]
},
"lineItems": [
{
"productId": "B08N5WRWNW",
"title": "Item",
"imageUrl": "https://example.com/product.jpg",
"quantity": 1,
"price": "9.00",
"status": "processing"
}
],
"shippingAddress": null,
"cancellationStatus": "none",
"refundStatus": "NONE",
"totalAmountUsd": "10.00",
"commerceFeeUsd": "1.00",
"refund": {
"status": "NONE",
"amountUsd": null,
"feeUsd": null,
"destinationWalletAddressBsc": "0x0000000000000000000000000000000000000001",
"txHash": null
}
}
}Authorizations
bearerAuthcommerceApiKeymerchantApiKey
JWT token for wallet authentication
Path Parameters
Was this page helpful?
⌘I

