Skip to main content
PUT
/
expenses
Update a given list of expenses.
curl --request PUT \
  --url https://openapi.pleo.io/v1/expenses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expenseIds": "[\"0f0e000-000d-0d00-000b-00db0d000fae\", \"f0bd2ac4-9080-11eb-a8b3-0242ac130003\"]",
  "status": "NOT_EXPORTED"
}
'
{}

Authorizations

Authorization
string
header
required

Open API Bearer token

Body

application/json
expenseIds
string[]
required

An array of unique expense UUIDs to update their statuses.

Example:

"[\"0f0e000-000d-0d00-000b-00db0d000fae\", \"f0bd2ac4-9080-11eb-a8b3-0242ac130003\"]"

status
enum<string>
required

Status the expenses listed in the expenseIds field will be updated to.

Available options:
NOT_EXPORTED,
QUEUED,
EXPORTING,
EXPORTED

Response

200 - application/json

Success

The response is of type object.