Get All Cards API

GET {{baseUrl}}/donors/:donor_id/cards

Fetches all the cards for given donor. Entire response body is encrypted and it should be decrypted to view the actual response.

HEADERS

KeyDatatypeRequiredDescription
x-openapi-clientidstring(Required) ClientId is a unique and a mandatory ID shared while creating a project on Mastercard Developers Portal.
x-correlation-idstringCorrelationId is a unique donation request ID. It is recommended to pass the x-correlation-id by the customer and to use the format "bankname_UUID" (bank name can be indicated using the first 4 digits). Maximum length of this field should be 100 alphanumeric characters. If not passed, Mastercard will generate it.
x-program-idstringProgramId is an optional field, but if a client has more than one program associated to it, then this field becomes mandatory.
Acceptstring

RESPONSES

status: OK

{"items":[{"billingAddress":{"city":"Brooklyn","countryCode":"USA","line1":"83 Mayfair Street","line2":"Main Road","line3":"Snake Hill Ave","postalCode":"amet consectetur","state":"NY"},"cardAlias":"CardA","cardId":"ebee3d81-18d4-409a-8330-73db083f2cfc","cardholderName":"John Doe","cardExpiryDetails":{"month":"el","year":"in a"},"paymentNetworkName":"Mastercard","primaryAccountNumber":"5450985888403538","primaryAccountNumberSource":"CARD_ON_FILE","primaryAccountNumberSuffix":"3538","status":"ACTIVE"},{"billingAddress":{"city":"Brooklyn","countryCode":"USA","line1":"83 Mayfair Street","line2":"Main Road","line3":"Snake Hill Ave","postalCode":"voluptate venia","state":"NY"},"cardAlias":"CardA","cardId":"ebee3d81-18d4-409a-8330-73db083f2cfc","cardholderName":"John Doe","cardExpiryDetails":{"month":"ut","year":"temp"},"paymentNetworkName":"Mastercard","primaryAccountNumber":"5450985888403538","primaryAccountNumberSource":"CARD_ON_FILE","primaryAccountNumberSuffix":"3538","status":"ACTIVE"}]}