FROM CACHE - en_header

Wrong exception thrown when updating customers address

Ivan_loyalzoo
Tourist
7 0 1

Hi,

i am using admin api to update customer data, sometimes it might contain address.

Afterwards i will persist customer addressId so i can maintain it, meaning i will try to update that exact address at some point in future.

So i noticed that when updating customer if invalid address id is supplied Shopify throws "InvalidCustomerId" exception rather than "InvalidAddressId".

This is not happenning when updating e.g. email or phone, then appropriate exception is thrown.

I know there's a separate api to update address only but would not like to use that one, this seems like a bug that needs to be fixed.

Anyone had same experience, or maybe i'm missing something?

 

Thanks in advance

 

Cheers

 

Replies 0 (0)