404 and 403 when requesting API

Hello,

I keep getting a 404 error or 403 error when trying to request payout information using python. I have the correct url/ and authentication token because when I paste it into a browser in which I am logged into Shopify it gives me the JSON.

Any idea what I may be doing incorrectly?

Example URL: https://“API_Key”:"“API_Access_Token”@fireplacebloweroutlet.myshopify.com/admin/api/2023-01/payouts.json

Hi @HN_Bullfrog !

The URL you’re using for that call is not an Admin API endpoint. The actual endpoint is “/admin/api/2023-01/shopify_payments/payouts.json” and is described in the Payouts documentation.

The reason you’re getting json output when logged into the Admin is because, as the store owner, you have access to that information. The API key and access token you’re including in the URL is not actually doing anything; you’re not making an API call, you’re simply looking at your payouts as the store’s account owner using Shopify’s web based service.