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.
Thanks.
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
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
Hello,
I am still not getting virtual card number in response. Please find the response below.
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...
Hello Diana,
The page you mentioned doesn't contain sample response.
I need virtual card number in response.
Thanks
Amol Borse
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.
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.