---
title: "Retrieve Card Account"
method: POST
path: "/tokenizer/ve1_2/token/retrieve"
tags: ["Card Account"]
---

# Retrieve Card Account

`POST /tokenizer/ve1_2/token/retrieve`

## Request

- Base URL: `https://uat1.billdesk.com/u2`
- URL: `https://uat1.billdesk.com/u2/tokenizer/ve1_2/token/retrieve`
- Auth: none declared. Required headers: `BD-Traceid`, `BD-Timestamp`, `Content-Type`, `Accept`

Retrieve details of a cardaccount either by using the mercid and cardaccountid or the mercid, orderid and customer_refid as inputs.

## Headers

- `BD-Traceid` string, required
- `BD-Timestamp` string, required
- `Content-Type` string, required
- `Accept` string, required

## Request body

- object
  - `mercid` string, required: Unique identifier as defined by BillDesk for each merchant
  - `cardaccountid` string: Unique ID created by BillDesk for the combination of card number, mercid and customer_refid
  - `customer_refid` string: Unique reference of the customer in the merchant system, and can be linked to different subscriptions of the same customer Required for mandate and tokenization
  - `orderid` string: Unique ID generated by the merchant for each request

## Response `200`

OK

- object
  - `objectid` 'transaction' | 'authentication' | 'mandate' | 'invoice' | 'cardaccount' | 'validatevpa' | 'dispute' | 'settlement' | 'altid' | 'mandate_token' | 'accountvalidation' | 'refund': String representing the object's type. Objects of the same type share the same value.
  - `mercid` string: Unique identifier as defined by BillDesk for each merchant
  - `customer_refid` string: Unique reference of the customer in the merchant system, and can be linked to different subscriptions of the same customer Required for mandate and tokenization
  - `cardaccountid` string: Unique ID created by BillDesk for the combination of card number, mercid and customer_refid
  - `orderid` string: Unique ID generated by the merchant for each request
  - `masked_value` string: Masked card number, with the last four digits
  - `holder_name` string: Cardholder name
  - `issuer` string: Card issuer
  - `network` string: Card Network
  - `status` string
  - `coft_consent` string
  - `createdon` string, date-time: object creation timestamp
  - `network_token` NetworkIssuerToken
    - `token_ref_no` string: Token Reference Number – as received from TSP
    - `status` string: Token Status – as received from TSP
    - `token_expiry_month` string: Token Expiry Month – as received from TSP in the MM format
    - `token_expiry_year` string: Token Expiry Year – as received from TSP in the YYYY format
    - `createdon` string
    - `token_cryptogram` string: Token Cryptogram – as received from TSP in the ‘Detokenize’ response
    - `token_value` string: Token Value – as received from TSP in the ‘Detokenize’ response
  - `issuer_token` NetworkIssuerToken
    - `token_ref_no` string: Token Reference Number – as received from TSP
    - `status` string: Token Status – as received from TSP
    - `token_expiry_month` string: Token Expiry Month – as received from TSP in the MM format
    - `token_expiry_year` string: Token Expiry Year – as received from TSP in the YYYY format
    - `createdon` string
    - `token_cryptogram` string: Token Cryptogram – as received from TSP in the ‘Detokenize’ response
    - `token_value` string: Token Value – as received from TSP in the ‘Detokenize’ response

## Other responses

- `403`: Forbidden
- `500`: Internal Server Error
- `default`: Any bad or invalid request will lead to following error object

---

[API](https://skmtc.dev/billdesk/apis/tokenization.md) - [All operations](https://skmtc.dev/billdesk/apis/tokenization/llms.txt) - [OpenAPI document](https://skmtc.dev/billdesk/apis/tokenization/revisions/257528d9c8e1?raw)
