Acreum Docs
General ledger

Invoices

POST
/v1/documents/invoices/{id}/refund

Required scope: documents:write

Error codes: DOCUMENT_NOT_FOUND, VALIDATION_FAILED, REFUND_EXCEEDS_REFUNDABLE_AMOUNT, DOCUMENT_STATUS_FORBIDS_ACTION, LEGAL_ENTITY_NOT_IN_SCOPE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, DIMENSION_REQUIRED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
amount*string

Refund amount in invoice currency.

document_date?string
Formatdate
lines?array<>

Custom refund lines. Optional — if omitted, lines are derived by proportional scaling from the source invoice. When supplied, sum(line.amount) must equal amount.

memo?string
reason?string

Free-text reason. FE dropdown typically constrains to duplicate / returned / service_issue / goodwill / other.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/documents/invoices/string/refund' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "amount": "500.00"}'
{  "data": {    "id": "string",    "status": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}