Shortcut for tagging an order.
Important:
- Counts as 2 actions, as the order must be fetched before being tagged.
- Cloudhooks uses the lowest-supported Admin API version to make the API calls.
Parameters
orderId: string |
Identifier of the order |
tags: string |
Tags to add to the order, separated by comma |
Returns
Promise that is resolved with the updated order.
Examples
module.exports = async function(payload, actions, context) {
const orderId = '12345';
const result = await actions.shopify.tagCustomer(
orderId,
'large-order,paid,tagged'
);
console.log('Updated order: ', result);
}