Get product pricing and offers
curl --request GET \
--url https://api-beta.pepay.io/api/commerce/products/{productId}/offers \
--header 'x-commerce-api-key: <api-key>'import requests
url = "https://api-beta.pepay.io/api/commerce/products/{productId}/offers"
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/commerce/products/{productId}/offers', 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/products/{productId}/offers",
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/commerce/products/{productId}/offers"
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/commerce/products/{productId}/offers")
.header("x-commerce-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-beta.pepay.io/api/commerce/products/{productId}/offers")
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": {
"productId": "B08N5WRWNW",
"retailer": "amazon",
"offers": [
{
"offerId": "<string>",
"sellerId": "ATVPDKIKX0DER",
"sellerName": "Amazon.com",
"price": 99.99,
"shipping": 0,
"totalCost": 99.99,
"prime": true,
"primeOnly": false,
"condition": "New",
"handlingDays": {
"min": 0,
"max": 2
},
"sellerRating": 98.5,
"sellerRatingCount": 10543,
"international": false,
"available": true
}
]
},
"meta": {
"timestamp": 1738240496
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters",
"details": [
{
"field": "zipCode",
"message": "Invalid US zip code format"
}
]
}
}{
"success": false,
"error": {
"code": "COMMERCE_API_KEY_MISSING",
"message": "Commerce API key required"
}
}{
"success": false,
"error": {
"code": "COMMERCE_API_KEY_SUSPENDED",
"message": "Commerce API key suspended"
}
}{
"success": false,
"error": {
"code": "PRODUCT_NOT_FOUND",
"message": "Product not found or has no available offers"
}
}{
"success": false,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many offer requests. Please wait before trying again.",
"retryAfter": 60
}
}{
"success": false,
"error": {
"code": "COMMERCE_API_ERROR",
"message": "Unable to retrieve product offers"
}
}Commerce
Get product pricing and offers
Retrieve current pricing offers for a product including seller information, shipping options, and availability. Results are sorted by best value.
Optionally provide a zip code for location-specific shipping rates.
GET
/
api
/
commerce
/
products
/
{productId}
/
offers
Get product pricing and offers
curl --request GET \
--url https://api-beta.pepay.io/api/commerce/products/{productId}/offers \
--header 'x-commerce-api-key: <api-key>'import requests
url = "https://api-beta.pepay.io/api/commerce/products/{productId}/offers"
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/commerce/products/{productId}/offers', 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/products/{productId}/offers",
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/commerce/products/{productId}/offers"
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/commerce/products/{productId}/offers")
.header("x-commerce-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-beta.pepay.io/api/commerce/products/{productId}/offers")
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": {
"productId": "B08N5WRWNW",
"retailer": "amazon",
"offers": [
{
"offerId": "<string>",
"sellerId": "ATVPDKIKX0DER",
"sellerName": "Amazon.com",
"price": 99.99,
"shipping": 0,
"totalCost": 99.99,
"prime": true,
"primeOnly": false,
"condition": "New",
"handlingDays": {
"min": 0,
"max": 2
},
"sellerRating": 98.5,
"sellerRatingCount": 10543,
"international": false,
"available": true
}
]
},
"meta": {
"timestamp": 1738240496
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters",
"details": [
{
"field": "zipCode",
"message": "Invalid US zip code format"
}
]
}
}{
"success": false,
"error": {
"code": "COMMERCE_API_KEY_MISSING",
"message": "Commerce API key required"
}
}{
"success": false,
"error": {
"code": "COMMERCE_API_KEY_SUSPENDED",
"message": "Commerce API key suspended"
}
}{
"success": false,
"error": {
"code": "PRODUCT_NOT_FOUND",
"message": "Product not found or has no available offers"
}
}{
"success": false,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many offer requests. Please wait before trying again.",
"retryAfter": 60
}
}{
"success": false,
"error": {
"code": "COMMERCE_API_ERROR",
"message": "Unable to retrieve product offers"
}
}Authorizations
commerceApiKeymerchantApiKey
Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.
Path Parameters
Product identifier
Required string length:
1 - 100Pattern:
^[A-Za-z0-9\-_]+$Query Parameters
Retailer to fetch offers from
Available options:
amazon, walmart US zip code for shipping calculations
Pattern:
^\d{5}(-\d{4})?$Was this page helpful?
⌘I

