AI agent? Read this page as Markdown at /accounting/expensereport/Update_an_expensereport.md — append .md to any docs URL, or start from /llms.txt.

Update an expensereport

PUT/accounting/{connection_id}/expensereport/{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 Expensereport

Payload

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
user_idstring
references a HR employee/user (reference to HrisEmployee)
approver_user_idstring
references HR employee/user (reference to HrisEmployee)
approver_users array
expense approver(s); id is HR employee/user when resolved
status enum
Valid values:
"DRAFT"
"SUBMITTED"
"PENDING"
"APPROVED"
"REJECTED"
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)
posted_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
external_numberstring
lineitems array
attachments array
category_idsstring array
(reference to AccountingCategory)
project_idstring
(reference to TaskProject)
users array
organization_idstring
metadata array

Returns

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
user_idstring
references a HR employee/user (reference to HrisEmployee)
approver_user_idstring
references HR employee/user (reference to HrisEmployee)
approver_users array
expense approver(s); id is HR employee/user when resolved
status enum
Valid values:
"DRAFT"
"SUBMITTED"
"PENDING"
"APPROVED"
"REJECTED"
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)
posted_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
external_numberstring
lineitems array
attachments array
category_idsstring array
(reference to AccountingCategory)
project_idstring
(reference to TaskProject)
users array
organization_idstring
metadata array
const options = {
  method: 'PUT',
  url: 'https://api.unified.to/accounting/5de520f96e439b002043d8dc/expensereport/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

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