accounting
expense

Update an expense

put/accounting/{connection_id}/expense/{id}

Request

  • Base URL: http://api.unified.to
  • URL: http://api.unified.to/accounting/{connection_id}/expense/{id}
  • Auth: API key in header authorization

Path parameters

connection_idstring required

ID of the connection

idstring required

ID of the Expense

Query parameters

fieldsstring[]

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

Request body

idstring
created_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

updated_atstring date-time

(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_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

total_amountnumber
currencystring
tax_amountnumber
reimbursed_amountnumber
reimbursed_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

approved_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

approver_user_idstring

references HR employee/user (reference to HrisEmployee)

organization_idstring
status'DRAFT' | 'SUBMITTED' | 'PENDING' | 'APPROVED' | 'REJECTED' | 'PAID'
external_numberstring
category_idsstring[]
project_idstring

(reference to TaskProject)

taxrate_idstring

ref -> AccountingTaxrate applied to the expense

exchange_ratenumber

Exchange rate to the base/home currency at the expense date

type'USER' | 'COMPANY'

USER = employee spend; COMPANY = books/purchase expense

rawunknown

Response

Successful

idstring
created_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

updated_atstring date-time

(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_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

total_amountnumber
currencystring
tax_amountnumber
reimbursed_amountnumber
reimbursed_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

approved_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

approver_user_idstring

references HR employee/user (reference to HrisEmployee)

organization_idstring
status'DRAFT' | 'SUBMITTED' | 'PENDING' | 'APPROVED' | 'REJECTED' | 'PAID'
external_numberstring
category_idsstring[]
project_idstring

(reference to TaskProject)

taxrate_idstring

ref -> AccountingTaxrate applied to the expense

exchange_ratenumber

Exchange rate to the base/home currency at the expense date

type'USER' | 'COMPANY'

USER = employee spend; COMPANY = books/purchase expense

rawunknown

Changes

No recorded changes to this operation across all 1 revision of this API.