Create a shipping rate in a zone
POST
/admin/v1/shipping/rates
const url = 'https://your-store.example.com/admin/v1/shipping/rates';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"zoneId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","type":"flat","amount":1,"currency":"example","freeOverAmount":1,"weightMinGrams":1,"weightMaxGrams":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-store.example.com/admin/v1/shipping/rates \ --header 'Content-Type: application/json' \ --data '{ "zoneId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "type": "flat", "amount": 1, "currency": "example", "freeOverAmount": 1, "weightMinGrams": 1, "weightMaxGrams": 1 }'Request Body required
Section titled “Request Body required ” Media type application/json