Update a Card Account
1 min
PATCH
https://api.sandbox.tripleup.dev/partner/card-accounts/{cardholder_id}
cardholder_idobjectThe triple-defined ID for the entity.
bodyobject
200Card Account
400TripleBadRequestError
403TripleNotAuthenticatedError
404TripleInvalidPathError
409TripleIntegrityError
415TripleUnsupportedMediaType
422TripleUnprocessableEntity
500TripleInternalServerError
501TripleNotImplementedError
503TripleServiceUnavailable
curl --request PATCH \
--url https://api.sandbox.tripleup.dev/partner/card-accounts/{cardholder_id} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"status": "ENROLLED"
}'(Alpha - this endpoint is subject to breaking change)
Enroll, un-enroll, or close a Card Account.
Card Accounts must be enrolled at the time of a transaction and not closed at the time of distribution in order to receive Rewards.
The date of enrollment defaults to the current date at UTC-12. The date of un-enrollment defaults to the current date at UTC+12. (This is to accommodate the possibility of a customer's current local date being different than the server's.)
A future API release will address the edge case of unenrolling and then re-enrolling an account within the same day.