Retrieve an expense

GET/accounting/{connection_id}/expense/{id}

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
idstring required
ID of the Expense

Returns

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
user_idstring
references a HR employee/user (reference to HrisEmployee)
contact_idstring
(reference to AccountingContact)
account_idstring
(reference to AccountingAccount)
namestring
payment_methodstring
posted_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
total_amountnumber
currencystring
tax_amountnumber
reimbursed_amountnumber
reimbursed_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
approved_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
approver_user_idstring
references HR employee/user (reference to HrisEmployee)
lineitems array
attachments array
organization_idstring
users array
approver_users array
expense approver(s); id is HR employee/user when resolved
status enum
Valid values:
"DRAFT"
"SUBMITTED"
"PENDING"
"APPROVED"
"REJECTED"
external_numberstring
const options = {
  method: 'GET',
  url: 'https://api.unified.to/accounting/5de520f96e439b002043d8dc/expense/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?