The ExpenseTempItem, or "temporary expense" is an expense that has not yet been declared (within an expense report) by its owner (the user who made the expense). Once submitted within an expense report, the expense turns into an ExpenseClaimItem.

id
integer
required
Required range: x >= 1
purchasedOn
string
required

Day the expense was made.

originalTransaction
object
required

Expense amount in original currency.

processedAmounts
object
required

Various amounts in the establishment's currency.

expenseNatureId
integer
required

Nature of the expense: Meals, Train, Taxi, Hotels, Taxi, Mileage... List depends on the app configuration.

Required range: x >= 1
quantity
integer
default:1
required

The quantity when the expense type is 'Quantity'.

Required range: x >= 1
ownerId
integer
required

Unique identifier of the user that made this expense.

paymentMethodId
enum<integer>
required

How this expense was made: the owner used his money, an enterprise debit card, or a Cleemy card:

  • 0: User
  • 1: CorporateCard
  • 3: Cleemy Card
Available options:
0,
1,
3
deviceId
string
required
Allowed value: "Web"
mileage
object | null

Additional information when the expense type is mileage.

effectiveQuantity
integer

Calculated quantity when the expense type is 'Quantity' or 'Invitations' (number of attendees).

Required range: x >= 1
attendees
object | null

Additional information when the expense type is 'Invitation'.

axisSections
object[] | null
customFields
object | null

Values for custom fields.

merchant
string | null

Merchant of the expense.

comment
string | null
expenseReceipts
object[] | null

The expense receipts (PDF file, image, ...). Technically, there could be more than one, but in reality, there’s usually just one.

An expense's receipt. Can be downloaded, either as an original or preview file, by following the href link. Please note that a 302 Redirect may be returned, in which case you have to follow the URL returned in the Location HTTP header.

authorizedActions
object

Authorized actions on the expense for the current user.

sourceId
object

The source describes how the expense was created:

  • 0: Legacy
  • 1: OldImport
  • 2: ImportByCb
  • 3: ImportByNature
  • 4: Anytime
  • 5: BudgetInsight
  • 6: Api
  • 7: Ocr
  • 8: Reconciliation
  • 9: InvoiceAggregator
  • 10: EmailAttachments
  • 11: FtpStatementImport
  • 12: CleemyPayment
source
object
paymentMethod
object
statusId
object

Status of the expense.

  • 0: the expense is not valid.
  • 1: the expense has been completed by the system and review is still pending
  • 2: the expense has been completed and reviewed and it can be declared.
status
object