> 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 Credit Card Details

GET https://heimdall.eka.io/apis/external/creditCards/5880154/details

### Endpoint Description

This endpoint retrieves the details of a specific credit card identified by its unique ID. The request is made via an HTTP GET method, and it returns comprehensive information about the credit card, including details about the cardholder and the card's financial limits.

### Request

* **Method:** GET

* **URL:** `{{host}}/apis/external/creditCards/{cardId}/details`

* **Path Parameter:**

  * `cardId` (integer): The unique identifier for the credit card whose details are being requested.

### Response

Upon a successful request, the API returns a JSON object with the following structure:

```json
{
    "id": 5880154,
    "cardHolder": {
        "empId": 841676,
        "code": "E0001",
        "name": "karanas shrma",
        "email": "testuser1@yopmail.com",
        "departmentId": 38362,
        "officeId": 74549,
        "currency": "INR"
    },
    "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",
    "cardStatus": "ACTIVE",
    "initialLimit": 20000.0,
    "actualLimit": 20000.0,
    "availableLimit": 0.0,
    "data": {
        "expiredOn": "null",
        "cardType": "Visa First Corporate Employee Card - Primary"
    }
}

```

### Response Fields

* `id` (integer): The unique identifier of the credit card.

* `cardHolder` (object): Information about the cardholder, including:

  * `empId` (integer): Employee ID of the cardholder.

  * `code` (string): Code associated with the cardholder.

  * `name` (string): Name of the cardholder.

  * `email` (string): Email address of the cardholder.

  * `departmentId` (integer): ID of the department the cardholder belongs to.

  * `officeId` (integer): ID of the office where the cardholder works.

  * `currency` (string): Currency used for the card.

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

* `cardReference` (string): Reference number for the card.

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

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

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

* `dueDate` (string): Due date for payment.

* `cardStatus` (string): Current status of the card.

* `initialLimit` (integer): Initial credit limit set for the card.

* `actualLimit` (integer): Current credit limit on the card.

* `availableLimit` (integer): Available credit limit for transactions.

* `data` (object): Additional card data, including:

  * `expiredOn` (string): Expiration date of the card.

  * `cardType` (string): Type of card related data.

### Status Codes

* **200 OK**: The request was successful, and the credit card details are returned in the response.

This endpoint retrieves the details of a specific credit card associated with a given identifier. The request is made using an HTTP GET method, and it returns a comprehensive JSON response containing various attributes related to the credit card.

### Request

* **Method**: GET

* **URL**: `{{host}}/apis/external/creditCards/{id}/details`

* **Path Parameter**:

  * `id` (integer): The unique identifier of the credit card whose details are being requested.

### Response

Upon a successful request (HTTP Status 200), the response will be in JSON format and includes the following fields:

* **id** (integer): The unique identifier of the credit card.

* **cardHolder** (object): Contains information about the cardholder.

  * **empId** (integer): Employee ID of the cardholder.

  * **code** (string): Code associated with the cardholder.

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

  * **email** (string): Email address of the cardholder.

  * **departmentId** (integer): ID of the department associated with the cardholder.

  * **officeId** (integer): ID of the office associated with the cardholder.

  * **currency** (string): Currency used for the card.

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

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

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

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

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

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

* **cardStatus** (string): Current status of the card.

* **initialLimit** (number): The initial credit limit assigned to the card.

* **actualLimit** (number): The current credit limit of the card.

* **availableLimit** (number): The available credit limit for transactions.

* **data** (object): Additional data related to the credit card.

  * **expiredOn** (string): Expiration date of the card.

  * **cardType** (string): Type of the card as per additional data.

### Notes

* Ensure that the `id` parameter is correctly specified in the request URL to retrieve the appropriate credit card details.

* The response provides detailed information about both the cardholder and the credit card itself, which can be useful for various applications, including account management and financial tracking.

**Method:** GET\
**Endpoint:** `{{host}}/apis/external/creditCards/{cardId}/details`

This endpoint retrieves the details of a specific credit card identified by the `cardId`. The request must include the `cardId` as part of the URL path.

#### Request Parameters:

* **Path Parameter:**

  * `cardId` (string): The unique identifier for the credit card whose details are being requested.

#### Example Request Body:

The last call to this endpoint used the following payload:

#### Expected Response:

Upon a successful request, the API will return a response with a status code of `200` and a content type of `application/json`. The response body will contain the following structure:

#### Response Fields:

* `id`: The unique identifier for the credit card.

* `cardHolder`: An object containing details about the cardholder, including their ID, name, email, and department.

* `cardNumber`: The number associated with the credit card.

* `cardReference`: A reference number for the card.

* `cardType`: The type of credit card.

* `issueDate`: The date the card was issued.

* `statementDate`: The date of the latest statement.

* `dueDate`: The due date for payment.

* `cardStatus`: The current status of the card.

* `initialLimit`: The initial credit limit set for the card.

* `actualLimit`: The current credit limit.

* `availableLimit`: The available credit limit.

* `data`: Additional information about the card, such as expiration date and type.

This endpoint is essential for obtaining detailed information about a credit card, which can be used for various financial operations and reporting.

Reference: https://open-api-docs.dice.tech/dice-standardized-ap-is-v-2-copy/credit-card/get-credit-card-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/5880154/details"

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/5880154/details';
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/5880154/details"

	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/5880154/details")

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/5880154/details")
  .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/5880154/details', [
  '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/5880154/details");
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/5880154/details")! 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()
```