Skip to main content
POST
Create a credit note

Request Body

Example Request

Response

The credit note amount cannot exceed the original invoice total. The amount_remaining decreases as the credit is applied to future invoices.

Errors

A note created by a non-admin/owner user isn’t an error — it lands in pending and needs approval. Errors use the standard envelope — see Errors.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Body

application/json
customer_id
string<uuid>
required
amount
integer<int64>
required

Amount in the lowest currency unit.

currency
string
required
invoice_id
string<uuid> | null
reason
string
type
enum<string>
default:adjustment

adjustment (default) issues account credit. refund calls the gateway's refund API against the paid invoice in invoice_id and posts a Refunds-vs-Cash ledger reversal; its progress is tracked by the credit note's refund_status.

Available options:
adjustment,
refund
expires_at
string<date-time> | null

Optional expiry for a spendable adjustment credit. When it passes with balance remaining, the expiry sweep writes the balance off (DR Customer Credit / CR Credits & Adjustments). Ignored for refunds.

Response

Credit note issued.

data
object