Get Expense
GET {{baseUrl}}/accounting/expenses/:id?raw=false
Get Expense
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
raw | boolean | Include raw response. Mostly used for debugging purposes | |
cursor | null | ||
fields | null | ||
pass_through[search] | null |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-apideck-consumer-id | string | (Required) ID of the consumer which you want to get or push data from | |
x-apideck-app-id | string | (Required) The ID of your Unify application | |
x-apideck-service-id | string | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | |
Accept | string |
RESPONSES
status: OK
{"status_code":200,"status":"OK","service":"quickbooks","resource":"Expenses","operation":"one","data":{"account_id":"123456","transaction_date":"2021-05-01T12:00:00.000Z","line_items":[{"total_amount":275,"id":"12345","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","code":"N-T","name":"GST on Purchases","rate":10},"description":"Travel US.","billable":true}],"id":"12345","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","code":"N-T","name":"GST on Purchases","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"}],"custom_mappings":{},"updated_at":"2020-09-30T07:43:32.000Z","created_at":"2020-09-30T07:43:32.000Z","row_version":"1-12345"}}