phpclassic / php-shopify

PHP SDK for Shopify API
Apache License 2.0
568 stars 211 forks source link

Adding a tag in shopify customer (post method not working). I use this code #270

Closed KomalDeveloper01 closed 1 year ago

KomalDeveloper01 commented 1 year ago

$getPara ="1234567890"; $data = array('tags' => 'sales_agent'); $shopify->Customer($getPara)->post($data);

nVuln commented 1 year ago

post for create, use put method when you need update a resource

$shopify->Customer($getPara)->put($data);

see: https://shopify.dev/api/admin-rest/2022-07/resources/customer#put-customers-customer-id