Arcadier / Developer-Community-Support

:revolving_hearts: Share new ideas with us and report bugs/problems here
4 stars 1 forks source link

Possibility to create/update delivery options via API #45

Open haydave opened 2 years ago

haydave commented 2 years ago

I would like to have possibility to update (or bulk-update) delivery options via API. There is API to get delivery 2.0 rates, which returns an array of shipping methods set up by the admin, together with details of the pricing for different weights/order prices.

GET Get Delivery 2.0 Rates API Response "Values": [ "{\"IsAllCountries\":false,\"Countries\":\"Singapore\",\"MinimumLeadTime\":\"121\",\"DeliveryFrom\":\"SG\",\"CalculationType\":\"price\",\"Rates\":[{\"Name\":\"Option 1\",\"MinimumRange\":\"1\",\"MaximumRange\":\"100\",\"Onwards\":\"false\",\"Cost\":\"150\"},{\"Name\":\"Option 2\",\"MinimumRange\":\"101\",\"MaximumRange\":\"\",\"Onwards\":\"true\",\"Cost\":\"200\"}]}" ]

In API documentation, it is not clear how to update delivery options (change list of countries, weight ranges, etc).

I have tried to update shipping rates by using following API call.

PUT Update a shipping method https://{{your-marketplace}}.arcadier.io/api/v2/merchants/{{merchantID}}/shipping-methods/{{shippingmethodID}}

but this failed.

Can you please share any documentation for how one can update rates using existing API calls? Does such API exist - to update shipping rates?

It will be great if you can provide an example of updating/creating delivery options via API.