Skip to main content

Get Card

Use this route to return an object with data from a previously created card. Only the card_id passed in the endpoint PATH is required.

GETv3/cards/:card_id

Request Variable Path

AttributeTypeDescription
card_idstringID of the previously saved card.

Response Object

PropertyTypeDescription
card_idstringCard identifier hash.
date_createddateTimeCard creation date in ISODateTime format.
date_updateddateTimeCard update date in ISODateTime format.
card_holder_namestringCardholder name.
card_brandstringCard brand. Possible values: visa, mastercard, amex, hipercard and elo.
card_first_digitsstringFirst 6 digits of the card.
card_last_digitsstringLast 4 digits of the card.
card_expiration_datestringCard expiration date. Numbers only in MMYY format.
validbooleanProperty to verify card validity, that is, if true, the card can be charged under normal conditions, if false, it cannot be used.
Response Example
{
"card_id": "card_princess12leia45organa678",
"date_created": "2025-01-01T00:00:00.000Z",
"date_updated": "2025-01-01T00:00:00.000Z",
"card_holder_name": "Leia S O Solo",
"card_brand": "mastercard",
"card_first_digits": "444455",
"card_last_digits": "3333",
"card_expiration_date": "0504",
"valid": true
}

Error Object

AttributeTypeDescription
api_referencestringURL for documentation.
errorsarrayArray with all errors found when processing the request.
errors[][type]stringType of error that occurred.
errors[][message]stringDetailed error message.
Error Example
{
"api_reference": "https://docs.api.marlim.co/cards/read",
"errors": [
{
"type": "parameter",
"message": "The parameter [ card_cvv ] is missing."
}
]
}

Examples

Request
curl -X GET -G "https://api.marlim.co/v3/cards/card_princess12leia45organa678" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
Response200
{
"card_id": "card_princess12leia45organa678",
"date_created": "2025-07-29T11:38:57.596Z",
"date_updated": "2025-07-29T11:38:57.596Z",
"card_holder_name": "Leia S O Solo",
"card_brand": "mastercard",
"card_first_digits": "444455",
"card_last_digits": "3333",
"card_expiration_date": "0504",
"valid": true
}