Jump to content

Generate invoice


lolgc1

Recommended Posts

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

Link to comment
Share on other sites

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] => ) )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...