Pricing API
...
Pricing API Docs
Pricing
Update Pricing by SKU
code examples curl location globoff request patch '/api/v1/pricing/{sku}' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "price list slug" "", "pricing" \[ { "price" "" } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "price list slug" "", "pricing" \[ { "price" "" } ] }); var requestoptions = { method 'patch', headers myheaders, body raw, redirect 'follow' }; fetch("/api/v1/pricing/{sku}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("/api/v1/pricing/{sku}") http = net http new(url host, url port); request = net http patch new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "price list slug" "", "pricing" \[ { "price" "" } ] }) response = http request(request) puts response read body import requests import json url = "/api/v1/pricing/{sku}" payload = json dumps({ "price list slug" "", "pricing" \[ { "price" "" } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // successful response \[ { "price list slug" "base list", "pricing" \[ { "quantity" 1, "price" 10 49, "tax type" "", "unit of measure" "pallet" } ] } ]// price list not found // error response