credit transfer - 2 issues

Hello all. First off, does the standing order for transferring credits form work? I have tried it a few times with no success on chrome and firefox. I submit it and nothing happens. And I can't seem to get a transfer done via a curl method - just get a invalid method response. A sample of the code we were trying is: curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{ "amount":"1999999" , "recipient":"paul@somedomain" }' https://atlas.ripe.net/api/v2/credits/transfer/?key=a-real-key Thanks Paul

Hi Paul, First off, yes, the form should work. Do you see an error of some kind in your console? Apologies for the documentation on that endpoint. It needs some more clarification I think. This call will work: ## Request (2) curl -X "POST" "https://atlas.ripe.net/api/v2/credits/transfers/" \ -H 'Authorization: key <your-key>' \ -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \ --data-urlencode "amount=10000" \ --data-urlencode “recipient=<atlasuser email>” Hope this helps, we will work on the docs to make this more clear soon. The key needs to have the ’Transfer credits to another user’ grant of course. Kind regards, Johan ter Beest
On 11 Jul 2023, at 11:09, Paul Emmons <paul@ninja-ix.net> wrote:
Hello all. First off, does the standing order for transferring credits form work? I have tried it a few times with no success on chrome and firefox. I submit it and nothing happens.
And I can't seem to get a transfer done via a curl method - just get a invalid method response. A sample of the code we were trying is: curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{ "amount":"1999999" , "recipient":"paul@somedomain" }' https://atlas.ripe.net/api/v2/credits/transfer/?key=a-real-key
Thanks Paul -- ripe-atlas mailing list ripe-atlas@ripe.net https://lists.ripe.net/mailman/listinfo/ripe-atlas
participants (2)
-
Johan ter Beest
-
Paul Emmons