Can not create Card ID

nazirjon
Helper

Can not create Card ID

Hello,
I am sending request for resource to create Card ID by PAN:

https://sandbox.api.visa.com/dcas/cardservices/v1/cards
Body:
{
"cardIdModel": [
{
"pan": "4123640062698797",
"lookUpBalances": true
}
]
}

Why I get a responce 404 No Cards Found ?
I used a lot of PAN but it doesn't work. Please help me. Thanks in advance.

4 REPLIES 4
API_Products
Visa Developer Support Specialist

Re: Can not create Card ID

Hey @nazirjon,

 

I'd like to help you resolve the issue you're experiencing. To further investigate, please provide the following information:

1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body

Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.

 




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

nazirjon
Helper

Re: Can not create Card ID

Thank you for your reply, i've used youg suggest, but it does n't create card id.

Could you check please where i wrong?

 

Снимок.PNG

API_Products
Visa Developer Support Specialist

Re: Can not create Card ID

Hey @nazirjon,

 

I just did a sandbox test using VDP Playground for DPS Card and Account Services > Card Services API > Create Card ID for a PAN and I got a successful 200 OK response. What I did is that I just copy pasted the Code Explorer Body from the API Reference page here - https://developer.visa.com/capabilities/dps-card-and-account-services/reference#dps-card-and-account...

 

Please try the test again and let us know if it works. You can test again using Soap UI or you can test again using VDP Playground. My screenshot examples are from me using VDP Playground. If you'd like to use VDP Playground you can follow the instructions on this community forum post here - 

https://community.developer.visa.com/t5/Visa-Developer-Capabilities/The-remote-server-returned-an-er...

 

I'm happy to help you resolve any issue that you may have. 

 

Code Explorer is located on the right side of the API Reference page (refer to screenshot below).

20191004 DPS DCAS Create Card ID for PAN Code Explorer Body.png

 

I've also included the successful Request, Response and Response Header for you below (see it's screenshot below).

 

Request:

 

{"cardIdModel": [{
"lookUpBalances": true,
"pan": "4883836336860016"
}]}

 

 

Response:

 

{
"receivedTimestamp": "2019-10-04 18:47:12.971",
"resource": {"cards": [
{
"cardId": "8d212293-c6bc-4738-afaf-bc0ae5456df5",
"accounts": [{
"accountIndicatorDescription": null,
"balances": {
"ledger": {
"amount": 6313.07,
"currencyCode": "840"
},
"amountDue": null,
"amountOwing": null,
"availableCredit": null,
"creditLine": null,
"available": {
"amount": 6313.07,
"currencyCode": "840"
}
},
"isFunding": false,
"accountTypeDescription": null,
"accountIndicatorCode": null,
"institutionId": null,
"accountTypeCode": "Prepaid",
"isFundingComputed": false,
"accountOpenedDate": "2001-01-01T00:00:00Z",
"accountAliasId": "00a1e4e0-b7e9-4be4-9834-1f94f28316d7",
"accountNumber": "XXXX3167"
}],
"pan": "XXXXXXXXXXXX0016"
},
{
"cardId": "8d212293-c6bc-4738-afaf-bc0ae5456df5",
"accounts": [{
"accountIndicatorDescription": null,
"balances": {
"ledger": {
"amount": 6313.07,
"currencyCode": "840"
},
"amountDue": null,
"amountOwing": null,
"availableCredit": null,
"creditLine": null,
"available": {
"amount": 6313.07,
"currencyCode": "840"
}
},
"isFunding": false,
"accountTypeDescription": null,
"accountIndicatorCode": null,
"institutionId": null,
"accountTypeCode": "Prepaid",
"isFundingComputed": false,
"accountOpenedDate": "2001-01-01T00:00:00Z",
"accountAliasId": "00a1e4e0-b7e9-4be4-9834-1f94f28316d7",
"accountNumber": "XXXX3167"
}],
"pan": "XXXXXXXXXXXX0016"
}
]},
"processingTimeInMs": 125,
"errors": []
}

 

 

Response Header:

 

Status Code: 200 OK
Server : nginx
Content-Type : application/json
X-SERVED-BY : l55c017
X-CORRELATION-ID : 1570214832_999_376117991_l55c017_VDP_WS
X-Backside-Transport : OK OK,OK OK
Cache-Control : no-cache ,no-cache, no-store, must-revalidate
Pragma : no-cache
Expires : -1
X-OPNET-Transaction-Trace : a2_de210d54-8ba6-4c56-b26e-f819934282b0-10976-2780
Correlation-ID : 91d85363-3146-421b-9c09-f24d0745dcca
X-Powered-By : ASP.NET
X-Content-Type-Options : nosniff
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
Content-Security-Policy : default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';
X-Global-Transaction-ID : 3170564861
X-APP-STATUS : 200
Strict-Transport-Security : max-age=2592000;includeSubdomains
Vary : Accept-Encoding
Date : Fri, 04 Oct 2019 18:47:13 GMT
Connection : keep-alive

 

20191004 DPS DCAS Create Card ID for PAN 200 OK.png

 




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

nazirjon
Helper

Re: Can not create Card ID

Thanks to your responce DianaTran-Yee.

Actually, i've got a success responce regarding PAN from Test Data(Section Create Card ID), but i'd like to get a balance of PAN's related to another API(for example Card Validation) of the current project. But getting reply from another Post (https://community.developer.visa.com/t5/Getting-Started-with-Visa/How-to-enable-PAN-access-for-other...) I've understood, that it's right now impossible.