Add Bill from Vendor
POST https://api.freshbooks.com/accounting/account/{{accountId}}/bills/bills
Request Body
{"bill"=>{"vendorid"=>"5", "previous_vendor_id"=>nil, "bill_number"=>nil, "issue_date"=>"2020-10-09", "due_offset_days"=>39, "currency_code"=>"USD", "language"=>"en", "lines"=>[{"tax_percent1"=>nil, "tax_percent2"=>nil, "unit_cost"=>{"amount"=>"125", "code"=>"USD"}, "description"=>"Malm Side Table", "tax_name1"=>nil, "quantity"=>1, "tax_name2"=>nil, "compounded_tax"=>false, "categoryid"=>"65773"}, {"tax_percent1"=>nil, "tax_percent2"=>nil, "unit_cost"=>{"amount"=>"250", "code"=>"USD"}, "description"=>"Malm Book Shelf", "tax_name1"=>nil, "quantity"=>1, "tax_name2"=>nil, "compounded_tax"=>false, "categoryid"=>"65773"}], "attachment"=>nil}}
RESPONSES
status: OK
{"response":{"result":{"bill":{"amount":{"amount":"375.00","code":"USD"},"attachment":null,"bill_number":null,"bill_payments":[],"created_at":"2020-10-09 15:28:49","currency_code":"USD","due_date":"2020-11-17","due_offset_days":39,"id":7,"issue_date":"2020-10-09","language":"en","lines":[{"amount":{"amount":"125.00","code":"USD"},"category":{"category":"Office Expenses \u0026 Postage","categoryid":65773,"created_at":"2016-11-17 14:22:35","id":65773,"is_cogs":false,"is_editable":false,"parentid":null,"updated_at":"2016-11-17 14:22:35","vis_state":0},"description":"Malm Side Table","id":13,"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":"125.00","code":"USD"},"unit_cost":{"amount":"125.00","code":"USD"}},{"amount":{"amount":"250.00","code":"USD"},"category":{"category":"Office Expenses \u0026 Postage","categoryid":65773,"created_at":"2016-11-17 14:22:35","id":65773,"is_cogs":false,"is_editable":false,"parentid":null,"updated_at":"2016-11-17 14:22:35","vis_state":0},"description":"Malm Book Shelf","id":15,"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":"250.00","code":"USD"},"unit_cost":{"amount":"250.00","code":"USD"}}],"outstanding":{"amount":"375.00","code":"USD"},"overall_category":"Office Expenses \u0026 Postage","overall_description":"Malm Side Table","paid":{"amount":"0.00","code":"USD"},"status":"unpaid","tax_amount":{"amount":"0.00","code":"USD"},"total_amount":{"amount":"375.00","code":"USD"},"updated_at":"2020-10-09 15:28:49","vis_state":0}}}}