legal
expense

Create an expense

Changed on
post/legal/{connection_id}/expense

Request

  • Base URL: https://api.unified.to
  • URL: https://api.unified.to/legal/{connection_id}/expense
  • Auth: API key in header authorization

Path parameters

connection_idstring required

ID of the connection

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

unique identifier for the expense

created_atstring date-time

when the expense was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

updated_atstring date-time

when the expense was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

matter_idstring

pointer to the Legal Matter this expense is recorded against

user_idstring

HR Employee who incurred or recorded the expense (reference to HrisEmployee)

descriptionstring

free-text description of the expense

incurred_atstring date-time

date the expense was incurred (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

quantitynumber

number of units

price_amountnumber

unit price

total_amountnumber

total amount of the expense

currencystring

ISO 4217 currency code

type'HARD_COST' | 'SOFT_COST' | 'OTHER'

hard cost, soft cost or other

categorystring

the vendor's expense category name

is_billableboolean

whether the expense is billable

is_billedboolean

whether the expense has been billed

invoice_idstring

pointer to the Accounting Invoice this expense was billed on (reference to AccountingInvoice)

expense_codestring

UTBMS/LEDES expense code

rawobject

raw data from the integration

Response

Successful

idstring

unique identifier for the expense

created_atstring date-time

when the expense was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

updated_atstring date-time

when the expense was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

matter_idstring

pointer to the Legal Matter this expense is recorded against

user_idstring

HR Employee who incurred or recorded the expense (reference to HrisEmployee)

descriptionstring

free-text description of the expense

incurred_atstring date-time

date the expense was incurred (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

quantitynumber

number of units

price_amountnumber

unit price

total_amountnumber

total amount of the expense

currencystring

ISO 4217 currency code

type'HARD_COST' | 'SOFT_COST' | 'OTHER'

hard cost, soft cost or other

categorystring

the vendor's expense category name

is_billableboolean

whether the expense is billable

is_billedboolean

whether the expense has been billed

invoice_idstring

pointer to the Accounting Invoice this expense was billed on (reference to AccountingInvoice)

expense_codestring

UTBMS/LEDES expense code

rawobject

raw data from the integration

Changes