Visa Developer Community

Highlighted
Helper

Client Id for Visa Payment Processing API

Hi,
Where can we find the clientid for the project? I tried searching in test data but I couldn't find it. Given below is a sample request and response. Please note that the client id below is filled by my randomly, therefore my guess is the forbidden message is due to that. 

{
    "msgIdentfctn": {
        "correlatnId": "12bc567d90f23e56a8f014"
    },
    "acctInfo": {
        "primryAcctNum": {
            "pan": "4111111111111111"
        }
    },
    "cardAcceptr": {
        "clientId": "0123456789012345678901234567893"
    },
    "transctn": {
        "tranAmt": {
            "amt": "62.45"
        }
    }
}

 

Response:

{\"msgIdentfctn\":{\"correlatnId\":\"57612529885\",\"reqstId\":\"73B5C9FD2C0147F61D63F4B64AB593D3\"},\"error\":{\"code\":\"403\",\"msg\":\"Forbidden\"}}

 

Please do let me know what to do in this case.

1 REPLY 1
Visa Dev Moderator

Re: Client Id for Visa Payment Processing API

Hey @kranti-rzp,

 

I’m getting Error 403 – Forbidden. What does this mean and how can I resolve this?

The 403 (Forbidden) HTTP Status code indicates that this project does not have permission to access the requested resource. This can happen if you are trying to invoke API request for a resource that is not part of your project e.g. if you have created a project with Visa Direct Product but are trying to use the same credentials to access Visa Consumer Transaction Controls.

Resolution:

  • Ensure that you are using a project and the credential for the project which includes the API being accessed
  • Create a project and receive Sandbox credentials for the API’s being called
  • Add the API being called (if not already included) to the project with credentials that are being used

 

If the issue persists, to investigate, you'll need to 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.

 

For error codes and resolution you can also visit the Support page here - https://developer.visa.com/pages/support

 

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

Thanks,
Diana