Im unable to create Virtual Account Number using API in PHP
{“error_id”:“ERRNO501826344T1656087656577”,“message”:“Application error. Please contact support”,“code”:“app_error”}
This is sample of the API, please correct me if there’s an error in the code or maybe from your server
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.flutterwave.com/v3/virtual-account-numbers', CURLOPT_RETURNTRANSFER => true, CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'{ "email": "developers@flutterwavego.com", "is_permanent": true, "bvn": 12345678901, "tx_ref": "VA12", "phonenumber": 08109328188, "firstname": "Angela", "lastname": "Ashley", "narration": "Angela Ashley-Osuzoka" }', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: Bearer FLWSECK_TEST-af5cc6e5d4b174dcb757w73348ffb97b-X' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;