Refund a payment
Refunds a payment by its id. Omit amountCents to refund all remaining principal; send amountCents for a partial refund. The service fee is refunded only on a full refund with feeType: "include_fee". If the payment has not settled yet, it is voided instead (reversalType: "void"). Line-item refunds are not supported.
If the principal is refunded but the separate service-fee refund fails, the response is 502 PARTIAL_REFUND_PENDING; retry the refund.
Supports idempotency via the Idempotency-Key header.
Authorizations
Send your API key as Authorization: ApiKey pc_<your-key>. The API also accepts the key without the ApiKey prefix. API keys authenticate requests to /api/partner/v1/*. Contact GroGov support to rotate your key or deactivate your API account. Rotation invalidates the previous key. Account deactivation blocks both API keys and access tokens.
Headers
255Path Parameters
Payment ID (id). Line-item IDs are not accepted.
Body
Principal to refund, in cents. Omit to refund all of the remaining principal.
x >= 15000
include_fee also refunds the service fee, and only applies when amountCents is omitted (a full refund). Partial refunds return principal only.
include_fee, exclude_fee 1000"Case dismissed"