Update Invoice Item

PATCH {{baseUrl}}/accounting/invoice-items/:id?raw=false

Update Invoice Item

Request Params

KeyDatatypeRequiredDescription
rawbooleanInclude raw response. Mostly used for debugging purposes

Request Body

{"name"=>"Model Y", "description"=>"Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "code"=>"{{$timestamp}}", "sold"=>true, "purchased"=>true, "tracked"=>true, "taxable"=>true, "inventory_date"=>"2020-10-30", "type"=>"inventory", "sales_details"=>{"unit_price"=>27500.5, "unit_of_measure"=>"pc.", "tax_inclusive"=>true, "tax_rate"=>{"id"=>"123456", "rate"=>10, "code"=>"{{primaryTaxType}}"}}, "purchase_details"=>{"unit_price"=>27500.5, "unit_of_measure"=>"pc.", "tax_inclusive"=>true, "tax_rate"=>{"id"=>"123456", "rate"=>10}}, "quantity"=>1, "unit_price"=>27500.5, "asset_account"=>{"code"=>"{{assetAccountId}}"}, "income_account"=>{"code"=>"{{accountsReceivableAccountCode}}"}, "expense_account"=>{"code"=>"{{accountsExpenseAccountCode}}"}, "tracking_category"=>{"id"=>"123456", "name"=>"New York"}, "tracking_categories"=>[{"id"=>"123456", "name"=>"New York"}, {"id"=>"123456", "name"=>"New York"}], "active"=>false, "row_version"=>"{{invoiceItemRowVersion}}"}

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":"xero","resource":"invoice-items","operation":"update","data":{"id":"12345"}}