Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gowizzard committed Apr 28, 2021
1 parent 655c0a5 commit b712a06
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,26 @@ if err != nil {
}
```

## Send invoice for download
In order to download an invoice, the status must first be changed to sent. You can do this with the following function.

```go
sendInvoice, err := SendInvoicePDF(SendInvoice{invoice.Objects.ID, "VPDF", "false", "token"})
if err != nil {
fmt.Println(err)
}
```

## Downlaod invoice
When the invoice has been marked as sent, it can be downloaded. The data will be returned in a string.

```go
download, err := DownloadInvoicePDF(DownloadInvoice{invoice.Objects.ID, "true", "true", "token"})
if err != nil {
fmt.Println(err)
}
```

## Get contacts

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

0 comments on commit b712a06

Please sign in to comment.