Deliver Approved Prices
curl --request POST \
--url https://api.example.com/v1/approved_prices/deliveries \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filters": {
"history": false,
"approved_after": "2023-11-07T05:31:56Z",
"approved_before": "2023-11-07T05:31:56Z",
"effective_after": "2023-12-25",
"effective_before": "2023-12-25",
"grid_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"item_id": "<string>",
"sku": "<string>"
},
"pagination": {
"limit": 100,
"cursor": "<string>"
}
}
'import requests
url = "https://api.example.com/v1/approved_prices/deliveries"
payload = {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filters": {
"history": False,
"approved_after": "2023-11-07T05:31:56Z",
"approved_before": "2023-11-07T05:31:56Z",
"effective_after": "2023-12-25",
"effective_before": "2023-12-25",
"grid_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"item_id": "<string>",
"sku": "<string>"
},
"pagination": {
"limit": 100,
"cursor": "<string>"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
request_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filters: {
history: false,
approved_after: '2023-11-07T05:31:56Z',
approved_before: '2023-11-07T05:31:56Z',
effective_after: '2023-12-25',
effective_before: '2023-12-25',
grid_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
store_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
item_id: '<string>',
sku: '<string>'
},
pagination: {limit: 100, cursor: '<string>'}
})
};
fetch('https://api.example.com/v1/approved_prices/deliveries', 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.example.com/v1/approved_prices/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'request_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filters' => [
'history' => false,
'approved_after' => '2023-11-07T05:31:56Z',
'approved_before' => '2023-11-07T05:31:56Z',
'effective_after' => '2023-12-25',
'effective_before' => '2023-12-25',
'grid_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'store_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'item_id' => '<string>',
'sku' => '<string>'
],
'pagination' => [
'limit' => 100,
'cursor' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/approved_prices/deliveries"
payload := strings.NewReader("{\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filters\": {\n \"history\": false,\n \"approved_after\": \"2023-11-07T05:31:56Z\",\n \"approved_before\": \"2023-11-07T05:31:56Z\",\n \"effective_after\": \"2023-12-25\",\n \"effective_before\": \"2023-12-25\",\n \"grid_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"item_id\": \"<string>\",\n \"sku\": \"<string>\"\n },\n \"pagination\": {\n \"limit\": 100,\n \"cursor\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/approved_prices/deliveries")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filters\": {\n \"history\": false,\n \"approved_after\": \"2023-11-07T05:31:56Z\",\n \"approved_before\": \"2023-11-07T05:31:56Z\",\n \"effective_after\": \"2023-12-25\",\n \"effective_before\": \"2023-12-25\",\n \"grid_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"item_id\": \"<string>\",\n \"sku\": \"<string>\"\n },\n \"pagination\": {\n \"limit\": 100,\n \"cursor\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/approved_prices/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filters\": {\n \"history\": false,\n \"approved_after\": \"2023-11-07T05:31:56Z\",\n \"approved_before\": \"2023-11-07T05:31:56Z\",\n \"effective_after\": \"2023-12-25\",\n \"effective_before\": \"2023-12-25\",\n \"grid_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"item_id\": \"<string>\",\n \"sku\": \"<string>\"\n },\n \"pagination\": {\n \"limit\": 100,\n \"cursor\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 123,
"grid_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"grid_item_id": 123,
"proposed_price": "<string>",
"approved_price": "<string>",
"currency_code": "<string>",
"source": "dp",
"approved_at": "2023-11-07T05:31:56Z",
"approved_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"item_id": "<string>",
"sku": "<string>",
"store_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_price": "<string>",
"effective_date": "2023-12-25",
"proposal_source": "dp",
"trace": [
{
"source": "dp",
"column_key": "<string>",
"source_job_id": "<string>",
"payload": null
}
],
"approval_details": {
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_revision": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"evaluated_at": "2023-11-07T05:31:56Z",
"minimum_margin_pct": "<string>",
"maximum_change_pct": "<string>",
"margin_pct": "<string>",
"change_pct": "<string>",
"method": "automatic"
},
"export_status": "pending",
"exported_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"predecessor_id": 123,
"amendment_reason": "<string>",
"delivery_channel": "client_api"
}
],
"next_cursor": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}approved_prices
Deliver Approved Prices
Replayable scalar price delivery; saved evidence remains in history/details.
POST
/
v1
/
approved_prices
/
deliveries
Deliver Approved Prices
curl --request POST \
--url https://api.example.com/v1/approved_prices/deliveries \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filters": {
"history": false,
"approved_after": "2023-11-07T05:31:56Z",
"approved_before": "2023-11-07T05:31:56Z",
"effective_after": "2023-12-25",
"effective_before": "2023-12-25",
"grid_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"item_id": "<string>",
"sku": "<string>"
},
"pagination": {
"limit": 100,
"cursor": "<string>"
}
}
'import requests
url = "https://api.example.com/v1/approved_prices/deliveries"
payload = {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filters": {
"history": False,
"approved_after": "2023-11-07T05:31:56Z",
"approved_before": "2023-11-07T05:31:56Z",
"effective_after": "2023-12-25",
"effective_before": "2023-12-25",
"grid_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"item_id": "<string>",
"sku": "<string>"
},
"pagination": {
"limit": 100,
"cursor": "<string>"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
request_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filters: {
history: false,
approved_after: '2023-11-07T05:31:56Z',
approved_before: '2023-11-07T05:31:56Z',
effective_after: '2023-12-25',
effective_before: '2023-12-25',
grid_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
store_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
item_id: '<string>',
sku: '<string>'
},
pagination: {limit: 100, cursor: '<string>'}
})
};
fetch('https://api.example.com/v1/approved_prices/deliveries', 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.example.com/v1/approved_prices/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'request_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filters' => [
'history' => false,
'approved_after' => '2023-11-07T05:31:56Z',
'approved_before' => '2023-11-07T05:31:56Z',
'effective_after' => '2023-12-25',
'effective_before' => '2023-12-25',
'grid_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'store_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'item_id' => '<string>',
'sku' => '<string>'
],
'pagination' => [
'limit' => 100,
'cursor' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/approved_prices/deliveries"
payload := strings.NewReader("{\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filters\": {\n \"history\": false,\n \"approved_after\": \"2023-11-07T05:31:56Z\",\n \"approved_before\": \"2023-11-07T05:31:56Z\",\n \"effective_after\": \"2023-12-25\",\n \"effective_before\": \"2023-12-25\",\n \"grid_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"item_id\": \"<string>\",\n \"sku\": \"<string>\"\n },\n \"pagination\": {\n \"limit\": 100,\n \"cursor\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/approved_prices/deliveries")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filters\": {\n \"history\": false,\n \"approved_after\": \"2023-11-07T05:31:56Z\",\n \"approved_before\": \"2023-11-07T05:31:56Z\",\n \"effective_after\": \"2023-12-25\",\n \"effective_before\": \"2023-12-25\",\n \"grid_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"item_id\": \"<string>\",\n \"sku\": \"<string>\"\n },\n \"pagination\": {\n \"limit\": 100,\n \"cursor\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/approved_prices/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"request_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filters\": {\n \"history\": false,\n \"approved_after\": \"2023-11-07T05:31:56Z\",\n \"approved_before\": \"2023-11-07T05:31:56Z\",\n \"effective_after\": \"2023-12-25\",\n \"effective_before\": \"2023-12-25\",\n \"grid_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"item_id\": \"<string>\",\n \"sku\": \"<string>\"\n },\n \"pagination\": {\n \"limit\": 100,\n \"cursor\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 123,
"grid_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"grid_item_id": 123,
"proposed_price": "<string>",
"approved_price": "<string>",
"currency_code": "<string>",
"source": "dp",
"approved_at": "2023-11-07T05:31:56Z",
"approved_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"item_id": "<string>",
"sku": "<string>",
"store_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_price": "<string>",
"effective_date": "2023-12-25",
"proposal_source": "dp",
"trace": [
{
"source": "dp",
"column_key": "<string>",
"source_job_id": "<string>",
"payload": null
}
],
"approval_details": {
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_revision": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"evaluated_at": "2023-11-07T05:31:56Z",
"minimum_margin_pct": "<string>",
"maximum_change_pct": "<string>",
"margin_pct": "<string>",
"change_pct": "<string>",
"method": "automatic"
},
"export_status": "pending",
"exported_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"predecessor_id": 123,
"amendment_reason": "<string>",
"delivery_channel": "client_api"
}
],
"next_cursor": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json

