aiswarya Posted August 25, 2014 Report Posted August 25, 2014 Hi, When Iam trying to create a new invoice using API It always shows errors i use $response = $api->post("invoices", "add", $vars); code to create new invoice But it shows following error internal error: Failed to retrieve the default valuestdClass Object ( [error] => stdClass Object ( [message] => An unexpected error occured. [response] => Internal error: Failed to retrieve the default value ) ) Please any one can help me
0 aiswarya Posted August 26, 2014 Author Report Posted August 26, 2014 hi i tried with different values like, $vars = array( 'client_id' => 1, 'date_billed' => date('2014-08-16 11:04:03'), 'date_due' => date('2014-08-120 11:04:03'), 'currency' => "USDD", 'lines' => array( array( 'description' => "Line item #1", 'amount' => "5.99" ), array( 'description' => "Line item #2", 'amount' => "3.75", 'qty' => 2 ) ), 'delivery' => array("email") ); $response = $api->post("invoices", "add", $vars); and $vars = array( "client_id" => 2, "date_billed" => '20070101', "date_due" => '20070115', "date_closed" => '20070115', "date_autodebit" => '20070101', "status" => 'active',"currency" => 'USD', "note_public" => 'hiiih', "note_private" => 'helooo' ); $response = $api->post("invoices", "add", $vars); like this
0 Tyson Posted August 26, 2014 Report Posted August 26, 2014 Not sure why you have two accounts and posted a duplicate thread, but I responded to your other one. Michael 1
Question
aiswarya
Hi,
When Iam trying to create a new invoice using API It always shows errors
i use
$response = $api->post("invoices", "add", $vars);
code to create new invoice
But it shows following error
internal error: Failed to retrieve the default valuestdClass Object ( [error] => stdClass Object ( [message] => An unexpected error occured. [response] => Internal error: Failed to retrieve the default value ) )
Please any one can help me
3 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now