Update Expense

PATCH {{baseUrl}}/accounting/expenses/:id?raw=false

Update Expense

Request Params

KeyDatatypeRequiredDescription
rawbooleanInclude raw response. Mostly used for debugging purposes

Request Body

{"account_id"=>"123456", "transaction_date"=>"2021-05-01T12:00:00.000Z", "line_items"=>[{"total_amount"=>275, "tracking_categories"=>[{"id"=>"123456", "name"=>"New York"}, {"id"=>"123456", "name"=>"New York"}], "account_id"=>"123456", "customer_id"=>"12345", "department_id"=>"12345", "location_id"=>"12345", "tax_rate"=>{"id"=>"123456", "rate"=>10}, "description"=>"Travel US.", "billable"=>true}], "number"=>"OIT00546", "customer_id"=>"12345", "supplier_id"=>"12345", "company_id"=>"12345", "department_id"=>"12345", "payment_type"=>"cash", "currency"=>"USD", "currency_rate"=>0.69, "type"=>"expense", "memo"=>"For travel expenses incurred on 2024-05-15", "tax_rate"=>{"id"=>"123456", "rate"=>10}, "total_amount"=>275, "custom_fields"=>[{"id"=>"2389328923893298", "name"=>"employee_level", "description"=>"Employee Level", "value"=>"Uses Salesforce and Marketo"}, {"id"=>"2389328923893298", "name"=>"employee_level", "description"=>"Employee Level", "value"=>"Uses Salesforce and Marketo"}], "row_version"=>"1-12345"}

HEADERS

KeyDatatypeRequiredDescription
x-apideck-consumer-idstring(Required) ID of the consumer which you want to get or push data from
x-apideck-app-idstring(Required) The ID of your Unify application
x-apideck-service-idstringProvide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"status_code":200,"status":"OK","service":"quickbooks","resource":"Expenses","operation":"update","data":{"id":"12345"}}