Checking access…

Skip to main content
Audience: CCG Platform Engineers

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:

  1. Request received β€” Payment Service receives unlinked refund request with paymentMethodId and customer.
  2. Schema validation β€” Payment Service validates request structure and required fields β†’ 400 INVALID_REQUEST on failure.
  3. Business validation β€” Payment Service enforces business rules β†’ 422 UNPROCESSABLE_ENTITY on failure.
  4. Payment method validation β€” Payment Service calls Customer Service to get payment method details and checks if CARD type (rejects BANK/ACH).
  5. Customer resolution β€” Payment Service searches for customer in Customer Service; if not found, creates customer via /customer/find and sends event to Stripe.
  6. Association validation β€” Payment Service verifies customer and payment method are associated via Customer Service.
  7. Acceptance β€” If all validations pass, Payment Service returns 202 Accepted.
  8. Refund execution β€” Payment Service sends refund request to Stripe Adapter Service, which executes unlinked refund in Stripe (without charge reference).
  9. Stripe events β€” Stripe publishes refund events (refund.created, refund.updated, or refund.failed) to Stripe Adapter Service.
  10. Status update β€” Stripe Adapter Service sends VENDOR_MERCHANT_REFUND_SUCCESS or VENDOR_MERCHANT_REFUND_FAILED to Payment Service, which updates refund status.
  11. Merchant notification β€” Payment Service publishes event to Merchant Service, which sends REFUND_SUCCESS or REFUND_FAILED webhook to Merchant.
  12. 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/refunds without a charge parameter
  • Detection: Unlinked refunds detected via refund.charge == null in Stripe webhook events
  • Timing: Card refunds typically process in 1–3 business days
  • Balance requirements: If Stripe account has insufficient balance and autodebit is disabled, refund may be held in PENDING status