Skip to main content
POST
Record a refund paid by bank transfer

Authorizations

Authorization
string
header
required

A group API key, sent as Authorization: Bearer sw_live_…. Keys from staging and the demo start sw_test_ instead. A group admin creates keys in Settings → Integrations → API keys.

Scopes

accounting:write

Headers

Idempotency-Key
string
required

Unique per refund: any printable text up to 255 characters. A retry with the same key and body within 24 hours answers with the first refund instead of making another. Required.

Required string length: 1 - 255

Body

application/json

A field not listed here is refused with a 400.

transactionId
string<uuid>
required

The money-out bank line the refund was paid by: a line imported from a bank statement, still in the reconciliation inbox. Find one in Scoutworks’ Bank Inbox.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
allocations
object[]
required

The payments the bank line refunds, and how much of it each. Together at most the bank line’s amount; each at most what is still refundable on that payment. Each payment at most once.

Required array length: 1 - 20 elements
notes
string

Why it was refunded. Shown in Scoutworks; never returned by the API.

Required string length: 1 - 500
{key}
any

Response

The refund an earlier request with the same Idempotency-Key made.

data
object
required