Shopify Payouts returns 404

Solved
amakadev
New Member
2 0 0

Hello.

Sometimes we have an issue where the 404 status code is returned from the

shopify_payments/payouts.json

endpoint for one of our customers.

We have checked them if:

  • They are in a valid location (supported by Shopify Payments)
  • They have a valid plan (premium/trial)
  • They have enabled Shopify Payments

And it seems that they only haven't enabled Shopify Payments - I thought this is the answer for "Why this endpoint returned 404." but it wasn't;

I'd tried to reproduce this shop configuration on my newly created account by

  • Choosing Australia as a region
  • Disabling Shopify Payments

Then I wanted to make sure that there is an option for my and the customer account (returned from shop.json) that equals:

"checkout_api_supported"false

And indeed it was.

After that, I've expected:

shopify_payments/payouts.json

to return 404 for both of those accounts (the real and the testing one), but the results differed.

Even with Shopify Payments disabled, my testing account returned status code 200, and I couldn't do anything to make this endpoint return 404 (except deleting/pausing this shop). And I would really like to know why this is happening. What should I change on my testing account to make this endpoint returned 404?

I may send you ID's of these shops if this could help.

I really appreciate any help you can provide.

 

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
310 42 54

Hey @amakadev 

Can you provide an x-request-id response header for one of the calls that 404s? 

Kevin_A | 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

0 Likes
amakadev
New Member
2 0 0

Yes, of course, there is an example.

41c86b7f-4e2b-480c-a984-d902a3f4c4ee

Additionally, I include Request ID for my testing account where Shopify Payments is disabled, but status code 200 is returned instead of an expected 404.

34dffc9a-fdf5-4f86-8e56-67d39fbfd36f

I will be thankful if you explain the difference between those two accounts and their responses in the context of payouts.

Thanks

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
310 42 54

This is an accepted solution.

Hey @amakadev 

The 404 is likely because that shop doesn't have (and has never had) Shopify Payments enabled. I believe if you have it enabled or have ever had it enabled in the past on a shop, this request would 200. 

Kevin_A | 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

0 Likes