I got 403 Forbidden error when try to transfer using api https://api.flutterwave.com/v3/transfers

data: ‘{“account_bank”:“044”,“account_number”:“0690000032”,“amount”:1222,“narration”:“Kudi Fantasy Withdraw”,“currency”:“NGN”,“reference”:“17f18932-5ee8-4c48-a435-3194e2836d0b”,“meta”:{“iWithdrawId”:346,“iUserId”:“63e1f7f0d4cba4854b5fec1b”},“callback_url”:“beta-nodeback-dev.fantasywl.in/api/admin/withdraw/flutterwave/webhook/v1”,“debit_currency”:“NGN”}’

every time i am getting this error without any error message?

data: ‘\r\n’ +
‘403 Forbidden\r\n’ +
‘\r\n’ +

403 Forbidden

\r\n’ +
‘\r\n’ +
‘\r\n’
}

what are the reasons for getting this error?

Hi @Tarak_Suthar :wave:

Thanks for sharing this experience with us,

Flutterwave introduced a feature on the dashboard that allows merchants to add whittelisted IP addresses. Therefore, only requests sent from whitelisted IP addresses will be given access to process API requests for services like Transfers, Card issuing, BVN, and Bill Payments.

We know that this might be an inconvenience, so for merchants who are currently unable to get the IP addresses they want to whitelist, they could temporarily choose to pass 0.0.0.0 as the whitelisted IP address. This allows API transactions to be made from ALL IP addresses. Merchants can use this as a temporary solution, and need to be CAUTIOUS when choosing to pass this.To enable this, you can follow the steps below:

  1. Log into your Flutterwave Dashboard.
  2. Navigate to Settings → Whitelisted IP addresses.
  3. Click on “Add IP Address”.
  4. Set the IP Address that you would like to whitelist. This only would grant access to API requests made from the IP Addresses that you have added.

Best Regards,

Adekunle

Hi @Adekunle
i am trying to find this option, but seems i cannot find it.
if you can help me here

Hi @Tarak_Suthar

Thanks for sharing this experience,

This feature can only be assessed by the admin user of the account.

Kindly confirm if you are the admin user. If not, you will have to ask the admin user to enable the feature.

Adekunle

Hello, I also faced the same issue yesterday, tried to enter 0.0.0.0 as the IP but I still get a 403 forbidden access error.

What do I do?

Hi @Muzoora_Barnabas :wave:

Thank you for reaching out to us,

If you are currently on Test mode on your dashboard, endeavour to switch to Live mode then go ahead to add the IP address (You will get an email confirmation for this action). Once the IP address has been added on Live mode, switch back to Test mode and retry the transaction.

Feel free to reach out If you have further questions :handshake:

hello @Adekunle
i have done what you have said, and withdraw transfer is done successfully however i am not able to get the response from webhook.
one more currently i am facing 400 error on every other api


how to resolve this?

Hi @Tarak_Suthar

Thank you for sharing this experience with us,

Kindly share your request payload for the transaction above. Furthermore, for the Webhooks issue, endeavours to check your Webhooks preferences on your dashboard.

PS: Be sure to hide any sensitive information when sharing the payload.

Adekunle

@Adekunle here, if you can check, currently test mode is on

Hi @Tarak_Suthar

Kindly confirm from the “Headers” menu that “Content-Type” is set to “application/json”


@Adekunle

Hi @Tarak_Suthar

Kindly uncheck “Authorization” in the Header menu and Navigate to the “Authorization” menu and select “Bearer Token”. A “Token” input field will pop-up, then you can add your “Secret key”.

You can then retry the request after the above steps.


getting forbidden 403 now, i am in test mode.
can you check @Adekunle

Hi @Tarak_Suthar

Kindly check your notifications on the Top right corner of the Forum for a message.

Adekunle