Getting 400 Error on applyChangeset of post purchase extension

Getting 400 Error on applyChangeset of post purchase extension

creatpix
Shopify Partner
1 0 0

 

I was trying to create my post-purchase extension, but after successfully creating the token, I encountered a 400 error when passing it to the applyChangeset method:

 

 

{
    "errors": [
        {
            "code": "invalid_request",
            "message": "Changes is not an array"
        }
    ],
    "status": "unprocessed"
}

 

 

Here is my payload:

{"changes":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI4NGM1NDBjOWNmYTA3ZGYxMjEzZTc2YWVmYzUwZDk3ZCIsImp0aSI6ImY3ZjA2MTA4LWY4Y2QtNGZjMC05MGYwLWFiNzUxZjUyYzE1YyIsImlhdCI6MTcyMDE2MzkxOTE0MCwic3ViIjoiNzJkNTAxMWI3ZTc0MTIyY2QyMTQ4NDMxOGYzY2I0ZjMiLCJjaGFuZ2VzIjoxfQ.LqBytOK6-06XWRn29HrbMyudExlBkPYoJsNdw5Yit5E"}

I'm using this Shopify guide as a reference.

Can anyone please help me with this issue?

 

Replies 0 (0)