Field | Type | Required | Description | Example |
---|---|---|---|---|
Number |
*string | ➖ | Number. | OIT00546 |
TransactionDate |
time.Time | ✔️ | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | 2021-05-01T12:00:00.000Z |
AccountID |
string | ✔️ | The unique identifier for the ledger account that this expense should be credited to. | 123456 |
CustomerID |
*string | ➖ | The ID of the customer this entity is linked to. Used for expenses that should be marked as billable to customers. | 12345 |
SupplierID |
*string | ➖ | The ID of the supplier this entity is linked to. | 12345 |
CompanyID |
*string | ➖ | The company or subsidiary id the transaction belongs to | 12345 |
DepartmentID |
*string | ➖ | The ID of the department this expense is linked to. | 12345 |
PaymentType |
*components.ExpensePaymentType | ➖ | The type of payment for the expense. | cash |
Currency |
*components.Currency | ➖ | Indicates the associated currency for an amount of money. Values correspond to ISO 4217. | USD |
CurrencyRate |
*float64 | ➖ | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 |
Type |
*components.ExpenseType | ➖ | The type of expense. | expense |
Memo |
*string | ➖ | The memo of the expense. | For travel expenses incurred on 2024-05-15 |
TaxRate |
*components.LinkedTaxRateInput | ➖ | N/A | |
TotalAmount |
*float64 | ➖ | The total amount of the expense line item. | 275 |
LineItems |
[]components.ExpenseLineItemInput | ✔️ | Expense line items linked to this expense. | |
CustomFields |
[]components.CustomField | ➖ | N/A | |
RowVersion |
*string | ➖ | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | 1-12345 |
PassThrough |
[]components.PassThroughBody | ➖ | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. |