I am currently experiencing an issue while using API, and I was hoping to get some assistance. I need to retrieve details of an issued card. Here is the code
app.get('/card', async (req, res) => {
try {
// const result = await makeRequest('POST', `/v1/issuing/cards/card_480de82cf2d75f74c58351d1abf8f3be`);
const result = await makeRequest('POST', `/v1/issuing/cards/ci_7664c0693f4dd6d3c2862dc25723c06a`);
res.json(result);
} catch (error) {
res.json(error);
}
})
The error in the browser
{
"statusCode": 401,
"headers": {
"date": "Thu, 02 Nov 2023 18:38:01 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "173",
"connection": "close",
"vary": "X-HTTP-Method-Override, Accept-Encoding",
"etag": "W/\"ad-VImdX7MSH5uJ03DXwD9nWw\""
},
"body": {
"status": {
"error_code": "UNAUTHORIZED_API_CALL",
"status": "ERROR",
"message": "",
"response_code": "UNAUTHORIZED_API_CALL",
"operation_id": "83a0228b-66aa-411b-89f0-9622b11ef239"
}
}
}
I followed the requirements from the Retrieve Issued Card Details documentation page, but the error is not changing even when I use ID of the issued card string starting with ci_ or card_.