Skip to content

Commit b712a06

Browse files
committed
Update readme
1 parent 655c0a5 commit b712a06

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: README.md

+20
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,26 @@ if err != nil {
6767
}
6868
```
6969

70+
## Send invoice for download
71+
In order to download an invoice, the status must first be changed to sent. You can do this with the following function.
72+
73+
```go
74+
sendInvoice, err := SendInvoicePDF(SendInvoice{invoice.Objects.ID, "VPDF", "false", "token"})
75+
if err != nil {
76+
fmt.Println(err)
77+
}
78+
```
79+
80+
## Downlaod invoice
81+
When the invoice has been marked as sent, it can be downloaded. The data will be returned in a string.
82+
83+
```go
84+
download, err := DownloadInvoicePDF(DownloadInvoice{invoice.Objects.ID, "true", "true", "token"})
85+
if err != nil {
86+
fmt.Println(err)
87+
}
88+
```
89+
7090
## Get contacts
7191

7292
If you want to read out all customers, then it goes as follows:

0 commit comments

Comments
 (0)