const requestId = 's4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG';
const response = await fetch(`https://service.pcibooking.net/api/card-view-request/${requestId}`, {
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
console.log(await response.json());
import requests
request_id = 's4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG'
response = requests.get(
f'https://service.pcibooking.net/api/card-view-request/{request_id}',
headers={'Authorization': 'APIKEY your-api-key'}
)
print(response.json())
{
"requestId": "s4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG",
"status": "CardShown",
"createdAt": "2026-01-12T14:00:00Z",
"expiresAt": "2026-01-12T14:15:00Z",
"linkOpenedAt": "2026-01-12T14:02:10Z",
"lastOtpSentAt": "2026-01-12T14:02:30Z",
"otpSentCount": 1,
"viewCount": 1,
"maxViews": 3,
"firstViewedAt": "2026-01-12T14:03:05Z",
"lastViewedAt": "2026-01-12T14:03:05Z",
"endedAt": null,
"endReason": null,
"locked": false,
"metadata": "BOOKING-12345"
}
Card Display
Get Card Display Session Status
Check what happened in a Card Display with OTP session: link opened, codes sent, views, and whether it ended.
GET
/
api
/
card-view-request
/
{requestId}
const requestId = 's4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG';
const response = await fetch(`https://service.pcibooking.net/api/card-view-request/${requestId}`, {
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
console.log(await response.json());
import requests
request_id = 's4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG'
response = requests.get(
f'https://service.pcibooking.net/api/card-view-request/{request_id}',
headers={'Authorization': 'APIKEY your-api-key'}
)
print(response.json())
{
"requestId": "s4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG",
"status": "CardShown",
"createdAt": "2026-01-12T14:00:00Z",
"expiresAt": "2026-01-12T14:15:00Z",
"linkOpenedAt": "2026-01-12T14:02:10Z",
"lastOtpSentAt": "2026-01-12T14:02:30Z",
"otpSentCount": 1,
"viewCount": 1,
"maxViews": 3,
"firstViewedAt": "2026-01-12T14:03:05Z",
"lastViewedAt": "2026-01-12T14:03:05Z",
"endedAt": null,
"endReason": null,
"locked": false,
"metadata": "BOOKING-12345"
}
Card Display with OTP Guide
How the OTP verification flow works end-to-end
Error Responses
| Code | HTTP Status | Condition |
|---|---|---|
| none | 400 | requestId is not a 32-character alphanumeric string. |
| none | 401 | The Authorization header is missing, badly formatted, or the API key is not valid. The response body is empty. See Authentication and Permission Failures. |
| -1003 | 403 | Your user does not have the Retrieve cards or the Perform Card display operations permission, or your IP address is not in your account’s allowed IP list. message names the reason. |
| -160 | 404 | No card display session with this ID exists for your account. A session created by another account returns the same response. |
| -150 | 500 | The session could not be read. |
Parameters
Authentication
API key only. This endpoint does not accept access tokens or session tokens.Your API key prefixed with
APIKEY. Example: APIKEY your-api-key. The x-pcibooking-api-key header is also accepted. See the Authentication guide.Path Parameters
The
requestId returned by Initiate Card Display with OTP.const requestId = 's4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG';
const response = await fetch(`https://service.pcibooking.net/api/card-view-request/${requestId}`, {
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
console.log(await response.json());
import requests
request_id = 's4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG'
response = requests.get(
f'https://service.pcibooking.net/api/card-view-request/{request_id}',
headers={'Authorization': 'APIKEY your-api-key'}
)
print(response.json())
Response
| Field | Type | Description |
|---|---|---|
requestId | string | The session ID. |
status | string | Created (link not opened yet), LinkOpened, OtpSent (a code was sent), CardShown (the card was shown at least once), Expired (TtlMinutes ran out) or Ended (ended before it expired). |
createdAt | datetime | When the session was created. |
expiresAt | datetime | When the link expires. |
linkOpenedAt | datetime | When the viewer first opened the link. null if not opened. |
lastOtpSentAt | datetime | When the last code was sent. |
otpSentCount | number | How many codes were sent. |
viewCount | number | How many times the card was shown. |
maxViews | number | The MaxViews value. null if not set. |
firstViewedAt | datetime | When the card was first shown. |
lastViewedAt | datetime | When the card was last shown. |
endedAt | datetime | When the session ended before it expired. null otherwise. |
endReason | string | Customer (you ended it) or MaxViews (the last allowed view was used). null if not ended. |
locked | boolean | true while code entry is locked after too many wrong codes. |
metadata | string | The Metadata value. null if not set. |
{
"requestId": "s4iMrBQioE0JBCJIMN9kjnsLNDeGZUmG",
"status": "CardShown",
"createdAt": "2026-01-12T14:00:00Z",
"expiresAt": "2026-01-12T14:15:00Z",
"linkOpenedAt": "2026-01-12T14:02:10Z",
"lastOtpSentAt": "2026-01-12T14:02:30Z",
"otpSentCount": 1,
"viewCount": 1,
"maxViews": 3,
"firstViewedAt": "2026-01-12T14:03:05Z",
"lastViewedAt": "2026-01-12T14:03:05Z",
"endedAt": null,
"endReason": null,
"locked": false,
"metadata": "BOOKING-12345"
}

