Expense imports

Import an approved reimbursement

Push one approved reimbursement. It is stored, then imported as an approved expense or reimbursement invoice, or held for review.

POSThttps://api.toku.com/expense-imports/approved-reimbursements

Required scope: expenses:write

Organization key (production HTTP): served. The key, service seat and organization must also meet this operation’s requirements.

curl --request POST \
  --url 'https://api.toku.com/expense-imports/approved-reimbursements' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workerEmail": "string",
  "purchaseDate": "2026-01-01",
  "approvedAt": "string",
  "claimAmount": "string",
  "claimCurrency": "string",
  "payoutAmount": "string",
  "payoutCurrency": "string",
  "vendor": "string",
  "category": "string",
  "description": "string",
  "sourceReference": "string"
}'
201 response
{
  "intakeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "RECEIVED",
  "holdReason": "POSSIBLE_DUPLICATE",
  "workerType": "EMPLOYEE",
  "record": {
    "type": "EXPENSE_REPORT",
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }
}

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.

Body

application/json

workerEmailstringrequired

Allowed: 3 to 320 characters

purchaseDatestring<date>required
approvedAtstringrequired

Allowed: at most 40 characters, matches ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?(Z|[+-]\d{2}:\d{2})$

claimAmountstring<decimal>required

Allowed: matches ^-?[0-9]+(\.[0-9]{1,6}0*)?$

claimCurrencystringrequired

Allowed: matches ^[A-Z]{3}$

payoutAmountstring<decimal>required

Allowed: matches ^-?[0-9]+(\.[0-9]{1,6}0*)?$

payoutCurrencystringrequired

Allowed: matches ^[A-Z]{3}$

vendorstringrequired

Allowed: 1 to 200 characters

categorystring

Allowed: 1 to 100 characters

descriptionstring

Allowed: at most 1000 characters

sourceReferencestring

Allowed: 1 to 200 characters

Response

201Created
intakeIdstring<uuid>required
statusstringrequired

Available options: RECEIVED, IMPORTED, HELD, REJECTED

holdReasonstring | nullrequired
workerTypestring | nullrequired
recordobject | nullrequired
Show child attributes
typestringrequired

Available options: EXPENSE_REPORT, INVOICE

idstring<uuid>required
400Bad request
401Unauthorized
403Forbidden
409Conflict
422Unprocessable entity
429Response 429
Was this page helpful? Suggest edits