Skip to content

Delivery Methods in checkout page

I am able to configure the shipping methods rates in the Magento UI logged in admin user. The same shipping details appear in the customer checkout page when creating the new order.
The below links details.

https://docs.magento.com/user-guide/shipping/methods-basic.html

https://docs.magento.com/user-guide/shipping/shipping-flat-rate.html

I want to add/update the below shipping methods using the API/Web-hook config.

[{
 "carrier_code": "flatratetwo",
 "method_code": "flatrate",
 "carrier_title": "Flat Rate #2",
 "method_title": "Flat Rate #2",
 "amount": 25,
 "base_amount": 25,
 "available": true,
 "error_message": "",
 "price_excl_tax": 25,
 "price_incl_tax": 25
}, {
 "carrier_code": "flatrate",
 "method_code": "flatrate",
 "carrier_title": "Flat Rate",
 "method_title": "Fixed",
 "amount": 100,
 "base_amount": 100,
 "available": true,
 "error_message": "",
 "price_excl_tax": 100,
 "price_incl_tax": 100
}, {
 "carrier_code": "customshipping",
 "method_code": "customshipping",
 "carrier_title": "Custom Shipping Title",
 "method_title": "Custom Shipping Method Name",
 "amount": 10,
 "base_amount": 10,
 "available": true,
 "error_message": "",
 "price_excl_tax": 10,
 "price_incl_tax": 10
}]

Please find the attachments. for details.

Regards
Sudhakar