Replies: 3 comments 3 replies
-
Sorry, just spotted a typo in muy example code - makes no difference though, still doesn't work: Amended code: string apiKey = "sk_sandbox_yv0JkVbpxQQuztH-TvVsxmmPstC3Lu_poUlwhgSWGyzk-Q8VJDWUO6s3PeoLcHySDwjJDd2xVkfcyNPSX6yPJA"; var client = new RestClient("https://api.dojo.tech"); request.AddHeader("version", "2024-02-05"); RestResponse response = client.PostAsync(request).Result; Console.WriteLine($"Status: {response.StatusCode}"); |
Beta Was this translation helpful? Give feedback.
-
Hello,
Thanks for getting back to me. I've corrected the spelling, but client.PostAsync now throws an HttpRequestException: Request failed with status code MethodNotAllowed.
Regards,
Matt.
From: Martin Hay ***@***.***>
Sent: 07 July 2025 14:23
To: dojo-engineering/feedback ***@***.***>
Cc: Matt Pemberton ***@***.***>; Author ***@***.***>
Subject: Re: [dojo-engineering/feedback] Terminals endpoint return s 'Not found' (Discussion #21)
You don't often get email from ***@***.******@***.***>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
One quick thing to check, your header is using "Authorisation", but should be "Authorization" (US spelling). Also please note that in sandbox, you may not have any terminals assigned by default. Let me know if the request returns anything, thanks.
-
Reply to this email directly, view it on GitHub<#21 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BUJFRUOIKDXU6ICPXSXP5KL3HJYETAVCNFSM6AAAAACAZV4TRKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNRYGQYTKNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Thanks, it seems to be working now |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to develop a Pay at Counter intregration in C# and RestSharp.
I'm trying to get a list of available terminals, based on the examples in the API docs, but I get an empty response and a Status Code of 'NotFound'.
Code (I do have a sandbox API key but have removed it in this snippet for security):
Output:
Status: NotFound
I am, however, able to create a Payment Intent with no problems.
Any ideas where I am going wrong?
Beta Was this translation helpful? Give feedback.
All reactions