curl --request GET \
--url https://api.merchantops.ai/api/pricing/map-policy/{brand_key}import requests
url = "https://api.merchantops.ai/api/pricing/map-policy/{brand_key}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.merchantops.ai/api/pricing/map-policy/{brand_key}', 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.merchantops.ai/api/pricing/map-policy/{brand_key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.merchantops.ai/api/pricing/map-policy/{brand_key}"
req, _ := http.NewRequest("GET", url, nil)
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.merchantops.ai/api/pricing/map-policy/{brand_key}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.merchantops.ai/api/pricing/map-policy/{brand_key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Get Map Policy Brand View
Return full merged MAP policy view for a brand.
Match computation (matched/catalog_only/map_only, overrides, changes)
always runs over the FULL brand product set; skip/limit
only page the serialized products list. The response’s page
dict reports total — the full post-filter product count — so the
client can render pagination controls.
WHY limit is allowed all the way up to MAP_VIEW_MAX_PRODUCTS:
this view is a client-ASSEMBLED dataset. The MAP Policy page needs
every product at once (it filters/sorts/paginates client-side), so it
loops pages until it has them all — and because every page re-runs the
whole-brand match computation and then throws away all but its own
slice, an N-page brand used to cost N FULL recomputations (measured on
qa: a 2-page brand took ~7s, ~2x a 1-page brand). Letting one request
span the whole brand collapses that multiplier to a single
computation. The ceiling tracks the service constant rather than a
literal because the service caps the underlying product fetch at
MAP_VIEW_MAX_PRODUCTS regardless: a larger limit could never
return more products, only mislead. The DEFAULT stays 500 so existing
API/SDK consumers are unaffected.
curl --request GET \
--url https://api.merchantops.ai/api/pricing/map-policy/{brand_key}import requests
url = "https://api.merchantops.ai/api/pricing/map-policy/{brand_key}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.merchantops.ai/api/pricing/map-policy/{brand_key}', 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.merchantops.ai/api/pricing/map-policy/{brand_key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.merchantops.ai/api/pricing/map-policy/{brand_key}"
req, _ := http.NewRequest("GET", url, nil)
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.merchantops.ai/api/pricing/map-policy/{brand_key}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.merchantops.ai/api/pricing/map-policy/{brand_key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Path Parameters
Query Parameters
Search filter for product name or key
Products to skip in the returned page
x >= 0Max products to return per page (capped at the service's whole-brand computation ceiling)
1 <= x <= 2000Cookies
Response
Successful Response