FROM CACHE - en_header

PHPShopify\Exception\ApiException: signature - has already been taken

Solved
rexb
Shopify Partner
23 0 2

I am using this for my Laravel project, https://github.com/phpclassic/php-shopify

Has anyone came across this issue:

 

PHPShopify\Exception\ApiException: signature - has already been taken

 

 

(new Shopify())->Customer($data['customer_id'])->Address($shopify_address_id)->put($forUpdate);

 

This is the value of my $dataForUpdate 

{
    "address1": "Urthaleramt 7",
    "first_name": "John",
    "last_name": "Doe",
    "zip": "3684",
    "city": "St.Oswald"
  }

 And this is the response:

{
  "errors": {
    "signature": [
      "has already been taken"
    ]
  }
}

Can   someone help me clarify what does the error mean?

 

Thank you

 

Accepted Solution (1)

Accepted Solutions
SBD_
Shopify Staff
Shopify Staff
1098 146 220

This is an accepted solution.

Hey @rexb,

 

I believe each address needs to be unique - try removing similar addresses and try again.

 

Let me know if you're still stuck.

Scott | Developer Support @ 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

View solution in original post

Replies 3 (3)
SBD_
Shopify Staff
Shopify Staff
1098 146 220

This is an accepted solution.

Hey @rexb,

 

I believe each address needs to be unique - try removing similar addresses and try again.

 

Let me know if you're still stuck.

Scott | Developer Support @ 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

rexb
Shopify Partner
23 0 2
Anton999
Shopify Partner
2 0 2

Hey @SBD_,

It seems I have a similar issue. Could you please provide a bit more information? What combination of fields should be unique?