API

Duplicate expense

Duplicate a planned expense in the same box.

Copies a planned expense into the same box.

POST/v1/duplicate_expense

Body

FieldTypeRequiredDefaultDescription
idempotencyKeystringYes—Client-generated key (1–128 chars: letters, digits, . _ : -). Same key + same body replays; different body returns 409. Prefer Idempotency-Key HTTP header when calling the Tools API.
budgetIdstringYes—Budget that owns the box (edit access required).
boxIdstringYes—Box that owns the source expense.
expenseIdstringYes—Source expense to duplicate.
namestringNo—Name for the copy. Defaults to source name + (Copy).

Response data

FieldTypeDescription
idstringNew expense id.
budgetIdstringId of the budget.
boxIdstringSame box as the source.
namestringName of the copy.
sourceExpenseIdstringId of the expense that was duplicated.