Pricing API
...
Pricing API Docs
Pricing
Update Pricing by Price List
code examples curl location globoff request patch '/api/v1/price lists/{slug}/pricing' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "sku" "", "pricing" \[ { "quantity" 1, "price" "" } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "sku" "", "pricing" \[ { "quantity" 1, "price" "" } ] }); var requestoptions = { method 'patch', headers myheaders, body raw, redirect 'follow' }; fetch("/api/v1/price lists/{slug}/pricing", 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/price lists/{slug}/pricing") 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({ "sku" "", "pricing" \[ { "quantity" 1, "price" "" } ] }) response = http request(request) puts response read body import requests import json url = "/api/v1/price lists/{slug}/pricing" payload = json dumps({ "sku" "", "pricing" \[ { "quantity" 1, "price" "" } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // successful response // validation errors \[ { "line" 0, "field" "", "message" "" } ]// price list not found // error response