Re: OBTENER DATOS INICIALES PARA PRUEBAS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OBTENER DATOS INICIALES PARA PRUEBAS
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: OBTENER DATOS INICIALES PARA PRUEBAS
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: OBTENER DATOS INICIALES PARA PRUEBAS
Hola Syed Sa, buen dÃa:
Por favor, si pueden responder a esta inquietud, para que pueda seguir avanzando, muchas gracias.
Saludos cordiales
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: OBTENER DATOS INICIALES PARA PRUEBAS
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: OBTENER DATOS INICIALES PARA PRUEBAS
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: OBTENER DATOS INICIALES PARA PRUEBAS
Hey @JorgeTigre,
To address your inquiries:
-
Valid Values for regionId and processorId: Typically, the valid values for
regionId
andprocessorId
are specific to the project and the APIs you are using. These values are often predefined and need to be obtained from the documentation or support resources provided by Visa Developer. I recommend checking the API documentation on the Visa Developer website for details on these parameters. If the documentation does not provide this information, you may need to contact Visa Developer support for assistance. -
Querying Master Data Tables: Visa Developer may provide endpoint APIs to query master data tables. This allows you to retrieve lists of valid values for regions, processes, clients, cards, banks, etc. Check the available APIs in the API Reference section on the Visa Developer website. Look for APIs that provide metadata or reference data. If such APIs are not available, contacting Visa Developer support might be necessary to obtain this information.
By referring to the Visa Developer documentation and support resources, you should be able to find the necessary values and successfully configure your API requests.
I hope this helps to clarify your queries. If you have any further questions, please feel free to ask.