Re: PAR Inquiry endpoint returnes 400 Bad request

Solved! Go to solution
storebox
New Contributor

PAR Inquiry endpoint returnes 400 Bad request

Hi,

Help much appreciated using the PAR Inquiry API. I'm getting http status 400 Bad request, but with no other info about whats wrong with my request. The mutual SSL and MLE encrypt/decrypt seems to work fine.

 

1. Endpoint

https://api.visa.com/par/v1/inquiry


2. Request Header

Authorization=<omitted>
keyId=3258c313-320e-450f-94f9-4200f5367d77
Content-Type=application/json
Accept=application/json

 

3. Request Body

Raw:

{
"clientId" : "72162B94CEDE491897304E59DEDEF769",
"correlatnId" : "82709544538756806001",
"primaryAccount" : "457144XXXXXX8172"
}

 

(primaryAccount has been masked)

 

Encrypted:

{
"encData" : "eyJlbmMiOiJBMTI4R0NNIiwiaWF0IjoxNjE3NzkyNzE4MDgwLCJhbGciOiJSU0EtT0FFUC0yNTYiLCJraWQiOiIzMjU4YzMxMy0zMjBlLTQ1MGYtOTRmOS00MjAwZjUzNjdkNzcifQ.mHzpudRSiecUlB8rpPQqeSyT2Io5wN2DqbomPzdHk-WTsQh63RN0vgspb-QvdfeM6iV9HUqUEzArfhXxphd1u3QK3IJyUQ32Jri8rh9iNhj6em-hp5rXor_APRsx4SyYHkHVJ1FtUw6OWsYqN31qAwAo3vw-HOS8Xca5jymuTqajwMsVWdYHXQb5UjXLDL6FwA9zI710WJBu8K0sOhRWpoVT6JIdtmv0wthrYo-bTEidlTwvnTKwilw5z8A9G5KlaB7pyiKr7jKo1Tiz6yxOvngIZgux_2V5BHH7Ez4f7HNGXBH_76ewZxwJB0tu8xFHtCXlirdZ5px7QPha9g1LiA.P0HHYGBo8AF1tgLa.56K2Bl1MoP4ajCAro3vILaZXD_F14nx6ltfo7Z9SZ5KUFP0SYsjxm1NoOsF99LUw4sWl59eDUoS6nOBomK45E1njNdSZo2J_MjB_q5AzCWjoZDfabXIOhGVO7jfIAEGOI9C4AYt2OM8GwBdYJS0UMCYXjbKfwm3UXQ4dNahj-hvGP8HiWbU4Sw.mt7cLDwx4GCONj7b5sfcXA"
}


4. Response Header (include the x-correlation-id)

headers=[Server: nginx, Date: Wed, 07 Apr 2021 10:52:12 GMT, Content-Type: application/json;charset=UTF-8, Content-Length: 721, Connection: keep-alive, X-SERVED-BY: l73p043, X-CORRELATION-ID: 1617792732_578_2008729906_l73p043_VDP_WS, X-APP-STATUS: 400, X-App-ID: 2250e728-6874-4920-9dbe-6804f6ebe1cc, X-Frame-Options: SAMEORIGIN, X-XSS-Protection: 1; mode=block, X-Content-Type-Options: nosniff, Strict-Transport-Security: max-age=2592000;includeSubdomains, Cache-Control: no-cache, no-store, must-revalidate, Pragma: no-cache, Expires: -1, encrypted: true, Content-Language: en-US, X-Cnection: close, X-Cnection: close]


5. Response Body

 

Encrypted:

{"encData":"eyJjdHkiOiJhcHBsaWNhdGlvblwvanNvbjtjaGFyc2V0PVVURi04IiwiZW5jIjoiQTEyOEdDTSIsImlhdCI6MTYxNzc5MjczMjg3OSwiYWxnIjoiUlNBLU9BRVAtMjU2In0.v7xj-u3ZxJ0BpnjLVi3m219SfGcjrjZVkbQ5j4p5JGOysVfT7ZmPMHwV-jkrx0ZrXsYA5L2SDJDfSFfxd2P-6nvk2Yd7nmCASl174MtOqftvZ4IAWGvewanCFODDFsQw6NAcCRjYPifF-bQTi19_ncSzbmnxG0BaQAgedqnGs8oFt6yeCe1wHBsoox7weVw0D1WNQiK7DUSC8NWKzolouFKlp3ILhj7aFv4AV9rA2DIOg_YHgzBhU9Nm117pePIKB8Rt2Qz3RZGK-QWUz3KWqU2fjNMtv_qxPU2PjJkF7iDaBhtuPP389hbkL9q4U0kircS2_1UgD5LJv4F6uJvjhA.CN7xGQYVqGaM_Emc.-GcWKQKRuDx9GhCgEvfPkOGubbqrfs0CMC0Ml5wsy6k6nCtDK_DEK6Gga9EUh8p3qfNWXDCOaHN9PeII6mgaf7-j11jLsKmae7uxW2PqUPzL-XuTNnWA9uF9x2opTro2bjLK2_S4OceImLsJC8KtyFeto_ClvEUj-FeoGNskrTijQNn2dAQOqiTeFAqAiYPT.y173JjlL4ZCe5G5EIuEKAg"}

 

Decrypted:

{"msgIdentfctn":{"correlatnId":"82709544538756806001","reqstId":"5607408174BD48D64BEAF0F13B886BFB"},"error":{"code":"400","msg":"Bad Request"}}

 

3 REPLIES 3
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: PAR Inquiry endpoint returnes 400 Bad request

Hi @storebox,

 

It looks like you are using the PAR API in the production environment. Can you please share your project name via email to developer@visa.com so I can direct your inquiry to the right support team to provide further assistance. Thanks.


Best,
Stacey

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

Re: PAR Inquiry endpoint returnes 400 Bad request

Hi Stacey,

Thank you.

The project name has been emailed to developer@visa.com

 

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: PAR Inquiry endpoint returnes 400 Bad request

Hi @storebox,

 

Thank you for sending over the project name in email. Our regional support team is currently investigating and they will connect with you directly. Please feel free to reach out with further questions. 


Best,
Stacey

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