Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.79 KB

invoice.md

File metadata and controls

73 lines (46 loc) · 1.79 KB

Invoice

Get invoices or invoice

GET /invoices.json | /invoices/{invoice_id}.json

tw.invoices.get(query_string, invoice_id)

Create an invoice

POST /invoices.json

tw.invoices.create(body)

Update an invoice

PUT /invoices/{invoice_id}.json

tw.invoices.update(invoice_id, body)

Delete an invoice

DELETE /invoices/{invoice_id}.json

tw.invoices.delete(invoice_id)

Mark invoice as complete

PUT /invoices/{invoice_id}/complete.json

tw.invoices.complete(invoice_id)

Mark invoice as incomplete

PUT /invoices/{invoice_id}/uncomplete.json

tw.invoices.incomplete(invoice_id)

Get the Currency Codes

GET /currencycodes.json

tw.invoices.currencyCodes()

Create Expense Entry on an Invoice

PUT /invoices/{invoice_id}/lineitems.json

tw.invoices.createExpense(invoice_id, body)

Create time on an Invoice

PUT /invoices/{invoice_id}/lineitems.json

tw.invoices.createExpense(invoice_id, body)