Unlinked Refunds β Processing
Platform engineers implementing or debugging refunds that aren't linked to an original payment record.
Processing detail for the Unlinked Refunds API developer page.
Refund Processing Flowβ
Unlinked refunds are processed independently without referencing any prior payment transaction.
Refund Flow
Refund Processing Steps:
- Request received β Payment Service receives unlinked refund request with
paymentMethodIdandcustomer. - Schema validation β Payment Service validates request structure and required fields β
400 INVALID_REQUESTon failure. - Business validation β Payment Service enforces business rules β
422 UNPROCESSABLE_ENTITYon failure. - Payment method validation β Payment Service calls Customer Service to get payment method details and checks if CARD type (rejects BANK/ACH).
- Customer resolution β Payment Service searches for customer in Customer Service; if not found, creates customer via
/customer/findand sends event to Stripe. - Association validation β Payment Service verifies customer and payment method are associated via Customer Service.
- Acceptance β If all validations pass, Payment Service returns
202 Accepted. - Refund execution β Payment Service sends refund request to Stripe Adapter Service, which executes unlinked refund in Stripe (without charge reference).
- Stripe events β Stripe publishes refund events (
refund.created,refund.updated, orrefund.failed) to Stripe Adapter Service. - Status update β Stripe Adapter Service sends
VENDOR_MERCHANT_REFUND_SUCCESSorVENDOR_MERCHANT_REFUND_FAILEDto Payment Service, which updates refund status. - Merchant notification β Payment Service publishes event to Merchant Service, which sends
REFUND_SUCCESSorREFUND_FAILEDwebhook to Merchant. - Status polling β Merchant can poll
GET /v2/refunds/{refundId}to retrieve refund details.
Stripe (Payment Processor) Considerationsβ
- Customer creation: CCG creates or finds the customer in Stripe before executing the refund
- Refund execution: Stripe processes unlinked refunds via
POST /v1/refundswithout achargeparameter - Detection: Unlinked refunds detected via
refund.charge == nullin Stripe webhook events - Timing: Card refunds typically process in 1β3 business days
- Balance requirements: If Stripe account has insufficient balance and
autodebitis disabled, refund may be held inPENDINGstatus