Reloadgiftcard
Reload Gift Card
Adds funds to an active gift card. Creates a RELOAD transaction for audit trail.
Business Rules:
- Only ACTIVE cards can be reloaded
- Card must not be expired
- Reload amount: 5,000 per transaction
- Maximum card balance: $10,000
- New balance = current balance + reload amount
- Transaction includes before/after balance tracking
Path Parameters:
programId: MongoDB ObjectId of the loyalty programcardId: MongoDB ObjectId of the gift card
Request Body:
amount: Amount to add (5,000)referenceId: External reference ID for tracking (optional)description: Transaction description (optional, defaults to “Gift card reload”)
Returns:
- Updated gift card details with new balance
- Balance reflects immediately after reload
Status Codes:
- 200: Gift card reloaded successfully
- 400: Cannot reload (inactive, expired, or would exceed max balance of $10,000)
- 404: Gift card not found or doesn’t belong to program
- 401: Unauthorized
Error Response (Max Balance Exceeded):
{
"detail": "Reload would exceed maximum card balance",
"currentBalance": 9500.00,
"reloadAmount": 1000.00,
"maxBalance": 10000.00,
"availableReloadAmount": 500.00
}
Idempotency Scope:
- Idempotency keys are scoped to
programId + reload + cardId - The same key may be reused for different cards or different gift card actions
Authorizations
JWT access token obtained from POST /v2/token.
Headers
Path Parameters
24^[0-9a-f]{24}$"5eb7cf5a86d9755df3a6c593"
24^[0-9a-f]{24}$"5eb7cf5a86d9755df3a6c593"
Body
Response
Successful Response
24^[0-9a-f]{24}$"5eb7cf5a86d9755df3a6c593"
Gift card status enumeration.
pending, active, suspended, expired, voided, depleted 24^[0-9a-f]{24}$"5eb7cf5a86d9755df3a6c593"
24^[0-9a-f]{24}$"5eb7cf5a86d9755df3a6c593"
24^[0-9a-f]{24}$"5eb7cf5a86d9755df3a6c593"
The customer card object
Attributes: serialNumber (str): The serial number of the customer pass passTypeIdentifier (str): The pass type identifier of the customer pass url (str): The shareable URL of the customer pass
