Skip to main content
POST
Typescript (SDK)

Body Parameters

Response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string
default:2.4.0
required

Body

application/json
invoice_id
string
required

The Autumn invoice ID to credit. Must be open or paid.

amount
number

Total to credit across the whole invoice. Cannot be combined with lines.

lines
object[]

Credit specific invoice lines instead of a flat amount. Cannot be combined with amount. Unavailable on invoices recorded before line item storage.

Minimum array length: 1
destination
enum<string>
default:customer_balance

Where already-paid money goes. customer_balance credits the customer's balance for their next invoice, refund returns it to the original payment method, and out_of_band records money returned outside Stripe.

Available options:
customer_balance,
refund,
out_of_band
send_email
boolean
default:true

Email the credit note to the customer.

reason
enum<string>

Reason shown on the credit note.

Available options:
duplicate,
fraudulent,
order_change,
product_unsatisfactory
memo
string

Memo printed on the credit note PDF.

preview
boolean

Return the credit note that would be issued without creating it.

Response

200 - application/json

OK

credit_note
object
required