Cloudhooks Help

shopify.get

IMPORTANT: This action is deprecated, use actions.shopify.graphql instead.

Sends a GET request to the specified Shopify API endpoint.

This action is used to get one or more resources like orders, products, customers from Shopify.

Parameters

ParameterDescription
url: stringAPI endpoint to call

Returns

Promise that is resolved with the requested resource(s).

Examples

The first hook example gets all products:

Get 5 orders

module.exports = async function(payload, actions, context) {
	const data = await actions.shopify.get(
  	"/admin/api/2025-10/orders.json?limit=5"
  );
 
	console.log('Orders: ', data);
}

The second hook example gets a specific product:

Get an order

async function(payload, actions, context) {
	const orderId = '5733759418451';
 
	const result = await actions.shopify.get(
		`/admin/api/2025-10/orders/${orderId}.json`
	);
 
	console.log('Order: ', result);
}