Skip to content

getAccessToken returns HTTP Code 400  #325

Description

@bhumikadividebuy2024

Hi, I'm trying to call the getAccessToken function. I've put the function call in a try-and-catch block and got this response: "PHPShopify\Exception\CurlException: Request failed with HTTP Code 400.". What am I doing wrong here?

I've already set the ShopUrl with the 'shop.myshopify.com' format.

I've verified the params and URL and the details are as below.

API URL: https://{store_name}.myshopify.com/admin/oauth/access_token
params: {
    "client_id" : "client_id",
    "client_secret" : "client_secret",
    "code": "code"
}

Error:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions