ID
of the method's SHIPPING_ADD
action.actions
property, whose value is an array of actions. You can check the action's name using its action
property, and use the value of the id
property.curl -X POST '{backend_url}/admin/draft-orders/{id}/edit/shipping-methods/{action_id}' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"shipping_option_id": "{value}"
}'
{
"message": "Discount must be set to dynamic",
"type": "not_allowed"
}