API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Create simple invoice

0
Hi guys

I have searched Google thin for results, but couldn't seem to find an answer.
If I want, through php to create a simple invoice with two invoice lines. What's the approach from scratch?

1. How do I connect
2. How do I create an invoice
3. How do I add two lines to the invoice
4. How do I get the api to return the new invoice in pdf?

Hope there is a kind sole to help me out.

Best Regards
created Jun 18, 2016 by PhillipStemann
0% Accept Rate
Q 1 A 0 C 0

1 Answer

0

Hi

1.

Make a developer account: https://www.e-conomic.com/developer

Grab a demo account: https://www.e-conomic.dk/regnskabsprogram/demo-alle

Connect the demo and the developer accounts: https://www.e-conomic.com/developer/connect

2.

POST an invoice including the lines: https://restdocs.e-conomic.com/#post-invoices-experimental-drafts

3.

Include your lines in the POST in step 2.

4.

You can see a demo of getting the pdf here: 

https://restdemo.e-conomic.com/index.html?path=invoices-experimental/booked

"pdf": { "download": "https://restapi.e-conomic.com/invoices-experimental/booked/20001/pdf?demo=true"

 

answered Jun 20, 2016 by Apps
edited Jun 20, 2016 by olej
Visma e-conomic A/S
...