Refunds
Endpoints
GET /api/v1/invoices/{id}/refunds
GET /api/v1/invoices/{id}/refundsScoped API key. Scopes: read, commerce, admin.
Invoice ID
Max items to return (1–100, default 20)
20Number of items to skip (default 0)
0Paginated list of refunds
No content
No payment session in the caller's tenant references this invoice (anti-enumeration — see Task #1459)
No content
POST /api/v1/invoices/{id}/refunds
POST /api/v1/invoices/{id}/refundsIssue a refund against the payment for an invoice. Targets the most recent successful payment session linked to this invoice.
Scoped API key. Scopes: read, commerce, admin.
Invoice ID (externalInvoiceId on the payment session)
Per-refund idempotency key. A retry with the same key + same body returns the original refund; same key + different body returns 409.
falseReplayed prior refund for the same Idempotency-Key
A refund issued against a successful payment session
Refund issued
Validation error or payment not refundable
No successful payment session found for this invoice
Idempotency-Key reused with a different request body
GET /api/v1/payments/{id}/refunds
GET /api/v1/payments/{id}/refundsScoped API key. Scopes: read, commerce, admin.
Payment session ID
Max items to return (1–100, default 20)
20Number of items to skip (default 0)
0Paginated list of refunds
No content
Payment session not found
No content
POST /api/v1/payments/{id}/refunds
POST /api/v1/payments/{id}/refundsIssue a refund against a successful payment session. Supports full refunds (default) and partial refunds via amountCents.
Scoped API key. Scopes: read, commerce, admin.
Payment session ID
Per-refund idempotency key. A retry with the same key + same body returns the original refund; same key + different body returns 409.
Partial refund amount in cents. Omit to refund the full refundable balance.
Explicitly refund the full remaining balance.
falseReplayed prior refund for the same Idempotency-Key
A refund issued against a successful payment session
Refund issued
Validation error or payment not refundable
Payment session not found
Idempotency-Key reused with a different request body
Last updated
Was this helpful?
