Skip to main content
PATCH
Edit a document's figures

Authorizations

Authorization
string
header
required

API token issued from the Equated app under Settings → API Tokens.

Path Parameters

id
integer
required
Required range: x > 0

Body

application/json
payerAccountId
integer | null

Payer account for a draft reimbursement; not editable on other document types.

Required range: x > 0
amount
string | null

Document total as a signed decimal string. A negative reimbursement total posts mirrored.

Pattern: ^-?\d+(\.\d+)?$
currency
string | null
Required string length: 3
displayTitle
string | null
Maximum string length: 200
orgMerchantId
integer

Vendor or customer to attribute the document to.

Required range: x > 0
projectId
integer | null

Project to attribute the document to. Null clears the assignment.

Required range: x > 0
accountingDate
string | null

Economic date of the document (YYYY-MM-DD). Bills and reimbursements post on it; fix it here when extraction misread the year.

Pattern: ^\d{4}-\d{2}-\d{2}$
lineItems
object[]

Replaces a receipt's or reimbursement's lines wholesale (one per category is the convention; null categoryAccountId = still to place). Bills and invoices edit their lines with edit_bill and edit_invoice instead.

Response

200 - application/json

Updated document detail

document
object
required