Hello,
I'm implementing the Program Administration API - Create transaction controls allowed for an issuer Problem. And it responds me a error about missing ruleCategory. But at the API References does not mention anything about it.
Here is my Postman log:
POST /vctc/programadmin/v1/configuration/transactiontypecontrols?apiKey=MY_KEY HTTP/1.1
x-pay-token: xv2:1632493700:895aa23b80fe2a9424132d568c869e517f763eeb741789a9dba9fb0cf7ae46b8
Accept: application/json
Content-Type: application/json
User-Agent: PostmanRuntime/7.28.4
Postman-Token: e8b7fb9e-7859-4f52-a6db-b7eb47251a0e
Host: sandbox.api.visa.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 58
{
"transactionTypeRules": [
"TCT_ATM_WITHDRAW"
]
}
HTTP/1.1 422 Unprocessable Entity
Server: nginx
Date: Fri, 24 Sep 2021 14:28:20 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 106
Connection: keep-alive
X-SERVED-BY: l73c018
X-CORRELATION-ID: 1632493700_784_810320006_l73c018_VDP_WS
X-Backside-Transport: FAIL FAIL,FAIL FAIL
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: -1
X-Global-Transaction-ID: 458484be614de0840a449297
X-APP-STATUS: 422
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
{"metainfo":{"Description":"Invalid Data","Code":422},"error":["PCT_TRANSACTION ruleCategory is missing"]}
And these is the API Reference screen shoot:
Any idea what's going on?
Thanks,
Javier.
Solved! Go to Solution
Thank you for reaching out, @JavierSivack! Our agent is looking into this and will get back to you as soon as possible. -Jenn
Hi @JavierSivack,
I checked and it is working on my end.
End Point https://sandbox.api.visa.com/vctc/programadmin/v1/configuration/transactiontypecontrols?apikey=N8KUC...
Method POST
Request
{"transactionTypeRules": ["TCT_ATM_WITHDRAW"]}
Response
{
"receivedTimestamp": "2021-09-24 23:42:44.839",
"resource": {"lastUpdateTimeStamp": "2021-09-24 23:42:44"},
"processingTimeinMs": 87
}
Can you please try again?
Same error.
As before here is my postman console log, where you can see that my end point is same as yours, same with request body.
POST /vctc/programadmin/v1/configuration/transactiontypecontrols?apiKey=MY_KEY HTTP/1.1
x-pay-token: xv2:1632751715:9e6a62662af066577ee08b7fa4cd4b37263550a1daf25adbeb35278502a712af
Accept: application/json
Content-Type: application/json
User-Agent: PostmanRuntime/7.28.4
Postman-Token: e675a2b5-366f-4712-a8c3-3733f09e8ded
Host: sandbox.api.visa.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 66
{
"transactionTypeRules": [
"TCT_ATM_WITHDRAW"
]
}
HTTP/1.1 422 Unprocessable Entity
Server: nginx
Date: Mon, 27 Sep 2021 14:08:36 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 106
Connection: keep-alive
X-SERVED-BY: l73c017
X-CORRELATION-ID: 1632751715_977_2093215667_l73c017_VDP_WS
X-Backside-Transport: FAIL FAIL,FAIL FAIL
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: -1
X-Global-Transaction-ID: 69536f0d6151d064019ede85
X-APP-STATUS: 422
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
{"metainfo":{"Description":"Invalid Data","Code":422},"error":["PCT_TRANSACTION ruleCategory is missing"]}
Hi @JavierSivack,
Can you please try the Retrieve rule configuration and capabilities allowed for an issuer endpoint to see if PCT_TRANSACTION is configured?
End Point https://sandbox.api.visa.com/vctc/programadmin/v1/sponsors/configuration
If not configured, then Create the rule configuration for PCT_TRANSACTION:
End Point https://sandbox.api.visa.com/vctc/programadmin/v1/sponsors/configuration
Request body
{"ruleCategories": ["PCT_TRANSACTION"]}
Then Create the transaction type control:
End Point https://sandbox.api.visa.com/vctc/programadmin/v1/configuration/transactiontypecontrols
Request body
{"transactionTypeRules": ["TCT_ATM_WITHDRAW"]}
That was the problem.
Thanks!