Transfergiftcardownership
Transfer Gift Card Ownership
Updates the cardholder details (name, email, optional customer ID) on an active gift card. Intended for merchant use when a card is gifted or resold to a new owner.
An OWNERSHIP_TRANSFER transaction is recorded for audit trail purposes.
Business Rules:
- Card must be active
- New owner email must be a valid email address (validated by Pydantic
EmailStr) - Name is sanitized to remove HTML/script content
Status Codes:
- 200: Ownership transferred successfully
- 400: Card is not active
- 404: Card not found
- 401: Unauthorized
Authorizations
JWT access token obtained from POST /v2/token.
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
