POST
/api/public/v1/transactions/{transactionId}/mark-paid

Mark a transaction paid

Settles an open invoice or bill: an INVOICE becomes INCOME, a PENDING expense or deduction becomes CONFIRMED. This is the moment money actually moves, which is why it is what posts the journal entry and moves the tax liability — raising the record did neither. Only a PENDING invoice or bill can be settled.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.

transactions:write

Path Parameters

NameTypeRequiredDescription
transactionIdstringRequiredTransaction ID.

Request Body

PropertyTypeDescription
paidDatestringISO 8601. Defaults to now, and becomes the transaction’s `date`.
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/transactions/{transactionId}/mark-paid" \
  -H "Authorization: Bearer your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "paidDate": "2026-08-30T00:00:00.000Z"
  }'
200Example response
json
{
  "message": "Marked as paid!",
  "content": {
    "transaction": {
      "id": "txn_4410",
      "type": "EXPENSE",
      "status": "CONFIRMED",
      "amount": -48000,
      "description": "Q3 hosting",
      "counterpartyName": "Cloud Co",
      "irsCategory": "Utilities",
      "date": "2026-08-01T00:00:00.000Z",
      "dueDate": "2026-09-01T00:00:00.000Z",
      "legalEntityId": "le_7788",
      "createdAt": "2026-08-01T09:00:00.000Z",
      "updatedAt": "2026-08-01T09:00:00.000Z"
    }
  }
}
400Example response
json
{
  "message": "Only invoices and bills can be marked as paid."
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Finances → Payables
/finances/payables
  1. Open Payables.
  2. Mark a bill as paid.