Consolidategiftcards
Consolidates multiple ACTIVE gift cards from the same program and customer into a single new active card with the combined balance.
Performs validation (2–10 unique cards, all ACTIVE, positive balances, same customer, total ≤ $10,000), acquires per-card locks to prevent concurrent modifications, creates a new card with a cryptographically generated number and security code, voids source cards (setting their balances to zero), and records consolidation transactions inside an atomic database transaction.
Returns:
ConsolidateResponse: Details of the consolidation including newCard (the created gift card), voidedCards (IDs of source cards), totalConsolidatedAmount, consolidationTransactions (transaction IDs), and an informational message.
Idempotency Scope:
Keys are scoped to programId + consolidate + sorted source card ids.
Reusing the same key for a different source-card set is treated as a fresh operation.
Authorizations
JWT access token obtained from POST /v2/token.
Headers
Path Parameters
24^[0-9a-f]{24}$"5eb7cf5a86d9755df3a6c593"
Query Parameters
24^[0-9a-f]{24}$"5eb7cf5a86d9755df3a6c593"
Body
2 - 10 elements24^[0-9a-f]{24}$"5eb7cf5a86d9755df3a6c593"
255255100500100500