Shopify Payments APIs 404

Solved
Alex_Deme
Shopify Partner
3 1 0

Hello.

I have an issue with Shopify Payments APIs endpoints.
for example:

I have an access_token for SOME_SHOP from oAuth with scopes 

  • Read orders, transactions, and fulfillments
  • Read Shopify Payments balance and payouts

So. I want to get 

GET https://{SOME_SHOP}.myshopify.com/admin/api/2019-10/shopify_payments/balance/transactions.json

and I got 404 status code

GET /admin/api/2019-10/shopify_payments/balance.json
{
    "errors": "Not Found"
}

 I tried with different versions of the API and result is the same.

The same issue with 

GET /admin/api/2019-10/shopify_payments/balance/transactions.json

I send access token via X-Shopify-Access-Token. And I didn't find solution for shopify_api gem (rails app)

What I did wrong ? I 

0 Likes
OTM
Shopify Expert
667 170 236

Hi, @Alex_Deme ,

This is Evita from On The Map.

 

Did you provide payout_id param in URL?

GET /admin/api/2019-10/shopify_payments/balance/transactions.json?payout_id=623721858

 

Best, Evita

On The Map Marketing | Developing custom Shopify Sites & Apps is our thing

- Install our latest app Accessibly - Makes your store accessible for everyone, helps to avoid fines
- Inc 5000 | Shopify Parners | 20+ stores launched | 300+ active clients
- Need help with your Shopify store? Reach out to us!
0 Likes
Alex_Deme
Shopify Partner
3 1 0

 


@OTM wrote:

Hi, @Alex_Deme ,

This is Evita from On The Map.

 

Did you provide payout_id param in URL?

GET /admin/api/2019-10/shopify_payments/balance/transactions.json?payout_id=623721858

 

Best, Evita


Hi Evita, thanks for the reply.

 

Yes, I did. The result is the same.

I tried with id and without.


 

0 Likes
Alex_Deme
Shopify Partner
3 1 0

This is an accepted solution.

Found a solution with the help of specialists from online chat support.

Endpoints were not available because the Shopify Payments module is not available in my region. 

0 Likes
myvirtualteans
Shopify Partner
10 0 1

Hi

I am trying to hit shopify_payments/payouts.json and shopify_payments/balance.json API But I am getting 404 error.

FULL RESPONSE

Unirest\Response Object
(
    [code] => 404
    [raw_body] => 
    [body] => 
    [headers] => Array
        (
            [0] => HTTP/1.1 404 Not Found
            [Date] => Fri, 22 May 2020 04:39:45 GMT
            [Content-Type] => text/html
            [Transfer-Encoding] => chunked
            [Connection] => keep-alive
            [Set-Cookie] => __cfduid=d3c400e2595111fe59d9664ca58ef56211590122385; expires=Sun, 21-Jun-20 04:39:45 GMT; path=/; domain=.myshopify.com; HttpOnly; SameSite=Lax
            [X-Sorting-Hat-PodId] => 48
            [X-Sorting-Hat-ShopId] => 4774133809
            [Vary] => Accept-Encoding
            [Referrer-Policy] => origin-when-cross-origin
            [X-Frame-Options] => DENY
            [X-ShopId] => 4774133809
            [X-ShardId] => 48
            [X-Stats-UserId] => 
            [X-Stats-ApiClientId] => 3211937
            [X-Stats-ApiPermissionId] => 207370256433
            [HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT] => 1/40
            [X-Shopify-Shop-Api-Call-Limit] => 1/40
            [X-Shopify-API-Version] => 2020-01
            [Strict-Transport-Security] => max-age=7889238
            [X-Shopify-Stage] => production
            [Content-Security-Policy] => default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopify.cn https://checkout.shopifycs.com https://js-agent.newrelic.com https://bam.nr-data.net https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fshopify_payments%2Fapi%2Fpayouts&source%5Bsection%5D=admin_api&source%5Buuid%5D=7f9df704-2307-4db8-b9a5-6d7f06e7edb2
            [X-Content-Type-Options] => nosniff
            [X-Download-Options] => noopen
            [X-Permitted-Cross-Domain-Policies] => none
            [X-XSS-Protection] => 1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fshopify_payments%2Fapi%2Fpayouts&source%5Bsection%5D=admin_api&source%5Buuid%5D=7f9df704-2307-4db8-b9a5-6d7f06e7edb2
            [X-Dc] => gcp-us-east1,gcp-us-central1,gcp-us-central1
            [Content-Encoding] => gzip
            [X-Request-ID] => 7f9df704-2307-4db8-b9a5-6d7f06e7edb2
            [CF-Cache-Status] => DYNAMIC
            [Expect-CT] => max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
            [Server] => cloudflare
            [CF-RAY] => 5973daed1a1b73dd-IAD
            [alt-svc] => h3-27=":443"; ma=86400, h3-25=":443"; ma=86400, h3-24=":443"; ma=86400, h3-23=":443"; ma=86400
            [cf-request-id] => 02dc472830000073dd6fb53200000001
        )

)

 

0 Likes
NaijaCTO
New Member
1 0 0

I was having the same issue as well, basically if the store does not have payments enabled you just get a 404 error, rather than a much more sensible error message.

Also Shopify payments is only available in some regions, see full list here.

https://help.shopify.com/en/manual/payments/shopify-payments/shopify-payments-requirements#supported...

Solution
Ensure your region is suported
Ensure shopify payments is enabled on the store (e.g your test store)

0 Likes