Estimados, buen dia
Pueden indicarme como armar una prueba en POSTMAN para la API cuya URL es
https://sandbox.api.visa.com/cdsapi/commercial/v1/ob/starterdata
Dado que con los datos parámetros que indican la documentación, no funciona, arroja la siguiente respuesta:
Se requiere ID de procesador.
Se requiere identificación de región
estado 400 BAD_REQUEST
Muchas gracias
Saludos cordiales
Hi @JorgeTigre, Thank you for reaching out. An agent will get back to you as soon as possible. Until then, if any community member knows a solution, feel free to reply in this thread.
Hola Syed Sa, buen día:
Por favor, si pueden responder a esta inquietud, para que pueda seguir avanzando, muchas gracias.
Saludos cordiales
Hey @JorgeTigre,
To perform a test in POSTMAN for the API with the URL `https://sandbox.api.visa.com/cdsapi/commercial/v1/ob/starterdata`, it's important to ensure that all required parameters are correctly set. The errors "Processor ID required" and "Region ID required" indicate that these parameters are missing or not correctly included in the request.
Here is a step-by-step guide to properly configure your request in POSTMAN:
1. Create a new request in POSTMAN:
- Method: `POST`
- URL: `https://sandbox.api.visa.com/cdsapi/commercial/v1/ob/starterdata`
2. Authorization:
- Type: `Basic Auth`
- Username: Your `UserId` provided by Visa Developer
- Password: Your `Password` provided by Visa Developer
3. Headers:
- Add the following headers:
```
Content-Type: application/json
Accept: application/json
```
4. Body:
- Select `raw` and `JSON` for the body type.
- Make sure to include the `Processor ID` and the `Region ID` in the JSON request body. Here is an example of how the request body should look:
```json
// START
{
"processorId": "YourProcessorID",
"regionId": "YourRegionID",
"otherParameter1": "value1",
"otherParameter2": "value2"
}
// END
```
5. Certificates:
- Ensure that you have the proper certificates configured in POSTMAN. Visa requires the use of certificates to authenticate requests. Go to the `Settings` tab in POSTMAN and configure your client certificates.
6. Send the Request:
- Once all parameters are correctly set, click `Send` to execute the request.
If the issue persists, check the following:
- Ensure that the `Processor ID` and `Region ID` are correct and up-to-date.
- Review the API documentation on Visa Developer to make sure no other required parameters are missing.
Estimada Diana, buen día
Muchas gracias por tu respuesta
Te cuento, el POSTMAN, lo tengo bien configurado, coincide con todas las indicaciones en tu respuesta, el problema es que no sé qué VALORES poner en regionId y processorId, les estoy poniendo valor 1 (uno) y entiendo que ese valor uno no existe,
Entonces, yo quisiera saber, cuales son los valores válidos que se pueden poner
Por otro lado, también quisiera saber, como consultar las "tablas con datos maestros" para poder examinarlas, por ejemplo: regiones, procesos, clientes, tarjetas, bancos, etc.
Porque las API, solicitan que pongamos valores a determinados parámetros, que si no sabemos cuales son, nunca podremos lograr que las API nos devuelvan datos exitosos.
Resumiendo; el POSTMAN, lo tengo bien armado, funciona y devuelve una respuesta, lo cual demuestra que esta funcionando, el problema es que necesito saber, cómo puedo consultar los valores que debemos colocar en los parámetros.
Espero hayas comprendido, mi inquietud, y muchas gracias por tu atención.
Saludos cordiales