> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://open-api-docs.dice.tech/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://open-api-docs.dice.tech/_mcp/server.

# Get All Cards Details

GET https://heimdall.eka.io/apis/external/creditCards/all

### Get All Credit Cards

This endpoint retrieves a list of all credit cards associated with the user. It returns details about each credit card, including identifiers and dates related to the card.

#### Request

* **Method**: GET

* **URL**: `{{host}}/apis/external/creditCards/all`

#### Response

* **Status Code**: 200 OK

* **Content-Type**: application/json

#### Response Structure

The response contains a JSON object with the following properties:

* **creditCardList**: An array of credit card objects, where each object includes:

  * **id**: Unique identifier for the credit card (integer).

  * **cardHolderId**: Identifier for the cardholder (string).

  * **cardHolderName**: Name of the cardholder (string).

  * **cardNumber**: The credit card number (string).

  * **cardReference**: Reference for the credit card (string).

  * **cardType**: Type of the credit card (string).

  * **issueDate**: Date the card was issued (string).

  * **statementDate**: Date of the statement (string).

  * **dueDate**: Due date for payments (string).

* **total**: Total number of credit cards available (integer).

* **currentPage**: Current page number of the results (integer).

* **totalPages**: Total number of pages available for pagination (integer).

#### Example Response

```json
{
    "creditCardList": [
        {
            "id": 5880155,
            "cardHolderId": "E0001",
            "cardHolderName": "karanas shrma",
            "cardNumber": "HDFCMF5555871111",
            "cardReference": "HDFCMF5555871111",
            "cardType": "CREDIT",
            "issueDate": "Jan 1, 2025 10:28:02 AM",
            "statementDate": "Jan 1, 2025 10:28:02 AM",
            "dueDate": "Jan 1, 2025 10:28:02 AM"
        },
        {
            "id": 5880156,
            "cardHolderId": "E0001",
            "cardHolderName": "karanas shrma",
            "cardNumber": "HDFCMF5555871111",
            "cardReference": "HDFCMF5555871111",
            "cardType": "CREDIT",
            "issueDate": "Jan 1, 2025 10:28:02 AM",
            "statementDate": "Jan 1, 2025 10:28:02 AM",
            "dueDate": "Jan 1, 2025 10:28:02 AM"
        },
        {
            "id": 5880157,
            "cardHolderId": "E0001",
            "cardHolderName": "karanas shrma",
            "cardNumber": "HDFCMF5555875555",
            "cardReference": "HDFCMF5555875555",
            "cardType": "CREDIT",
            "issueDate": "Jan 1, 2025 10:28:02 AM",
            "statementDate": "Jan 1, 2025 10:28:02 AM",
            "dueDate": "Jan 1, 2025 10:28:02 AM"
        },
        {
            "id": 5880154,
            "cardHolderId": "E0001",
            "cardHolderName": "karanas shrma",
            "cardNumber": "XXXXXXXXXXXX0003",
            "cardReference": "Credit Card from Visa feed",
            "cardType": "CREDIT",
            "issueDate": "Feb 28, 2025 5:37:06 AM",
            "statementDate": "Feb 28, 2025 5:37:06 AM",
            "dueDate": "Feb 28, 2025 5:37:06 AM"
        }
    ],
    "total": 0,
    "currentPage": 0,
    "totalPages": 0
}

```

This example illustrates the structure and content of the response received from the API when fetching all credit cards.

This endpoint retrieves a list of all credit cards associated with the user. It returns a collection of credit card details in JSON format.

#### Request

* **Method**: GET

* **Endpoint**: `{{host}}/apis/external/creditCards/all`

#### Response

* **Status Code**: 200 OK

* **Content-Type**: application/json

#### Response Body

The response body contains the following fields:

* **creditCardList**: An array of credit card objects, each containing:

  * **id**: Unique identifier for the credit card.

  * **cardHolderId**: Identifier for the cardholder.

  * **cardHolderName**: Name of the cardholder.

  * **cardNumber**: The credit card number.

  * **cardReference**: Reference number for the card.

  * **cardType**: Type of the credit card (e.g., Visa, MasterCard).

  * **issueDate**: Date when the card was issued.

  * **statementDate**: Date of the statement.

  * **dueDate**: Due date for payments.

* **total**: Total number of credit cards available.

* **currentPage**: The current page number of the results.

* **totalPages**: Total number of pages available for pagination.

#### Notes

* If there are no credit cards associated with the user, the `creditCardList` will be an empty array, and `total`, `currentPage`, and `totalPages` will all be set to zero.

* Ensure that the user is authenticated to access this endpoint.

Reference: https://open-api-docs.dice.tech/dice-standardized-ap-is-v-2-copy/credit-card/get-all-cards-details

## Servers

- `https://heimdall.eka.io` (https://heimdall.eka.io, default)
- `https://heimdall.eka.ioapis` (https://heimdall.eka.ioapis)

## Request

### Headers

- `DICE-APP-ID` (string, optional)
- `X-CLIENT-ID` (string, optional)
- `X-CLIENT-SECRET` (string, optional)
- `status` (string, optional)

## Response

### 200

OK

## Examples

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://heimdall.eka.io/apis/external/creditCards/all"

headers = {
    "DICE-APP-ID": "{{Company Code}}",
    "X-CLIENT-ID": "{{API Client ID}}",
    "X-CLIENT-SECRET": "{{API Client Secret}}",
    "status": "completed"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://heimdall.eka.io/apis/external/creditCards/all';
const options = {
  method: 'GET',
  headers: {
    'DICE-APP-ID': '{{Company Code}}',
    'X-CLIENT-ID': '{{API Client ID}}',
    'X-CLIENT-SECRET': '{{API Client Secret}}',
    status: 'completed'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://heimdall.eka.io/apis/external/creditCards/all"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("DICE-APP-ID", "{{Company Code}}")
	req.Header.Add("X-CLIENT-ID", "{{API Client ID}}")
	req.Header.Add("X-CLIENT-SECRET", "{{API Client Secret}}")
	req.Header.Add("status", "completed")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://heimdall.eka.io/apis/external/creditCards/all")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["DICE-APP-ID"] = '{{Company Code}}'
request["X-CLIENT-ID"] = '{{API Client ID}}'
request["X-CLIENT-SECRET"] = '{{API Client Secret}}'
request["status"] = 'completed'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://heimdall.eka.io/apis/external/creditCards/all")
  .header("DICE-APP-ID", "{{Company Code}}")
  .header("X-CLIENT-ID", "{{API Client ID}}")
  .header("X-CLIENT-SECRET", "{{API Client Secret}}")
  .header("status", "completed")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://heimdall.eka.io/apis/external/creditCards/all', [
  'headers' => [
    'DICE-APP-ID' => '{{Company Code}}',
    'X-CLIENT-ID' => '{{API Client ID}}',
    'X-CLIENT-SECRET' => '{{API Client Secret}}',
    'status' => 'completed',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://heimdall.eka.io/apis/external/creditCards/all");
var request = new RestRequest(Method.GET);
request.AddHeader("DICE-APP-ID", "{{Company Code}}");
request.AddHeader("X-CLIENT-ID", "{{API Client ID}}");
request.AddHeader("X-CLIENT-SECRET", "{{API Client Secret}}");
request.AddHeader("status", "completed");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "DICE-APP-ID": "{{Company Code}}",
  "X-CLIENT-ID": "{{API Client ID}}",
  "X-CLIENT-SECRET": "{{API Client Secret}}",
  "status": "completed"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://heimdall.eka.io/apis/external/creditCards/all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```