v1

latestOpenAPI 3.1.02026-08-06236494759.4 KB
Expense Review Configuration

Add Expense Review Configuration

Endpoint to add an ExpenseReview configuration.

post/business/v2/expense-review/configuration

Request body

request_timestampinteger required

The epoch timestamp in millis. This is checked in Soldo. Requests with timestamp older than 5 seconds will be rejected.

start_datestring required

The starting date from which the expenses can be reviewed.

transaction_categoriesExpenseTransactionCategoryInput[]

It determines the filter by category of the transaction.

activity_groupsExpenseConfigurationActivityGroup[] required

It determines the filter by types of cards whose transactions are considered as expenses to be reviewed.

policy_urlstring required

The url of the company spending policy.

start_date_type'TRANSACTION' | 'SETTLEMENT'

Example request

{
  "request_timestamp": 1576850500000,
  "start_date": "2017-06-01T12:48:40Z",
  "policy_url": "https://www.policy.pdf"
}

Response

The returned resource is a single ExpenseReview configuration.

start_datestring

The starting date from which the expenses can be reviewed.

transaction_categoriesExpenseTransactionCategory[]

It determines the filter by category of the Transaction.

activity_groupsExpenseConfigurationActivityGroup[]

It determines the filter by types of Cards whose Transactions are considered as expenses to be reviewed.

policy_urlstring

The url of the company spending policy

start_date_type'TRANSACTION' | 'SETTLEMENT'
enabledboolean

Indicates ExpenseReview configuration is enabled.

lockedboolean

Indicates ExpenseReview configuration is locked.

update_timestampstring

The date and time when the configuration was last updated.

Example response

{
  "start_date": "2017-06-01T12:48:40Z",
  "policy_url": "https://www.policy.pdf",
  "update_timestamp": "2017-06-01T12:48:40Z"
}