Possibilita a recuperação de um card através dos identificadores do cartão (card_id) e do cliente associado (customer_id), informados por parâmetro.

get/customers/{customer_id}/cards/{card_id}

Request

  • Base URL
    https://api.pagar.me/core/v5
  • URL
    https://api.pagar.me/core/v5/customers/{customer_id}/cards/{card_id}
  • Auth
    HTTP basic

Path parameters

customer_idstring required

Código do cliente. Formato: cus_XXXXXXXXXXXXXXXX.

card_idstring required

Código do cartão. Formato: card_XXXXXXXXXXXXXXXX.

Response

200

idstring
first_six_digitsstring
last_four_digitsstring
brandstring
holder_namestring
holder_documentstring
exp_monthinteger
exp_yearinteger
statusstring
typestring
created_atstring
updated_atstring

Example response

{
  "id": "card_ej6MVD4sYLUBVy92",
  "first_six_digits": "400000",
  "last_four_digits": "0010",
  "brand": "Visa",
  "holder_name": "Tony Stark",
  "holder_document": "93095135270",
  "exp_month": 1,
  "exp_year": 2030,
  "status": "active",
  "type": "credit",
  "created_at": "2023-03-17T14:01:48Z",
  "updated_at": "2023-03-17T14:01:48Z",
  "billing_address": {
    "zip_code": "220000111",
    "city": "Rio de Janeiro",
    "state": "RJ",
    "country": "BR",
    "line_1": "375, Av. General Osorio, Centro",
    "line_2": "7º Andar"
  },
  "network_token": {
    "token_unique_reference": "ea90e8e8-af1d-4f22-a2f0-a54d5f8b55b5",
    "status": "active"
  },
  "customer": {
    "id": "cus_9oYdjPACaAUXgJq0",
    "name": "Tony Stark",
    "email": "tonystarkk@avengers.com",
    "code": "MY_CUSTOMER_001",
    "document": "93095135270",
    "document_type": "cpf",
    "type": "individual",
    "gender": "male",
    "created_at": "2023-03-17T14:01:45Z",
    "updated_at": "2023-03-17T14:01:45Z",
    "birthdate": "1984-05-03T00:00:00Z",
    "phones": {
      "home_phone": {
        "country_code": "55",
        "number": "000000000",
        "area_code": "21"
      },
      "mobile_phone": {
        "country_code": "55",
        "number": "000000000",
        "area_code": "21"
      }
    },
    "metadata": {
      "company": "Avengers"
    }
  }
}

Changes