Refunds
Money returned to customers.
Paths are relative to https://evenbooks.org/api/v1. How keys, errors, paging and versions work is in the guide; the whole reference is also an OpenAPI 3.1 document.
Administrator key marks endpoints that need a key with the admin role, Write access those a read-only key can’t call, and Idempotent those that accept an idempotency key.
List refunds
/refundsMoney returned to customers, newest first; at most 200. Filter by the payment or credit note refunded, or by customer.
Parameters
paymentIdstring (uuid)querycreditNoteIdstring (uuid)querycontactIdstring (uuid)query
Response 200
array of RefundDto
Errors 400 · 401 · 403 · 404 · 409 · 429
Refund a customer
/refundsPays money back from fromAccountId (a bank, card, Undeposited Funds or payment processor account) out of the unapplied part of a payment or the balance left on an issued credit note; more than that is refused (400 over_allocation). Posts to the books on date, which cannot be before the payment or credit note; refused in a locked period (409 period_locked).
Request body
CreateRefundInput
sourceTypestringrequiredOne of:
paymentcredit_notesourceIdstring · Uuidrequireddatestring · PlainDateStringrequiredamountstring · PositiveDecimalStringrequiredfromAccountIdstring · UuidrequiredmethodstringOne of:
cashcheckcardachwireotherreferencestring or nullmemostring or nullidempotencyKeystring · IdempotencyKey
Response 200
RefundDto (fields under Schemas)
Errors 400 · 401 · 403 · 404 · 409 · 429
Void a refund
/refunds/{id}/voidCancels a refund by posting a reversing entry on the refund’s date; the money is available again on the payment or credit note. Refunds made through Stripe cannot be voided (409 invalid_state). Refused in a locked period (409 period_locked).
Parameters
idstring (uuid)path · required
Request body
VoidRefundInput
reasonstringrequiredidempotencyKeystring · IdempotencyKey
Response 200
RefundDto (fields under Schemas)
Errors 400 · 401 · 403 · 404 · 409 · 429
Schemas
The types these endpoints take or return, by name. Type names above link here.
DecimalString
decimal string
string
IdempotencyKey
string
NonNegativeDecimalString
string
PlainDateString
string
PositiveDecimalString
string
RefundDto
idstringcontactIdstring or nullsourceTypestringOne of:
paymentcredit_notepaymentIdstring or nullcreditNoteIdstring or nulldatestring · PlainDateStringamountstring · DecimalStringfromAccountIdstringfromAccountNamestringoptionalmethodstringreferencestring or nullmemostring or nullstatusstringOne of:
postedvoidjournalEntryIdstringvoidJournalEntryIdstring or nullcreatedAtstring
Uuid
string (uuid)