MONEI / Shopify-api-node

Node Shopify connector sponsored by MONEI
https://monei.com/shopify-payment-gateway/
MIT License
940 stars 279 forks source link

disputeFileUpload.create 404 #580

Closed AlexJustt closed 1 year ago

AlexJustt commented 1 year ago

Hey, there is 404 response on disputeFileUpload.create Response code 404 (Not Found).

Please advice.

lpinca commented 1 year ago

I don't know, try to specify an API version (if you aren't already doing it) and make sure that the shopify_payments_dispute_file_uploads access scope is enabled.

AlexJustt commented 1 year ago

Hey Luigi, Im using the version and every other call is working properly, shopify_payments_dispute_file_uploads access scope is enabled

The access part where do I exactly enable it I looked at the permissions and most of it is read access and only write for files, or there is another access I can set?

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Luigi Pinca @.> Sent: Tuesday, February 14, 2023 11:03:33 PM To: MONEI/Shopify-api-node @.> Cc: AlexJustt @.>; Author @.> Subject: Re: [MONEI/Shopify-api-node] disputeFileUpload.create 404 (Issue #580)

I don't know, try to specify an api version (if you aren't already doing it) and make sure that the shopify_payments_dispute_file_uploads access scope is enabled.

— Reply to this email directly, view it on GitHubhttps://github.com/MONEI/Shopify-api-node/issues/580#issuecomment-1430374751, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZZVUDR6AWAA4YJKXLZXSXTWXPXKLANCNFSM6AAAAAAU3KVWOM. You are receiving this because you authored the thread.Message ID: @.***>

lpinca commented 1 year ago

Also make sure that there is a dispute with id disputeId when shopify.disputeFileUpload(disputeId, params) is called.

AlexJustt commented 1 year ago

Hey Ipinca, thanks for the prompt reply. All other calls are working properly.

For example I can get the dispute.

The access scope upload evidence, I cant find it anywhere, I have different read and writes but not this one, do you have a link or some guidance where I can find it?

I would expect 403 or something in case of bad permission.

And yes I added id and params, using also shopify docs.

lpinca commented 1 year ago

Yes, 404 means that the resource is not found. Try to send the same request with curl or another client and see if you get the same response.

The shopify_payments_dispute_file_uploads access scope is mentioned here https://shopify.dev/docs/api/admin-rest/2023-01/resources/dispute-file-upload but I also can't find it in this list https://shopify.dev/docs/api/usage/access-scopes#authenticated-access-scopes.

AlexJustt commented 1 year ago

Yes, I got the same error on curl (postman), I will try to talk with Shopify support.

Thanks for your time, I will update here their reply/solution.

lpinca commented 1 year ago

I'm closing this due to inactivity.