DATOS PARA PRUEBAS

JorgeTigre
New Contributor

DATOS PARA PRUEBAS

Estimados, buen día:

 

Soy bastante nuevo en el tratamiento de las API de visa developer,

 

Estoy en modo sandbox, tratando de probar desde postman, la url: https://sandbox.api.visa.com/cdsapi/commercial/v1/ob/trxndata

 

le coloqué el body

{
    "issuer": {
        "metadata": {
        "startDate": "2021/03/01",
        "endDate": "2021/03/20",
        "startIndex" : 1
        },
        "bank": [
            {
                "regionId": 1,
                "processorId": 1,
                "bankId": "6282",
                "company": [
                    {
                    "companyId": "48800460"
                    }
                ]
            }
        ]
    }
}
y retorna:
{
    "transactionData": {
        "responseMetadata": {
            "requestId": "1739369559_025_715771124_-579f8d9b4-8_VDP_WS"
        },
        "starterInfo": {
            "invalidRegionId": [
                1
            ],
            "invalidProcessorId": [
                1
            ],
            "bankIdNotRegister": [
                "6282"
            ],
            "errorMessage": [
                "Please check your inputs. Either of region ID or/and processor ID or/and Bank Id or/and Company Id are not registered for the given client ID!"
            ]
        }
    }
}
por otro lado, la url la estoy usando con parámetro clientId
 
 
tengo dos preguntas para hacer:
 
1.
¿alguien sabe qué valor puedo colocar en RegionId y processorId, o en todo el conjunto de datos del body, para que funcione bien?
2. ¿dónde se pueden consultar los distintos valores de los campos de prueba? o las tablas con datos de prueba ?

Aguardo alguna respuesta favorable
 
Muchas gracias
 
Saludos cordiales
 
4 REPLIES 4
jenn_kh
Community Moderator

Re: DATOS PARA PRUEBAS

Hi @JorgeTigre, Thank you for reaching out. One of our agents will be with you shortly. Until then, if any community member knows a solution, please feel free to reply in this thread.

JorgeTigre
New Contributor

Re: DATOS PARA PRUEBAS

Hola Jenn, buen dia, muchas gracias por la respuesta.

Si por favor, que alguien me indique como seguir, porque de lo contrario, no puedo continuar avanzando.

Saludos cordiales

DianaVisaPM
Visa Developer Support Specialist

Re: DATOS PARA PRUEBAS

Hey @JorgeTigre,

 

I understand you are facing issues while testing the Visa Developer API in sandbox mode using Postman. Here are some recommendations and answers to your questions:

 

Question 1:
Does anyone know what value I can put in RegionId and ProcessorId, or the entire body data set, to function correctly?

In the sandbox environment, Visa provides specific test data values that you need to use to make successful requests. For `RegionId`, `ProcessorId`, `BankId`, and `CompanyId`, you should use the specific values provided by Visa for sandbox testing. Unfortunately, these values are not always easily accessible and often require reviewing specific documentation or contacting Visa Developer support.

 

Question 2:
Where can I consult the different values for the test fields? Or the tables with test data?

To obtain the values for the test fields (such as `RegionId`, `ProcessorId`, `BankId`, and `CompanyId`), you can follow these steps:

1. Review the API Documentation: The Visa Developer Platform typically includes examples and details about test values in the specific API documentation. Go to the documentation section of the API you are using and look for sample requests. Log into your Project app, and on left side menu look for Test Data tab and click on there. 

 

Example Request with Test Values

If you have access to the test values, your request in Postman should look something like this:

```json
# START
{
"issuer": {
"metadata": {
"startDate": "2021/03/01",
"endDate": "2021/03/20",
"startIndex": 1
},
"bank": [
{
"regionId": 1, // Correct test value
"processorId": 1, // Correct test value
"bankId": "1234", // Correct test value
"company": [
{
"companyId": "567890" // Correct test value
}
]
}
]
}
}
# END
```

 

Request URL

Make sure the request URL includes the correct `clientId` parameter:

```
https://sandbox.api.visa.com/cdsapi/commercial/v1/ob/trxndata?clientId=YOUR_CLIENT_ID
```

Replace `YOUR_CLIENT_ID` with the client ID provided to you.

 

Next Steps

1. Verify Documentation: Review the Visa Developer Platform documentation for the specific API you are using.
2. Contact Support: If you cannot find the test values in the documentation, contact Visa Developer support via email at developer@visa.com to obtain the necessary information.

 

I hope this information helps you to continue with your testing. If you have more questions, feel free to ask.




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.

JorgeTigre
New Contributor

Re: DATOS PARA PRUEBAS

Estimada Diana, muy buen día:

 

Muchas gracias por tu respuesta

No puedo encontrar el clientId que me proporcionaron, voy al panel de proyectos, ingreso al proyecto, voy a credenciales y no hay ningún clientId, ¿será que hay que hacer algo para generarlo que yo no hice?

Saludos cordiales