Publish Tariffs
You need to have an access token so you can create or update tariffs.
The steps to get a token are described here: How to get your token.
Prior to publishing tariffs, please read the following documentation:
- Understanding tariffs
- How to create and update a tariff: Create and update tariffs
How to publish a Tariff
Once you created your tariffs, and you no longer need to edit or add any products, you have to publish the tariff in order to make it available to the retailer.
You can publish tariffs using the https://apis.supplierxm.salsify.com/public/v1/tariffs/{uuid}/publish API. Its reference is available here: Tariff publish
requests.post(
"https://apis.supplierxm.salsify.com/public/v1/tariffs/%s/publish" % tariff_uuid,
data=json.dumps({}),
headers=headers,
).json()
Warning
Once a tariff is published, you can no longer edit it or add products to it.
If you want to add products, create a new one with those products
If you want to edit a field, you will need to archive the tariff and create a new one from scratch.
Congratulations
Your tariff is now published with the retailer.
API References
Updated over 2 years ago