Create a tax rate (country, optional region, rate, name)
POST
/admin/v1/taxes/rates
const url = 'https://your-store.example.com/admin/v1/taxes/rates';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"country":"example","region":"example","rate":"example","name":"example"}'};
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/taxes/rates \ --header 'Content-Type: application/json' \ --data '{ "country": "example", "region": "example", "rate": "example", "name": "example" }'