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.