curl --request GET \
--url https://api.merchantops.ai/api/pricing/batches/{key}/recordsimport requests
url = "https://api.merchantops.ai/api/pricing/batches/{key}/records"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.merchantops.ai/api/pricing/batches/{key}/records', 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/batches/{key}/records",
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/batches/{key}/records"
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/batches/{key}/records")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.merchantops.ai/api/pricing/batches/{key}/records")
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>"
}
]
}List Batch Records
Return price records associated with a batch (any status).
Hides the new_prices vs republish source-type difference from the
UI: for new_prices batches it returns every record linked by
batch_id; for republish batches it returns the records referenced
via referenced_record_keys. Unlike the worker’s
resolve_dispatch_records this does NOT filter by status
— the UI needs to show draft records too, otherwise the
table is empty for any pre-approval batch.
group_skip/group_limit are OPTIONAL and OFF by default. When
BOTH are omitted this returns the legacy return-all shape
({items, total}), byte-identical to before — the vendored SDK,
workers, and the current UI depend on that. When either is present,
the response switches to style-group pagination (Task H1): items are
enriched with product_name/brand/gender/product_type and the shape
gains total_groups/group_skip/group_limit.
search/status/gender/brand/sort_by/sort_dir
are only implemented on the grouped path. Supplying any of them
WITHOUT group pagination is a 400 rather than a silent no-op: the
legacy path returns every record in the batch, so ignoring a filter
would answer 200 with the exact opposite of what was asked for.
curl --request GET \
--url https://api.merchantops.ai/api/pricing/batches/{key}/recordsimport requests
url = "https://api.merchantops.ai/api/pricing/batches/{key}/records"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.merchantops.ai/api/pricing/batches/{key}/records', 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/batches/{key}/records",
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/batches/{key}/records"
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/batches/{key}/records")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.merchantops.ai/api/pricing/batches/{key}/records")
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
x >= 01 <= x <= 200200^(name|amount)$^(asc|desc)$Cookies
Response
Successful Response