Delete Credit

PUT https://api.freshbooks.com/accounting/account/{{accountId}}/credit_notes/credit_notes/{{creditId}}

Request Body

{"credit_note"=>{"vis_state"=>1}}

RESPONSES

status: OK

{"response":{"result":{"credit_note":{"accounting_systemid":"E86Qp","amount":{"amount":"150.00","code":"CAD"},"city":"","clientid":599843,"code":"","country":"","create_date":"2020-07-31","credit_number":"0000069","credit_type":"goodwill","creditid":30947,"currency_code":"CAD","current_organization":"Squarespace","description":"Goodwill Credit","display_status":"created","dispute_status":null,"ext_archive":0,"fname":"","id":30947,"language":"en","last_order_status":null,"lname":"","notes":"Free $150 voucher","organization":"Squarespace","paid":{"amount":"150.00","code":"CAD"},"payment_status":"paid","province":"","sentid":1,"status":"created","street":"","street2":"","template":"clean-grouped","terms":"Will be applied to future invoice","vat_name":"","vat_number":"","vis_state":1}}}}