Create a new credit note.
Security
bearerAuth or basicAuth
Issue a credit note for an invoice.
Optional key to ensure idempotent credit-note creation requests. Required by the embedded issue-credit-note flow.
Example:"credit-note-2024-001"
Reason code for the credit note
Enum:"chargeback""duplicate""fraudulent""requested_by_customer""missing_remittance""overpayment_on_invoice""invoice_was_refunded""double_payment_on_invoice""missing_invoice_in_resolve""credit_transfer"
Example:"reason_code"
URL for the publicly-accessible credit note PDF.
Example:"https://example.com/credit_note_url.pdf"
- Mock serverhttps://docs.resolvepay.com/_mock/merchant-api/openapi/credit-notes
- Sandbox serverhttps://app-sandbox.resolvepay.com/api/credit-notes
curl -i -X POST \
https://docs.resolvepay.com/_mock/merchant-api/openapi/credit-notes \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"invoice_id": "PMMlaE5wbg0",
"amount": 2000,
"idempotency_key": "credit-note-2024-001",
"number": "CN-001",
"reason_code": "reason_code",
"reason_message": "reason_message",
"credit_note_url": "https://example.com/credit_note_url.pdf",
"merchant_credit_note_document_id": "MCDoc123"
}'Response
{ "status": "pending" }