Expense

Expense represents the expense data recorded in the system.

Type

General entity

Fields

Field name

Type

Writable

Required

Description

date

string

The expense date in YYYY-MM-DD format.

receipt_no

string

The related receipt or document number for the expense.

description

string

The description on how the expense happened.

currency_code

string

The currency of this expense depicted by code.

currency_rate

number

The currency rate when this expense is made. Leave it null to adopt the system rate.

tax

TaxReference

Sales tax of this expense if applicable.

expense_account

AccountReference

Expense account to categorize this expense record.

payment_account

AccountReference

Payment account that the expense is made from.

vendor

PartnerReference

The vendor who provided the bought item(s). Usually required for tax filing.

sub_total

number

The sub-total amount of this expense, with tax excluded.

tax_amount

number

The tax amount derived from tax and sub_total.

total

number

The total amount with sub-total and tax combined.

total_in_booking_currency

number

The total amount converted to your book currency.

Sample

{
"date_created": 1566981919419,
"date_updated": 1566992365382,
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"date": "2019-07-30",
"receipt_no": "RCTXXXOOO-1",
"description": "Staff year-end party. (With more tacos!)",
"sub_total": 2500.00000,
"tax": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": "VAT-7",
"name": "Value Added Tax (7%)",
"description": null,
"latest_rate": 0.07000,
"_id": "989bcfad-b710-493e-aca6-22f9554ca07e"
},
"tax_amount": 175.0000000000,
"total": 2675.0000000000,
"total_in_booking_currency": 2675.00,
"currency_code": "THB",
"currency_rate": 1,
"expense_account": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": "5210",
"name": "Meals and Entertainment",
"type": "EXPENSE_OPERATING",
"_id": "a86d6497-e66a-422a-a6d2-b26d53c01248"
},
"payment_account": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": "1103",
"name": "Savings account in OCBC Bank",
"type": "ASSET_CURRENT",
"_id": "e2cf8550-9ea8-4371-a33d-8ace5867cc66"
},
"vendor": {
"company_id": "a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1",
"code": null,
"name": "Kasoft Wealth Management Public",
"email": null,
"contact_name": null,
"note": null,
"_id": "48f4a46a-e44f-4eab-823d-9a3a55d870a8"
},
"_id": "6c565a41-c53d-49f3-91cf-1f8634618a91",
"_links": {
"self": {
"href": "https://api.pymlo.com/v1/businesses/a8ddc6fd-9f34-43c9-a3e2-ecac869cc5f1/expense/expenses/6c565a41-c53d-49f3-91cf-1f8634618a91"
}
}
}