Archive Bill

PUT https://api.freshbooks.com/accounting/account/{{accountId}}/bills/bills/{{billId}}

Request Body

{"bill"=>{"vis_state"=>2}}

RESPONSES

status: OK

{"response":{"result":{"bill":{"amount":{"amount":"5.00","code":"CAD"},"attachment":null,"bill_number":null,"bill_payments":[],"created_at":"2020-10-07 21:33:27","currency_code":"CAD","due_date":"2020-11-06","due_offset_days":30,"id":3,"issue_date":"2020-10-07","language":"en","lines":[{"amount":{"amount":"5.00","code":"CAD"},"category":{"category":"Advertising","categoryid":65688,"created_at":"2016-11-17 14:22:35","id":65688,"is_cogs":true,"is_editable":false,"parentid":null,"updated_at":"2020-08-14 12:52:33","vis_state":0},"description":"Food","id":5,"list_index":1,"quantity":"1","tax_amount1":null,"tax_amount2":null,"tax_authorityid1":null,"tax_authorityid2":null,"tax_name1":null,"tax_name2":null,"tax_percent1":null,"tax_percent2":null,"total_amount":{"amount":"5.00","code":"CAD"},"unit_cost":{"amount":"5.00","code":"CAD"}},{"amount":{"amount":"0.00","code":"CAD"},"category":{"category":"Advertising","categoryid":65688,"created_at":"2016-11-17 14:22:35","id":65688,"is_cogs":true,"is_editable":false,"parentid":null,"updated_at":"2020-08-14 12:52:33","vis_state":0},"description":null,"id":7,"list_index":2,"quantity":"1","tax_amount1":null,"tax_amount2":null,"tax_authorityid1":null,"tax_authorityid2":null,"tax_name1":null,"tax_name2":null,"tax_percent1":null,"tax_percent2":null,"total_amount":{"amount":"0.00","code":"CAD"},"unit_cost":{"amount":"0.00","code":"CAD"}}],"outstanding":{"amount":"5.00","code":"CAD"},"overall_category":"Advertising","overall_description":"Food","paid":{"amount":"0.00","code":"CAD"},"status":"unpaid","tax_amount":{"amount":"0.00","code":"CAD"},"total_amount":{"amount":"5.00","code":"CAD"},"updated_at":"2020-10-09 15:42:26","vis_state":2}}}}