Get Card Details
GEThttps://api.immersve.com/api/cards/:cardId
Returns the non-sensitive details of a card by a given ID.
Request
Path Parameters
Primary identifier of the card to fetch
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
Card primary identifier
91ad6fea3b52ca58d60d7fd310f789ec
User account ID linked to card
057aa15913a57f50577234c8426534c0
Type of the card
Possible values: [virtual
]
Timestamp of card creation
2022-11-16T03:13:18.142Z
Timestamp of card modification
2022-11-16T03:13:18.142Z
Timestamp of card expiration
2029-02-28T23:59:59.999Z
Whether the card is blocked
Status of the card
Possible values: [active
, cancelled
, created
, shipped
]
List of Funding Source IDs linked to the card
ID of card program linked to the card
91ad6fea3b52ca58d60d7fd310f789ec
An Alpha2 (ISO-3166-1) country code representing the country where the card is issued.
NZ
Expiry date of the card in the format YYYYMM
202409
First 6 digits of the card's PAN (Primary Account Number)
123456
Last 4 digits of the card's PAN (Primary Account Number)
1920
Deprecated field, use expiresAt
2022-11-16T03:18:23.431Z
Indicates whether the card can be unfrozen with the unfreeze endpoint
true
{
"id": "91ad6fea3b52ca58d60d7fd310f789ec",
"accountId": "057aa15913a57f50577234c8426534c0",
"type": "virtual",
"createdAt": "2022-11-16T03:13:18.142Z",
"modifiedAt": "2022-11-16T03:13:18.142Z",
"expiresAt": "2029-02-28T23:59:59.999Z",
"isBlocked": true,
"status": "active",
"fundingSourceIds": [
null
],
"cardProgramId": "91ad6fea3b52ca58d60d7fd310f789ec",
"regionCode": "NZ",
"expiry": "202409",
"panFirst6": "123456",
"panLast4": "1920",
"immersveExpiration": "2022-11-16T03:18:23.431Z",
"unfreezeAllowed": true
}
Request fields are invalid
- application/json
- Schema
- Example (auto)
Schema
400
Bad Request
INVALID_REQUEST_INPUT
errors object[]
{
"statusCode": 400,
"statusName": "Bad Request",
"errorCode": "INVALID_REQUEST_INPUT",
"errors": [
{
"message": "Invalid type",
"path": "items[1].attributes.invalidField"
}
]
}
No Authorization to access resource.
- application/json
- Schema
- Example (auto)
Schema
403
Forbidden
FORBIDDEN
Unauthorized
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}
Authorization: http
name: Access Tokentype: httpscheme: bearerbearerFormat: JWT
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.immersve.com/api/cards/:cardId");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());