Checkout admin API returns 404 error not found

vipersecommerce
Shopify Partner
2 0 0

I have payment app which is running in PHP. When Complete order button is clicked in Shopify checkout. Shopify will trigger an inbound API call to our custom payment API. It worked well, but for last 2 months we are facing problem. Particularly when checkout button is Pay Now instead of Complete Order. When Pay now button is clicked then we get request body with cancel url having 

"cancel_url":"https:/{shopify-domain}/checkouts/c/{checkout-token}/processing

We get checkout token from above URL and do Rest Admin API but it return 404 error: {Not Found} response.

 

But when checkout button is having "Complete Order" then cancel URL from request body from Shopify is different and do not have processing in the end part of URL

 

"cancel_url":"https:/{shopify-domain}/checkouts/{checkout-token}

For this checkout token we get response on calling Rest Admin API endpoint.

https://shopify.dev/api/admin-rest/2022-10/resources/checkout#get-checkouts-token

 

Any reason why for processing checkout, unable to retrieve the checkout response properly?

Replies 0 (0)