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 --location -g --request POST '{{BASE_URL}}/admin/draft-orders//edit/shipping-methods/' \
--header 'Content-Type: application/json' \
--data-raw '{
"shipping_option_id": "string",
"custom_amount": 0,
"description": "string",
"internal_note": "string",
"metadata": {}
}'
{
"message": "Discount must be set to dynamic",
"type": "not_allowed"
}
SHIPPING_ADD
action.