Invoices
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
access-tokenAuthorizationBearer <token>id*stringIdempotency-Key*stringClient-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.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- body
amount*stringRefund amount in invoice currency.
document_date?stringdatelines?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?stringreason?stringFree-text reason. FE dropdown typically constrains to duplicate / returned / service_issue / goodwill / other.
application/json- 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 }}