ITEM_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/items/' \
--header 'Content-Type: application/json' \
--data-raw '{
"quantity": 0,
"unit_price": 0,
"compare_at_unit_price": 0,
"internal_note": "string"
}'
{
"message": "Discount must be set to dynamic",
"type": "not_allowed"
}
ITEM_ADD
action.