Editing customer note or editing default address via API

eleveilac
Shopify Partner
3 0 0

I am trying to edit customer note or default address via REST API. It returns me 200 but nothing changes on the customer informations. I have checked my code so many times. 

Replies 4 (4)

eleveilac
Shopify Partner
3 0 0

I am using postman btw. 

Liam
Shopify Staff
2731 298 769

HI Eleveilac,

 

Just to confirm, are you making a PUT request to 

/admin/api/2023-10/customers/{customer_id}/addresses/{address_id}.json as per our documentation here

 

 

Also, if you're getting a 200 response, there should be some data returned in the response. This could provide clues as to what's going wrong and help with troubleshooting. 

 

Hope this helps!

 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Liam
Shopify Staff
2731 298 769

Another thing to check is, if the call works as a curl request rather than from postman?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

eleveilac
Shopify Partner
3 0 0

Yes I did put request. and it returns the same thing it did not change anything I send. I want to edit default address company part. It does not show any error.