post https://api-sandbox.branddrive.co/api/v1/invoice
Create a new Invoice
| keys/type | Required/Optional | Description | Default |
|---|---|---|---|
| branchId(number) | Required | Id of the branch the invoice is associated to | |
| issuedAt (date) | Required | date invoice was issued | |
| dueAt (date) | Required | date invoice would be due for payment | |
| currency (string) | Required | invoice currency type, it must be standard currency notation. e.g. NGN, USD, etc | |
| customerId (number) | Required | id of customer that the invoice is issued to | |
| SONumber (number) | optional | ||
| invoiceName (string) | Required | Name of invoice | |
| paymentMethods (array) | Optional | Payment methods available for the invoice | |
| procurements (array) | Required | Things whose payment are to be covered by the invoice, it is an array of the object of products | |
| productId (number) | Required | id of product | |
| decription (string) | Optional | The description | |
| quantity (number) | Required | Quantity of the product | |
| price (number) | Required | Price of a single product | |
| isTaxAdded (boolean) | Required | Checks if tax is added or not |
