lolgc1 Posted September 6, 2018 Report Posted September 6, 2018 Hi. i want to generate an invoice, i currently have the code below, but it doesnt work. $today = date("Y/m/d"); $response = $api->get("invoices", "createFromServices", array('client_id' => $client_id), 'service_ids' => array(181), 'currency' => 'DKK', 'date_due' => date("Y/m/d"), 'allow_pro_rata' => false, 'services_renew' => true); Im trying to generate the invoice and then generate the link to pay for the invoice Quote
lolgc1 Posted September 6, 2018 Author Report Posted September 6, 2018 Nvm, i need to get the link for the invoice now, so i can pay it. How? I got: $response = $api->get("services", "getBuildProcess", array('contact_info' => array('client_id' => $client_id), 'amount' => 1000, 'currency' => 'DKK', 'invoice_amounts' => array(349))); No clue if its even the right function I get stdClass Object ( [error] => stdClass Object ( [message] => The requested resource does not exist. [response] => ) ) Quote
Blesta Addons Posted September 6, 2018 Report Posted September 6, 2018 to create you need to call the post function not the get function. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.