Request money API

let result1 = await axios.post(`https://api.coinbase.com/v2/accounts/${user_id}/transactions/`, JSON.stringify({

                type: "request",

                to: "xxxx@gmail.com",

                amount: "0.001",

                currency: "BTC",

                description: `${user_name} requested you to send 0.001 BTC`

            }), {

                headers: {

                    'Content-Type': 'application/json',

                    'Authorization': `bearer ${access_token}`,

                    'CB-VERSION': '2021-11-06',

                }

            })

When I call this axios, it returns 404 Not Found.

I have already tried to use curl but its return service is unavailable at current.

Thank you for your reading and I really appreciate your help.

Hi @ ductridev , thank you for what you’ve reported regarding encountering a 404 error when utilising https://api.coinbase.com/v2/accounts/${user_id}/transactions with type “request” is a known problem on our end that have been already escalated to our engineering team, and we will get back to you once we have more information.

About the error “service_unavailable”, we are currently in the process of investigating this as it seems to be a spread out issue, and we are working to fix this issue. We will update this post once we have more information to share, thanks folks for your patience.

Edit: Response updated.

3 Likes

hello i have an issue i trying to sendMoney via below code -

        const sendMoney = await coinbase.sendMoney(account.id, {
            "type": "send",
            "to": to,
            "amount": currency_amount,
            "currency": currency,
            "idem": idem
        });

It returns

{
errors: [
{
id: ‘internal_server_error’,
message: ‘An error has occurred. If this problem persists, please visit https://support.coinbase.com 6 for assistance.’
}
]
}
1 Like

Hello @asifahmad11996 :smile:

Welcome to the forum! Based on your original forum post, we can see that your issue has been resolved. We are glad to know that. Feel free to post your questions or concerns here in the Coinbase Cloud Developer Forum as we’re always happy to help you.

Have a great day!

3 Likes

Hi @ductridev! Apologies for the delay in our response. Based on the information we gathered from our team, we would like to inform you that the Request Money endpoint has been removed and is no longer supported.

1 Like