Hi there. In my Shopify Theme I want my customers to be able to update their notes from their account settings. I'm trying to use Customer API (https://shopify.dev/docs/admin-api/rest/reference/customers/customer#update-2020-04) via a Private App. like in the example.
$client = new Client();
$response = $client->put('https://neno-site.myshopify.com/admin/customers/3857938448459.json', [
'headers' => [
'X-Shopify-Access-Token' => 'some-api-key',
'Accept' => 'application/json'
'customer' => [
"note"=> "Store Names:Testing mode"
and in the response, it does not update the Customer Note.
Hey @asimtahir ,
Happy to help you out with this.
I don't see anything wrong with the request payload. If you could provide the x-request-id from the response headers where the customers put request is not updating the note I can look into this further.
I'm very happy to say that finally I found my mistake and resolve that.
Actually the issue was the JSON formate, and the right formate is this
'json' => [