<?php

// Set variables for our request
$shop = "demo-shop";
$token = "SWplI7gKAckAlF9QfAvv9yrI3grYsSkw";
$query = array(
  "Content-type" => "application/json" // Tell Shopify that we're expecting a response in JSON format
);

// Webhook content, including the URL to POST to
$tag_data = array(
  'customer' =>
 array(
   'id' => $webhook_content['customer']['id'],
   'tag' => 'VIP Customer'
 )
);

// Run API call (PUT) to create the tag
$tag_response = shopify_call($token, $shop, "/admin/customers/" . $webhook_content['customer']['id'] . ".json", $tag_data, 'PUT');

?>