Herald
OpenapiBilling invoice

Create_credit_note

POST
/api/bill/invoices/{invoiceId}/credit-notes

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

invoiceId*string

Invoice ID

Formatuuid

Request Body

application/json
  1. body
amount*integer

Refund amount in the smallest currency unit (must be a positive integer).

Formatint64
memo*string

Admin-provided refund reason (free text, 1-500 chars).

Response Body

Manual credit note created

application/json
  1. response
amount*integer
Formatint64
createdAt*string
createdByUserId?|
Formatuuid
currency*string
externalCreditNoteId?string|null
id*string
Formatuuid
memo?string|null
source*string
status*string
Example Request
curl -X POST 'https://example.com/api/bill/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/credit-notes' \
  -H 'Content-Type: application/json' \
  -d '{
  "amount": 0,
  "memo": "string"
}'
Example Response
{
  "amount": 0,
  "createdAt": "string",
  "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",
  "currency": "string",
  "externalCreditNoteId": "string",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "memo": "string",
  "source": "string",
  "status": "string"
}