Re: Unable to get Virtual Card number in response through Virtual Card Requisition API.

amolborse
New Contributor

Unable to get Virtual Card number in response through Virtual Card Requisition API.

Hi Team,

 

I am unable to get Virtual Card number in response through Virtual Card Requisition API.

There is no sample response on below link, so that we can understand.

Link: https://developer.visa.com/capabilities/vpa/reference#tag/Account-Management-service/operation/Virtu...

 

Thanks.

8 REPLIES 8
jenn_kh
Community Moderator

Re: Unable to get Virtual Card number in response through Virtual Card Requisition API.

Hi and welcome to the community, @amolborse! Thank you for your question.  An agent is looking into this and will get back to you with more information soon. -Jenn

API_Products
Visa Developer Support Specialist

Re: Unable to get Virtual Card number in response through Virtual Card Requisition API.

Hi @amolborse,

 

I just ran a sandbox test and got a successful result. Please see request/response payload below and share your result with us.

 

End Point https://sandbox.api.visa.com/vpa/v1/accountManagement/VirtualCardRequisition
Method POST
Request
{
"optionalField1": "optionalField1",
"clientId": "B2BWS_1_1_9999",
"requisitionDetails": [{
"endDate": "2020-03-01",
"timeZone": "UTC-6",
"rules": [{
"ruleCode": "VPAS",
"overrides": [
{
"sequence": 0,
"overrideCode": "amount",
"overrideValue": 840
},
{
"sequence": 0,
"overrideCode": "amount",
"overrideValue": 55
}
]
}],
"startDate": "2017-02-01"
}],
"proxyPoolId": "M7test",
"messageId": "2017-04-06T03:47:20.000Z",
"buyerId": 9999,
"employee": {
"lastName": "lname",
"firstName": "fname",
"address": {
"city": "FC",
"countryCode": "USA",
"postalCode": 94404,
"addressLine1": "Address1",
"addressLine2": "Address2",
"state": "CA"
},
"gl": 12,
"eMailId": "aaa1@bbb.com",
"costCenter": 12,
"employeeId": 772288,
"companyAdminEMailId": "compAdmin@bbb.com"
},
"accountNumber": 4111111111111111,
"optionalField4": "optionalField4",
"optionalField5": "optionalField5",
"optionalField2": "optionalField2",
"optionalField3": "optionalField3"
}
Response
{
"requisitionId": "58400",
"messageId": "2017-04-06T03:47:20.000Z",
"responses": {"response": {
"responseDescription": "Virtual Card Requisition request processed successfully",
"responseCode": "00"
}},
"accountNumber": "4111111111111111",
"expirationDate": "202210"
}
Response Header
Status Code: 200 OK
Server : nginx
Date : Sat, 15 Jan 2022 03:51:08 GMT
Content-Type : application/json
Content-Length : 313
Connection : keep-alive
X-SERVED-BY : l55c018
X-CORRELATION-ID : 1642218668_326_1932841390_l55c018_VDP_WS
X-APP-STATUS : 200
Cache-Control : no-cache, no-store, must-revalidate
Pragma : no-cache
Expires : 0 ,-1
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000;includeSubdomains;always

 

 




Thanks,

Diana



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

amolborse
New Contributor

Re: Unable to get Virtual Card number in response through Virtual Card Requisition API.

Hello,

 

I am still not getting virtual card number in response. Please find the response below.

 

{
"messageId": "2017-04-06T03:47:20.000Z",
"accountNumber": "4111111111111111",
"expirationDate": "202210",
"requisitionId": "58400",
"responses": {
"response": {
"responseCode": "00",
"responseDescription": "Virtual Card Requisition request processed successfully"
}
}
}
API_Products
Visa Developer Support Specialist

Re: Unable to get Virtual Card number in response through Virtual Card Requisition API.

Hi @amolborse,

 

Please refer to the API Reference page to let me know which response attribute you're looking for and are not getting. Here's the link to the API Reference page: https://developer.visa.com/capabilities/vpa/reference#tag/Account-Management-service/operation/Virtu...  




Thanks,

Diana



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

amolborse
New Contributor

Re: Unable to get Virtual Card number in response through Virtual Card Requisition API.

Hello Diana,

 

The page you mentioned doesn't contain sample response. 

 

I need virtual card number in response.

 

Thanks

Amol Borse

API_Products
Visa Developer Support Specialist

Re: Unable to get Virtual Card number in response through Virtual Card Requisition API.

Hi @amolborse,

 

I've logged incident INC12849394 for our engineering team to investigate. I'll provide you with an update once I hear back from them. 




Thanks,

Diana



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

amolborse
New Contributor

Re: Unable to get Virtual Card number in response through Virtual Card Requisition API.

Thank You!
API_Products
Visa Developer Support Specialist

Re: Unable to get Virtual Card number in response through Virtual Card Requisition API.

Hi @amolborse,

 

Updated Message: 

The virtual card requisition API is a legacy API and we will be removing this API from the Visa Developer Portal site.

If the intention is to request a commercial virtual account and set payment controls, then Request Virtual Account API is likely the correct one to use. A deep dive into use case with the product owner can determine if this API is best for your use case.




Thanks,

Diana



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