{"info":{"_postman_id":"d362a401-2722-40f3-b9e2-1d942c04cb4c","name":"Payments Hub - API","description":"<html><head></head><body><p><code>Payments Hub API</code></p>\n<p>Welcome to Payments Hub API. Here are some pre-made requests for you to explore the API using <a href=\"https://getpostman.com/\">Postman</a>.</p>\n<h2 id=\"getting-started\">Getting Started</h2>\n<p>The Payments Hub API is a RESTful API based on HTTP requests and JSON responses.</p>\n<p>The easiest way to start using the Payments Hub API is by clicking the <strong>Run in Postman</strong> button above. <a href=\"https://www.getpostman.com/\">Postman</a> is a free tool which helps developers run and debug API requests, and is the source of truth for this documentation. Every endpoint you see documented here is readily available by running our Postman collection.</p>\n<h1 id=\"setup\"><strong>Setup</strong></h1>\n<p>You'll need to <a href=\"https://www.getpostman.com/docs/environments\">create an environment in Postman</a>, select that environment, and enter in the <code>Setup/Environment Setup</code> pre-request script (<a href=\"http://www.getpostman.com/docs/pre_request_scripts\">documentation on pre-request scripts</a>) to set the required environment variables.</p>\n<h2 id=\"environments--utilities\">Environments &amp; Utilities</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment</th>\n<th>Base API Url</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Development</td>\n<td><a href=\"https://payments-hub-api-dev.widergydev.com/\">https://payments-hub-api-dev.widergydev.com/</a></td>\n</tr>\n<tr>\n<td>QA</td>\n<td></td>\n</tr>\n<tr>\n<td>Stage</td>\n<td></td>\n</tr>\n<tr>\n<td>Production</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Notes:</p>\n<ul>\n<li><p>Data created or modified in each environment will not affect the other.</p>\n</li>\n<li><p>Data created or modified in each Utility will not affect the other.</p>\n</li>\n<li><p>Data cannot be transfered from one environment/Utility to the other.</p>\n</li>\n</ul>\n<h2 id=\"making-your-first-call\">Making Your First Call</h2>\n<p>Making your first call test that you have the environment variables setup by making a <code>GET</code> request to <code>/health_check</code>. You should get a <code>HTTP 200 OK</code> response if your variables are correct and the API is healthy :)</p>\n<h1 id=\"authentication\"><strong>Authentication</strong></h1>\n<p>The API uses Bearer token based authentication for <code>api</code> scope.</p>\n<p>The API uses api-key y api-secret set in headers for authentication for <code>utility_api</code> scope.</p>\n<h1 id=\"making-your-requests\"><strong>Making your requests</strong></h1>\n<p>Congrats! You must have the client's <code>access_token</code> at this point and you're ready to start making API requests to their behalf. All that's required for this is to set the required headers in your Endpoints</p>\n<p>The API is accessed by making HTTP requests to a specific version endpoint URL, in which GET, POST, PUT, PATCH, DELETE calls contain information about what you wish to access. Every endpoint is accessed via SSL-enabled HTTPS.</p>\n<h2 id=\"responses\">Responses</h2>\n<p>Responses are always in JSON. There's no support for other formats like XML.</p>\n<p>Here are the <a href=\"https://httpstatuses.com/\">HTTP Status Codes</a> mostly used by this API.</p>\n<p><code>200 OK</code>: The request has succeeded.</p>\n<p><code>201 Created</code>: The request has been fulfilled and has resulted in one or more new resources being created.</p>\n<p><code>202 Accepted</code>: The request has been accepted for processing, but the processing has not been completed.</p>\n<p><code>204 No Content</code>: The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.</p>\n<p><code>400 Bad Request</code>: The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, etc.).</p>\n<p><code>401 Unauthorized</code>: The request has been refused because it lacks valid authentication credentials for the target resource.</p>\n<p><code>403 Forbidden</code>: The server understood the request but refuses to authorize it.</p>\n<p><code>404 Not Found</code>: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p>\n<p><code>422 Unprocessable Entity</code>: The server understood the request but was unable to process the contained instructions.</p>\n<p><code>500 Internal Server Error</code>: The server encountered an unexpected condition that prevented it from fulfilling the request.</p>\n<p><code>501 Not Implemented</code>: The server does not support the functionality required to fulfill the request.</p>\n<p><code>504 Gateway Timeout</code>: The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.</p>\n<h2 id=\"errors\">Errors</h2>\n<p>Depending the case, the API will stop processing a request as soon as a problem is encountered, or in some cases it will continue processing and encounter multiple problems. For instance, it might process multiple attributes and then return multiple validation problems in a single response.</p>\n<p>When the API encounters multiple problems for a single request, the most generally applicable HTTP error will be used in the response. For instance, <code>400 Bad Request</code> might be appropriate for multiple 4xx errors or <code>500 Internal Server Error</code> might be appropriate for multiple 5xx errors.</p>\n<h3 id=\"error-objects\">ERROR OBJECTS</h3>\n<p>Error objects provide additional information about problems encountered while performing an operation. Error objects will be returned as an array keyed by <code>errors</code> in the top level of the response body.</p>\n<p>An error object will have the following members:</p>\n<p><strong>View More</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"errors\": [\n        {\n            \"status\": 400,\n            \"code\": \"param_is_missing\",\n            \"message\": \"Algo salió mal. Por favor intente nuevamente más tarde.\",\n            \"meta\": \"param is missing or the value is empty: \\\"email\\\"\"\n        }\n    ]   \n}\n\n</code></pre><ul>\n<li><p><code>status</code>: the HTTP status code applicable to this problem, expressed as a integer value.</p>\n</li>\n<li><p><code>code</code>: an application-specific error code, expressed as a string value.</p>\n</li>\n<li><p><code>message</code>: a human-readable explanation specific to this occurrence of the problem.</p>\n</li>\n<li><p><code>meta</code>: non-standard meta-information about the error.</p>\n</li>\n</ul>\n<p>We've developed a JavaScript based <a href=\"https://github.com/widergy/web-utils\">utils library</a> which has a built-in function to handle these kind of error responses. Check it out!</p>\n<h2 id=\"questions--comments--suggestions\">Questions / Comments / Suggestions</h2>\n<p>If you have any questions or comments, please let us know at <a href=\"https://mailto:widergydev@widergy.com\">widergydev@widergy.com</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Setup","slug":"setup"},{"content":"Authentication","slug":"authentication"},{"content":"Making your requests","slug":"making-your-requests"}],"owner":"32257669","collectionId":"d362a401-2722-40f3-b9e2-1d942c04cb4c","publishedId":"2sB2cPiQPJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"07DB7C"},"publishDate":"2025-03-28T13:04:02.000Z"},"item":[{"name":"Setup","item":[{"name":"a1. Health Check","id":"a1a23ba0-0f54-4751-ae20-a7e7f2c952de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{base-url}}/health_check","description":"<p>El servicio de <strong>Health Check</strong> está diseñado para validar el estado de las utilities. Devuelve un estado <strong>200 OK</strong> si la utility está operativa, o <strong>500 Internal Server Error</strong> si se encuentra caida.</p>\n<p>Para las utilities <strong>CGE</strong> y <strong>Edelmag</strong>, se utiliza el servicio <code>GetAccountData</code> y es necesario configurar la clave <code>health_check_external_key</code> con un valor de la cuenta que utiliza el servicio de la <code>utilities</code>.</p>\n","urlObject":{"path":["health_check"],"host":["{{base-url}}"],"query":[],"variable":[]}},"response":[{"id":"8579110a-986d-4e88-be37-f0335ac4299a","name":"200 - a1. Health Check","originalRequest":{"method":"GET","header":[],"url":"{{base-url}}/health_check"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 01 Sep 2023 19:30:44 GMT"},{"key":"Server","value":"nginx/1.22.0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Last-Modified","value":"Fri, 01 Sep 2023 19:30:44 GMT"},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"880281fc-d81c-4516-ad28-49f72ccf8f4f"},{"key":"X-Runtime","value":"0.010370"},{"key":"Vary","value":"Origin"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 ec80181a54e6098fd855eab95afd7368.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"EZE50-P2"},{"key":"X-Amz-Cf-Id","value":"RqUevoqbzgKNTJHTT8v2WNEnTDjfyVzw23FAWHYeoZQePNW09DpOxg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"healthy\": true,\n    \"message\": \"success\"\n}"}],"_postman_id":"a1a23ba0-0f54-4751-ae20-a7e7f2c952de"},{"name":"Environment Setup","event":[{"listen":"prerequest","script":{"id":"2dde2dd5-1d3b-42c3-8c5d-d8ed10c7a858","exec":["// Set the target utility","// Utility-ID AES:             22","// Utility-ID Surtigas         29","// Utility-ID GdO              30","// Utility-ID GDPACIFICO       31","// Utility-ID GASNORP          32","// Utility-ID CEO              34","// Utility-ID Gasnea           37","pm.environment.set(\"utility-id\", \"34\");","","// Set the target environment. This is currently set to development","// Local        http://localhost:3000","// Development: https://payments-hub-api-dev.widergydev.com  ","// QA-EV:       https://payments-hub-api-qa-ev.widergydev.com","// Production:  https://payments-hub-api.widergy.com/","pm.environment.set(\"base-url\", \"http://localhost:3000\");"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"bc223b56-2a66-499b-8c83-bb37f36f32bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://postman-echo.com/get","urlObject":{"protocol":"https","path":["get"],"host":["postman-echo","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc223b56-2a66-499b-8c83-bb37f36f32bf"}],"id":"9cbf0754-fa7c-4ee8-9bca-f4e6f57050ba","_postman_id":"9cbf0754-fa7c-4ee8-9bca-f4e6f57050ba","description":""},{"name":"Autenticación","item":[{"name":"a2. Token","event":[{"listen":"test","script":{"id":"0d56b38c-bac7-4db1-b030-d9785f50caa3","exec":["var jsonData = pm.response.json();","pm.environment.set(\"token-PaymentsHubAPI\", jsonData.access_token);"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"d33fe8f4-1bf2-409d-8cec-e774e5926b1f","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"5e846e5e-b7f8-4dc5-a95d-62208fa3e86d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"app-id\": \"random_consumer\",\n    \"password\": \"consumer\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/consumers/sessions","urlObject":{"path":["api","v1","consumers","sessions"],"host":["{{base-url}}"],"query":[],"variable":[]}},"response":[{"id":"cc535410-069c-4125-bfd7-f0fa103766af","name":"200 - a2. Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"app-id\": \"utilitygo-edelap\",\n    \"password\": \"utilitygo-edelap\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/consumers/sessions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"245"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 01 Sep 2023 19:29:56 GMT"},{"key":"Server","value":"nginx/1.22.0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"3c9f8886de6dce88b3a3a427ccd702cc\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"772bf263-da25-4251-a2e1-4562626c5b21"},{"key":"X-Runtime","value":"0.105417"},{"key":"Vary","value":"Origin"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 ec80181a54e6098fd855eab95afd7368.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"EZE50-P2"},{"key":"X-Amz-Cf-Id","value":"i4j8SRWiMKnAX0TxtMTsT59k6lTBFxVKAHPSlpHUU9P2LsPX7dLMIg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJIUzI1NiJ9.eyJpZCI6MzQsInV0aWxpdHlfaWQiOjM0LCJhcHBfaWQiOiJ1dGlsaXR5Z28tZWRlbGFwIiwidmVyaWZpY2F0aW9uX2NvZGUiOiIiLCJleHBpcmF0aW9uX2RhdGUiOjE2OTYxODg1OTZ9.zHjzF4c-rHOEE0GaJpSmu3997ao0L-LEl5ybbEYavHg\",\n    \"expires_in\": 2592000\n}"},{"id":"205e91bb-9367-4c7d-8cc0-5e8d330a3c1d","name":"401 - a2. Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"app-id\": \"utilitygo-edelap\",\n    \"password\": \"utilitygo-edelapkjhkj\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/consumers/sessions"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"105"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 01 Sep 2023 19:30:16 GMT"},{"key":"Server","value":"nginx/1.22.0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"e71ac09f-0a39-4904-a84c-55068be05983"},{"key":"X-Runtime","value":"0.110803"},{"key":"Vary","value":"Origin"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 ec80181a54e6098fd855eab95afd7368.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"EZE50-P2"},{"key":"X-Amz-Cf-Id","value":"9VB7Iv3g9Nykcch2qFK6LgnGX0iy36JdCSYJZzpnxl_AmAq4--3ahQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"status\": 401,\n            \"code\": \"client_unauthorized\",\n            \"message\": \"Credenciales inválidas.\",\n            \"meta\": null\n        }\n    ]\n}"}],"_postman_id":"5e846e5e-b7f8-4dc5-a95d-62208fa3e86d"}],"id":"1947fd22-c929-47e4-af34-cd5c0540efc3","_postman_id":"1947fd22-c929-47e4-af34-cd5c0540efc3","description":""},{"name":"Utility_API","item":[{"name":"Payments","item":[{"name":"index","id":"7bbf5061-617e-465d-8354-144a27241246","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"api-key","value":"{{payments-hub-api-key}}","type":"text"},{"key":"api-secret","value":"{{payments-hub-api-secret}}","type":"text"}],"url":"{{base-url}}/utility_api/v1/payments?status[]=rejected&updated_at_to=2026-03-15&updated_at_from=2026-03-09","description":"<h3 id=\"servicio-para-listar-pagos\">Servicio para listar pagos</h3>\n<p>Obtiene una lista de pagos en el sistema, permitiendo aplicar filtros opcionales.</p>\n<h4 id=\"autenticación\">Autenticación</h4>\n<p>Este servicio requiere autenticación mediante los siguientes headers:</p>\n<ul>\n<li><p><code>api-key</code> (string, required): Clave de autenticación de la API.</p>\n</li>\n<li><p><code>api-secret</code> (string, required): Secreto de autenticación de la API.</p>\n</li>\n</ul>\n<h4 id=\"request\">Request</h4>\n<p><strong>Método:</strong> GET<br /><strong>Endpoint:</strong> <code>/utility_api/v1/payments</code></p>\n<p><strong>Query Params:</strong></p>\n<ul>\n<li><p><code>gateway</code> (string, optional): Filtra los pagos por pasarela de pago.</p>\n</li>\n<li><p><code>status</code> (array, optional): Filtra los pagos por estado (ej. approved, pending, in_process, rejected, unknown).</p>\n</li>\n<li><p><code>updated_at_from</code> (string, required): Filtra los pagos por fecha de actualización.</p>\n</li>\n<li><p><code>updated_at_to</code> (string, optional): Fecha límite superior para el filtro de actualización.</p>\n</li>\n<li><p><code>limit</code> (integer, optional): Número máximo de pagos a retornar.</p>\n</li>\n<li><p><code>notification_status</code> (array, optional): Filtra los pagos por estado el estado de la notificación (ej. retrying, pending, acknowledged, error, none).</p>\n</li>\n<li><p><code>payment_reference</code> (string, optional): Filtra los pagos por el identificador de referencia del pago.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>La respuesta será un array de objetos con la información de los pagos.</p>\n<p><strong>Response param:</strong><br />Cada elemento del array representa un pago y contiene:</p>\n<ul>\n<li><p><code>id</code> (integer, required): Identificador del pago.</p>\n</li>\n<li><p><code>payment_reference</code> (string, required): identificador de referencia del pago.</p>\n</li>\n<li><p><code>utility_id</code> (integer, required): Identificador de la utility asociada al pago.</p>\n</li>\n<li><p><code>gateway</code> (string, required): Pasarela de pago utilizada.</p>\n</li>\n<li><p><code>client_number</code> (string, required): Número de cliente asociado al pago.</p>\n</li>\n<li><p><code>total_amount</code> (float, required): Monto total del pago.</p>\n</li>\n<li><p><code>channel</code> (string, required): Canal por el cual se realizó el pago.</p>\n</li>\n<li><p><code>debt_items</code> (array, required): Lista de ítems de deuda incluidos en el pago. Cada elemento contiene:</p>\n<ul>\n<li><p><code>id</code> (integer, required): Identificador del ítem de deuda.</p>\n</li>\n<li><p><code>amount</code> (float, required): Monto del ítem de deuda.</p>\n</li>\n<li><p><code>concept</code> (string, required): Concepto del ítem de deuda.</p>\n</li>\n<li><p><code>client_number</code> (string, required): Número de cliente asociado al ítem de deuda.</p>\n</li>\n</ul>\n</li>\n<li><p><code>email</code> (string, optional): Correo electrónico del usuario que realizó el pago.</p>\n</li>\n<li><p><code>status</code> (string, required): Estado actual del pago.</p>\n</li>\n<li><p><code>external_user_id</code> (string, required): Identificador externo del usuario.</p>\n</li>\n<li><p><code>person_id</code> (string, required): Identificador de la persona asociada al pago.</p>\n</li>\n<li><p><code>payment_method</code> (string, optional): Metodo de pago. Ej. credit_card, debit_card, wallet.</p>\n</li>\n<li><p><code>gateway_additional_info</code> (hash, optional): Información adicional de la pasarela de pago.</p>\n</li>\n<li><p><code>created_at</code> (string, required): Fecha y hora de creación del pago en formato ISO 8601.</p>\n</li>\n<li><p><code>updated_at</code> (string, required): Fecha y hora de última actualización del pago en formato ISO 8601.</p>\n</li>\n</ul>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6f2c6b30-1f6a-4cbf-b0d8-fcacb703a826","id":"6f2c6b30-1f6a-4cbf-b0d8-fcacb703a826","name":"Utility_API","type":"folder"}},"urlObject":{"path":["utility_api","v1","payments"],"host":["{{base-url}}"],"query":[{"disabled":true,"key":"limit","value":"2"},{"key":"status[]","value":"rejected"},{"disabled":true,"key":"status[]","value":"pending"},{"disabled":true,"key":"notification_status[]","value":"error"},{"disabled":true,"key":"notification_status[]","value":"retrying"},{"disabled":true,"key":"payment_reference","value":"REF1234"},{"key":"updated_at_to","value":"2026-03-15"},{"disabled":true,"key":"status[]","value":"approved"},{"key":"updated_at_from","value":"2026-03-09"}],"variable":[]}},"response":[{"id":"43ef0bda-42df-4c8f-941e-683e9db0a954","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"api-key","value":"credencial","type":"text"},{"key":"api-secret","value":"credencial","type":"text"}],"url":{"raw":"{{base-url}}/utility_api/v1/payments?gateway=mercadopago&updated_at_from=2025-03-01&limit=1","host":["{{base-url}}"],"path":["utility_api","v1","payments"],"query":[{"key":"gateway","value":"mercadopago"},{"key":"status","value":"approved","disabled":true},{"key":"updated_at_from","value":"2025-03-01"},{"key":"updated_at_to","value":"2025-03-08","disabled":true},{"key":"limit","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"3ec9eff3d45db6a9441ff43124dc5870\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c7c7ae38-959a-40fc-b93d-ecd325ee6f58"},{"key":"X-Runtime","value":"0.097051"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"480"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"utility_id\": 1,\n        \"gateway\": \"mercadopago\",\n        \"client_number\": \"5234728690\",\n        \"total_amount\": 4170,\n        \"channel\": \"web\",\n        \"debt_items\": [\n            {\n                \"id\": 262035,\n                \"amount\": 211.02,\n                \"concept\": \"total_balance\",\n                \"client_number\": \"0297048531\"\n            }\n        ],\n        \"email\": \"demarcus@goodwin-lesch.example\",\n        \"status\": \"unknown\",\n        \"external_user_id\": \"9zrs16e3xl\",\n        \"person_id\": \"90327466\",\n        \"payment_method\": \"debit_card\",\n        \"gateway_additional_info\": {},\n        \"created_at\": \"2025-03-07T11:35:30.806-03:00\",\n        \"updated_at\": \"2025-03-07T11:35:30.806-03:00\"\n    }\n]"},{"id":"bc28f277-6bbe-4d59-a9a4-69e6ac5ab059","name":"422 Unprocessable Content","originalRequest":{"method":"GET","header":[{"key":"api-key","value":"credencial","type":"text"},{"key":"api-secret","value":"credencial","type":"text"}],"url":{"raw":"{{base-url}}/utility_api/v1/payments?status=invalid&updated_at_from=2025-03-01","host":["{{base-url}}"],"path":["utility_api","v1","payments"],"query":[{"key":"gateway","value":"invalid","disabled":true},{"key":"status","value":"invalid"},{"key":"updated_at_from","value":"2025-03-01"},{"key":"updated_at_to","value":"2025-03-08","disabled":true},{"key":"limit","value":"1","disabled":true}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"7991da0b-092f-4cf4-a862-89cacf66eb8a"},{"key":"X-Runtime","value":"0.120811"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"114"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"status\": 422,\n            \"code\": \"invalid_status\",\n            \"message\": \"El estado proporcionado no es válido.\",\n            \"meta\": null\n        }\n    ]\n}"}],"_postman_id":"7bbf5061-617e-465d-8354-144a27241246"},{"name":"show","id":"33576a33-1b83-415e-97b9-fea2a4f9a198","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"api-key","value":"credencial1","type":"text"},{"key":"api-secret","value":"credencial1","type":"text"}],"url":"{{base-url}}/utility_api/v1/payments/:payment_id","description":"<h3 id=\"servicio-para-obtener-la-información-de-un-pago\">Servicio para obtener la información de un pago</h3>\n<p>Obtiene la información detallada de un pago en el sistema.</p>\n<h4 id=\"autenticación\">Autenticación</h4>\n<p>Este servicio requiere autenticación mediante los siguientes headers:</p>\n<ul>\n<li><p><code>api-key</code> (string, required): Clave de autenticación de la API.</p>\n</li>\n<li><p><code>api-secret</code> (string, required): Secreto de autenticación de la API.</p>\n</li>\n</ul>\n<h4 id=\"request\">Request</h4>\n<p><strong>Método:</strong> GET<br /><strong>Endpoint:</strong> <code>/utility_api/v1/payments/:payment_id</code></p>\n<p><strong>Path Param:</strong></p>\n<ul>\n<li><code>payment_id</code> (integer, required): Identificador único del pago a consultar.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>La respuesta será un objeto con la información del pago.</p>\n<p><strong>Response param:</strong></p>\n<ul>\n<li><p><code>payment</code> (hash, required): Objeto con la información del pago, que contiene:</p>\n<ul>\n<li><p><code>id</code> (integer, required): Identificador del pago.</p>\n</li>\n<li><p><code>payment_reference</code> (string, required): identificador de referencia del pago.</p>\n</li>\n<li><p><code>utility_id</code> (integer, required): Identificador de la utility asociada al pago.</p>\n</li>\n<li><p><code>gateway</code> (string, required): Pasarela de pago utilizada.</p>\n</li>\n<li><p><code>client_number</code> (string, required): Número de cliente asociado al pago.</p>\n</li>\n<li><p><code>total_amount</code> (float, required): Monto total del pago.</p>\n</li>\n<li><p><code>channel</code> (string, required): Canal por el cual se realizó el pago.</p>\n</li>\n<li><p><code>debt_items</code> (array, required): Lista de ítems de deuda incluidos en el pago. Cada elemento contiene:</p>\n<ul>\n<li><p><code>id</code> (integer, required): Identificador del ítem de deuda.</p>\n</li>\n<li><p><code>amount</code> (float, required): Monto del ítem de deuda.</p>\n</li>\n<li><p><code>concept</code> (string, optional): Concepto del ítem de deuda.</p>\n</li>\n<li><p><code>client_number</code> (string, optional): Número de cliente asociado al ítem de deuda.</p>\n</li>\n</ul>\n</li>\n<li><p><code>email</code> (string, optional): Correo electrónico del usuario que realizó el pago.</p>\n</li>\n<li><p><code>status</code> (string, required): Estado actual del pago (ej. <code>rejected</code>).</p>\n</li>\n<li><p><code>external_user_id</code> (string, optional): Identificador externo del usuario.</p>\n</li>\n<li><p><code>person_id</code> (string, optional): Identificador de la persona asociada al pago.</p>\n</li>\n<li><p><code>payment_method</code> (string, optional): Metodo de pago. Ej. credit_card, debit_card, wallet.</p>\n</li>\n<li><p><code>gateway_additional_info</code> (hash, optional): Información adicional de la pasarela de pago.</p>\n</li>\n<li><p><code>created_at</code> (string, required): Fecha y hora de creación del pago en formato ISO 8601.</p>\n</li>\n<li><p><code>updated_at</code> (string, required): Fecha y hora de última actualización del pago en formato ISO 8601.</p>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["utility_api","v1","payments",":payment_id"],"host":["{{base-url}}"],"query":[],"variable":[{"type":"any","value":"6","key":"payment_id"}]}},"response":[{"id":"10b68343-c952-4ba1-94bb-71362f65aba7","name":"404 Not Found","originalRequest":{"method":"GET","header":[{"key":"api-key","value":"credencial1","type":"text"},{"key":"api-secret","value":"credencial1","type":"text"}],"url":{"raw":"{{base-url}}/utility_api/v1/payments/:payment_id","host":["{{base-url}}"],"path":["utility_api","v1","payments",":payment_id"],"variable":[{"key":"payment_id","value":"12"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"3eb315a0-6519-4954-939b-1e3b595ffb36"},{"key":"X-Runtime","value":"0.096699"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No se encontró el pago con el id 12.\"\n}"},{"id":"33a82c75-49e5-498b-9d8f-6816f7de1a52","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"api-key","value":"credencial","type":"text"},{"key":"api-secret","value":"credencial","type":"text"}],"url":{"raw":"{{base-url}}/utility_api/v1/payments/:payment_id","host":["{{base-url}}"],"path":["utility_api","v1","payments",":payment_id"],"variable":[{"key":"payment_id","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5c7d64efd41334020454fb0f0740bdbe\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f69a47b7-a7d7-443f-9732-060b0fa66ce2"},{"key":"X-Runtime","value":"0.150052"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"483"}],"cookie":[],"responseTime":null,"body":"{\n    \"payment\": {\n        \"id\": 3,\n        \"utility_id\": 1,\n        \"gateway\": \"mercadopago\",\n        \"client_number\": \"4526230766\",\n        \"total_amount\": 41792,\n        \"channel\": \"web\",\n        \"debt_items\": [\n            {\n                \"id\": 434546,\n                \"amount\": 581.17,\n                \"concept\": \"total_balance\",\n                \"client_number\": \"0378196296\"\n            }\n        ],\n        \"email\": \"carmelo@lindgren.test\",\n        \"status\": \"approved\",\n        \"external_user_id\": \"oztsvu5gmt\",\n        \"person_id\": \"36371238\",\n        \"payment_method\": \"debit_card\",\n        \"gateway_additional_info\": {},\n        \"created_at\": \"2025-03-07T11:35:32.624-03:00\",\n        \"updated_at\": \"2025-03-07T11:35:32.624-03:00\"\n    }\n}"}],"_postman_id":"33576a33-1b83-415e-97b9-fea2a4f9a198"}],"id":"75639e04-c23a-4357-8c62-6b25f7b5b71a","_postman_id":"75639e04-c23a-4357-8c62-6b25f7b5b71a","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"6f2c6b30-1f6a-4cbf-b0d8-fcacb703a826","id":"6f2c6b30-1f6a-4cbf-b0d8-fcacb703a826","name":"Utility_API","type":"folder"}}}],"id":"6f2c6b30-1f6a-4cbf-b0d8-fcacb703a826","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"09e0a5bf-8909-47f5-ae38-4626fe171c87","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"3367321c-227a-49a4-812f-f44c097ab8a2","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"6f2c6b30-1f6a-4cbf-b0d8-fcacb703a826","description":""},{"name":"Payments","item":[{"name":"payment identification","id":"7a0aba91-2261-46d4-af90-27d36d6a04ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"gateway\": \"fintoc\",\n       \"email\": null,  \n       \"payment_method\": null,  \n       \"items\": [\n              {\n                     \"id\": \"56456453\",\n                     \"client_number\": \"22345603\",\n                     \"amount\": 2,\n                     \"concept\": \"last_bill\",\n                     \"additional_information\": {\n                        \"key\": \"value\"\n                    }\n              }\n       ],\n       \"back_urls\": { \n              \"success\": \"https://utilitygo-demo-qa-ev.widergydev.com/success\",\n              \"failure\": \"https://utilitygo-demo-qa-ev.widergydev.com/failure\"\n       },\n       \"total_amount\": 2, \n       \"payer\": {  \n              \"external_id\": 23123,\n              \"identification\": {\n                     \"document_type\": \"DNI\",\n                     \"document_number\": \"23233234\"\n              },\n              \"name\": \"pepe\",\n              \"lastname\": \"pedron\",\n              \"phone\": \"11111\"\n       },\n       \"channel\": \"web\" \n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification","description":"<h3 id=\"servicio-de-identificación-de-pago\">Servicio de Identificación de Pago</h3>\n<p>Este servicio permite identificar un pago a través de una pasarela de pago especificada.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p><strong>Método:</strong> POST</p>\n</li>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/payments/payment_identification</code></p>\n</li>\n</ul>\n<h5 id=\"body-params\">Body Params:</h5>\n<ul>\n<li><p><code>gateway</code> (string, required): Pasarela de pago a utilizar. Ejemplo: <code>mercadopago</code>.</p>\n</li>\n<li><p><code>email</code> (string, optional): Correo electrónico del usuario asociado al pago.</p>\n</li>\n<li><p><code>payment_method</code> (string, optional): Método de pago. Ejemplo: <code>credit_card</code>.</p>\n</li>\n<li><p><code>items</code> (array, required): Lista de ítems de deuda incluidos en el pago. Cada elemento contiene:</p>\n<ul>\n<li><p><code>id</code> (string, optional): Identificador del ítem de deuda.</p>\n</li>\n<li><p><code>client_number</code> (string, required): Número de cliente asociado al ítem de deuda.</p>\n</li>\n<li><p><code>amount</code> (float, required): Monto del ítem de deuda.</p>\n</li>\n<li><p><code>concept</code> (string, optional): Concepto del ítem de deuda.</p>\n</li>\n<li><p><code>additional_information</code> (hash, opcional): Datos adicionales.</p>\n</li>\n</ul>\n</li>\n<li><p><code>payer</code> (object, optional): Información asociada al pagador.</p>\n<ul>\n<li><p><code>external_id</code> (string, optional): Identificador del pagador</p>\n</li>\n<li><p><code>name</code> (string, optional): nombre del pagador</p>\n</li>\n<li><p><code>lastname</code> (string, optional): apellido del pagador</p>\n</li>\n<li><p><code>phone</code> (string, optional): número de teléfono del pagador</p>\n</li>\n<li><p><code>registration_date</code> (string, optional): fecha de registración del pagador</p>\n</li>\n<li><p><code>identification</code> (object, optional): Datos de identificación del pagador</p>\n<ul>\n<li><p><code>document_type</code> (string, optional): Tipo de documento del pagador</p>\n</li>\n<li><p><code>document_number</code> (string, optional): Número de documento del pagador</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><code>back_urls</code> (hash, required): URLs de retorno según el resultado del pago. Contiene:</p>\n<ul>\n<li><p><code>success</code> (string, required): URL de redirección en caso de éxito.</p>\n</li>\n<li><p><code>pending</code> (string, optional): URL de redirección en caso de pendiente.</p>\n</li>\n<li><p><code>failure</code> (string, optional): URL de redirección en caso de fallo.</p>\n</li>\n</ul>\n</li>\n<li><p><code>total_amount</code> (float, required): Monto total del pago.</p>\n</li>\n<li><p><code>channel</code> (string, required): Canal por el cual se realiza el pago. Ejemplo: <code>web</code>.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>La respuesta será un objeto con la información del pago identificado.</p>\n<h5 id=\"response-params-éxito\">Response Params (Éxito):</h5>\n<ul>\n<li><p><code>external_payment_id</code> (string, required): Identificador externo del pago.</p>\n</li>\n<li><p><code>redirect_url</code> (string, optional): URL de redirección para completar el pago.</p>\n</li>\n</ul>\n<h5 id=\"response-params-error\">Response Params (Error):</h5>\n<p>La respuesta de error tendrá el siguiente formato:</p>\n<ul>\n<li><p><code>errors</code> (array, required): Lista de errores.</p>\n<ul>\n<li><p><code>status</code> (integer, required): Código de estado HTTP del error.</p>\n</li>\n<li><p><code>code</code> (string, required): Código de error interno.</p>\n</li>\n<li><p><code>message</code> (string, required): Mensaje descriptivo del error.</p>\n</li>\n<li><p><code>meta</code> (string, optional): Información adicional sobre el error.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token-PaymentsHubAPI}}"}]},"isInherited":true,"source":{"_postman_id":"613c9e8c-980e-4dc0-8ae3-5930a794f7c5","id":"613c9e8c-980e-4dc0-8ae3-5930a794f7c5","name":"Payments","type":"folder"}},"urlObject":{"path":["api","v1","payments","payment_identification"],"host":["{{base-url}}"],"query":[],"variable":[]}},"response":[{"id":"46c6f9cf-2501-45c0-908e-9b1c8367ff40","name":"201 Created - Mercadopago","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"gateway\": \"mercadopago\",\n       \"email\": \"example@example.com\",  \n       \"payment_method\": \"credit_card\",  \n       \"items\": [\n              {\n                     \"id\": \"11223344\",\n                     \"client_number\": \"22345603\",\n                     \"amount\": 1503.4,\n                     \"concept\": \"lat_bill\"\n              }\n       ],\n       \"back_urls\": { \n              \"success\": \"https:www.tu-sitio/success\",\n              \"failure\": \"https:www.tu-sitio/failure\"\n       },\n       \"total_amount\": 2222, \n       \"payer\": {  \n              \"id\": 23123,\n              \"identification\": {\n                     \"document_type\": \"DNI\",\n                     \"document_number\": \"23233234\"\n              },\n              \"name\": \"pepe\",\n              \"lastname\": \"pedron\",\n              \"phone\": \"11111\"\n       },\n       \"channel\": \"web\" \n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"55050fcc1a506cc9ee43be49261e6c9c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"aa0a9dd6-0796-453d-91a5-ab45a0b14941"},{"key":"X-Runtime","value":"1.074483"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"198"}],"cookie":[],"responseTime":null,"body":"{\n    \"external_payment_id\": \"2217433940-e7d6cb00-a1c1-43c9-bf36-d90d90820ad3\",\n    \"redirect_url\": \"https://www.mercadopago.com.ar/checkout/v1/redirect?pref_id=2217433940-e7d6cb00-a1c1-43c9-bf36-d90d90820ad3\"\n}"},{"id":"afba15fa-64f2-4db0-a24d-16a5ef46d5a7","name":"400 Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"gateway\": \"mercadopago\",\n       \"email\": \"example@example.com\",  \n       \"payment_method\": \"credit_card\",  \n       \"items\": [\n              {\n                     \"external_id\": \"11223344\",\n                     \"client_number\": \"22345603\",\n                     \"amount\": 1503.4,\n                     \"concept\": \"lat_bill\"\n              }\n       ],\n       \"back_urls\": { \n              \"success\": \"https:www.tu-sitio/success\",\n              \"failure\": \"https:www.tu-sitio/failure\"\n       },\n       \"total_amount\": 2222, \n       \"payer\": {  \n              \"id\": 23123,\n              \"identification\": {\n                     \"document_type\": \"DNI\",\n                     \"document_number\": \"23233234\"\n              },\n              \"name\": \"pepe\",\n              \"lastname\": \"pedron\",\n              \"phone\": \"11111\"\n       },\n       \"channel\": \"web\" \n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"a03b7395-e767-461c-8c3e-c01b8a232f8f"},{"key":"X-Runtime","value":"1.903619"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"132"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"status\": 400,\n            \"code\": \"mercadopago_error\",\n            \"message\": \"Hubo un error con mercado pago\",\n            \"meta\": {\n                \"message\": \"invalid_token\"\n            }\n        }\n    ]\n}"},{"id":"b1840dc8-0790-4a40-acf0-9dcc13a739ef","name":"201 Created - Pagadito","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"gateway\": \"pagadito\",\n       \"email\": \"example@example.com\",\n       \"items\": [\n              {\n                     \"id\": \"11223344\",\n                     \"client_number\": \"22345603\",\n                     \"amount\": 12345.4,\n                     \"concept\": \"lat_bill\"\n              }\n       ],\n       \"back_urls\": { \n              \"success\": \"https:www.tu-sitio/success\",\n              \"failure\": \"https:www.tu-sitio/failure\"\n       },\n       \"total_amount\": 2222, \n       \"payer\": {  \n              \"external_id\": 23123,\n              \"identification\": {\n                     \"document_type\": \"DNI\",\n                     \"document_number\": \"23233234\"\n              },\n              \"name\": \"pepe\",\n              \"lastname\": \"pedron\",\n              \"phone\": \"11111\"\n       },\n       \"channel\": \"web\" \n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Set-Cookie","value":"_session_id=2OSRPOjqyp%2F9l4k6ovySLqDSnMpOkEnowlH8ysAol6r7hHBJcntaH5FnVnTzdlvBoI%2Fw3jlBtsxrdeC6phzdSL4Vnsfo0BvilQfQQ%2B08PKWe8C8X2JYKroanAibmpAbb0lUrmjQ0xPQOhXK4K6%2F%2B0YbRTN5SLkx7Sx7rVbHqXApFu3c%3D--5CICtVXt0DBYSA0E--4ge1XOL%2BbauUuAG5PpyZxQ%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"_session_id=2OSRPOjqyp%2F9l4k6ovySLqDSnMpOkEnowlH8ysAol6r7hHBJcntaH5FnVnTzdlvBoI%2Fw3jlBtsxrdeC6phzdSL4Vnsfo0BvilQfQQ%2B08PKWe8C8X2JYKroanAibmpAbb0lUrmjQ0xPQOhXK4K6%2F%2B0YbRTN5SLkx7Sx7rVbHqXApFu3c%3D--5CICtVXt0DBYSA0E--4ge1XOL%2BbauUuAG5PpyZxQ%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"_payments_hub_api_session=IaIQNvoLMpWH9uQS9CSKLcHS%2F%2F1DIKvkkwnYIi%2BfCCTi7h4d8Ei7mSHaUX3hgw79LxZqbsPIeyd0yooUCYEg4byDqdUuRKd%2FAwGo7fTXi46ih61XflmvVgde4OMFokpHBSNfqFny%2BZACmclEcBnbDZsIJZ5aodql65nymzjUk57Ce52gcj5IOdcLS%2BN1UgrfnA%3D%3D--eL6uO8ktANUa746M--sn%2BxUi%2BAvY8BjDBIGjtP5g%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"ETag","value":"W/\"6bb7d1bb8f042193c4c0884e0a9567ee\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9cdbf09c-9e51-4378-ab37-cf796306b2e0"},{"key":"X-Runtime","value":"2.348656"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"192"}],"cookie":[],"responseTime":null,"body":"{\n    \"external_payment_id\": \"5f3799599054bbccdde9a715a3f4eb44\",\n    \"redirect_url\": \"https://sandbox.pagadito.com/comercios/index.php?mod=login&token=5f3799599054bbccdde9a715a3f4eb44&idca=402\"\n}"},{"id":"cffbb5ce-2550-422f-9705-2b7d64ff0074","name":"201 Created- Payway One","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"gateway\": \"payway_one\",\n    \"email\": \"example@example.com\",\n    \"items\": [\n        {\n            \"id\": \"11223344\",\n            \"client_number\": \"200000489723\",\n            \"amount\": 1234.5,\n            \"concept\": \"lat_bill\",\n            \"additional_information\": {\n                \"distribution_user\": \"PAGOS.LINK.CAESS\",\n                \"distribution_code\": \"384\",\n                \"client_name\": \"PEPE Prueba\",\n                \"bill_expiration\": \"20250514\",\n                \"includes_municipality\": \"0\",\n                \"includes_reconnection\": \"0\",\n                \"bp_number\": 1000146846\n            }\n        }\n    ],\n    \"back_urls\": {\n        \"success\": \"https:www.tu-sitio/success\",\n        \"failure\": \"https:www.tu-sitio/failure\"\n    },\n    \"total_amount\": 123.4,\n    \"payer\": {\n        \"external_id\": 23123,\n        \"identification\": {\n            \"document_type\": \"DNI\",\n            \"document_number\": \"23233234\"\n        },\n        \"name\": \"pepe\",\n        \"lastname\": \"pedron\",\n        \"phone\": \"11111\"\n    },\n    \"channel\": \"web\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Set-Cookie","value":"_session_id=5rt6iXLjhiF8HpJ7roEIzwfbugR13sTCwVeLHMKYVcMHnmCeouTNv8dYVzfHj8MRT6DNL1XWj0H4Wk7FHOyaguxBqROxbIPYo07%2BxeAKO5Kgy9XwvsmtZHTm2rtbclyKFQ19c9oX5st7CYaIpbjIQWfw22TTLCvc8aITNY03EeK3v8k%3D--3hLmHZ0XyrD3btxt--KR4dAt7jEJc%2BZqies34Ifw%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"_session_id=5rt6iXLjhiF8HpJ7roEIzwfbugR13sTCwVeLHMKYVcMHnmCeouTNv8dYVzfHj8MRT6DNL1XWj0H4Wk7FHOyaguxBqROxbIPYo07%2BxeAKO5Kgy9XwvsmtZHTm2rtbclyKFQ19c9oX5st7CYaIpbjIQWfw22TTLCvc8aITNY03EeK3v8k%3D--3hLmHZ0XyrD3btxt--KR4dAt7jEJc%2BZqies34Ifw%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"_payments_hub_api_session=%2FMLYbrUohFB9355s%2FNPhkkd5mu94SM%2Bcdv%2BXuSCiy57EV81MXYoLjjyoSSPuPV043JzlGpyb3mdptCqk1djDuPpx%2FU5Y0%2B%2BwrghLUdodNy5MKGKqz5IqrMQK2hPgnsrw7LYKLABuzMzCyWFbEJ8FlX1booC7XoVRigoN7TjfPpyerp5kP9GwNOUQB8NIdV8Lkg%3D%3D--l2miFLGD9taZswD7--YQKJdq%2FsB5Xvti0cQTFsOQ%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"ETag","value":"W/\"f48d75626d5bcdc9bb93e9cd013c0f8e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8252e334-da0e-4a27-92f6-4481f732b379"},{"key":"X-Runtime","value":"0.626653"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"88"}],"cookie":[],"responseTime":null,"body":"{\n    \"external_payment_id\": 22670,\n    \"redirect_url\": \"https://test.payway.sv/pwo/lnk/tbXl2NRs70\"\n}"}],"_postman_id":"7a0aba91-2261-46d4-af90-27d36d6a04ec"},{"name":"payment identification Copy","id":"bff4f798-9688-487a-b13f-ff463c8c626b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-User-Id","value":"\"12.12.12.12\"","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"gateway\": \"pluspagos\",\n  \"email\": \"facundo.bazzana@widergy.com\",\n  \"payment_method\": null,\n  \"items\": [\n  {\n    \"id\": \"F110016166848\",\n    \"amount\": 87.60,\n    \"client_number\": \"137882-2\"\n  }\n],\n  \"back_urls\": {\n    \"success\": \"localhost:3000/payment_result/success?utility_id=37&payment_id=12&chargetotal=1234&gateway=pluspagos&channel=web\",\n    \"failure\": \"localhost:3000/payment_result/failure?utility_id=37&payment_id=12&chargetotal=1234&gateway=pluspagos&channel=web\",\n    \"pending\": \"localhost:3000/payment_result/pending?utility_id=37&payment_id=12&chargetotal=1234&gateway=pluspagos&channel=web\"\n  },\n  \"total_amount\": 87.60,\n  \"payer\": {\n    \"external_id\": null,\n    \"identification\": {\n      \"document_type\": null,\n      \"document_number\": null\n    },\n    \"name\": null,\n    \"last_name\": null,\n    \"phone\": null,\n    \"registration_date\": \"2026-04-23T17:32:25Z\"\n  },\n  \"channel\": \"web\",\n  \"external_token\": \"[FILTERED]\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification","description":"<h3 id=\"servicio-de-identificación-de-pago\">Servicio de Identificación de Pago</h3>\n<p>Este servicio permite identificar un pago a través de una pasarela de pago especificada.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p><strong>Método:</strong> POST</p>\n</li>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/payments/payment_identification</code></p>\n</li>\n</ul>\n<h5 id=\"body-params\">Body Params:</h5>\n<ul>\n<li><p><code>gateway</code> (string, required): Pasarela de pago a utilizar. Ejemplo: <code>mercadopago</code>.</p>\n</li>\n<li><p><code>email</code> (string, optional): Correo electrónico del usuario asociado al pago.</p>\n</li>\n<li><p><code>payment_method</code> (string, optional): Método de pago. Ejemplo: <code>credit_card</code>.</p>\n</li>\n<li><p><code>items</code> (array, required): Lista de ítems de deuda incluidos en el pago. Cada elemento contiene:</p>\n<ul>\n<li><p><code>id</code> (string, optional): Identificador del ítem de deuda.</p>\n</li>\n<li><p><code>client_number</code> (string, required): Número de cliente asociado al ítem de deuda.</p>\n</li>\n<li><p><code>amount</code> (float, required): Monto del ítem de deuda.</p>\n</li>\n<li><p><code>concept</code> (string, optional): Concepto del ítem de deuda.</p>\n</li>\n<li><p><code>additional_information</code> (hash, opcional): Datos adicionales.</p>\n</li>\n</ul>\n</li>\n<li><p><code>payer</code> (object, optional): Información asociada al pagador.</p>\n<ul>\n<li><p><code>external_id</code> (string, optional): Identificador del pagador</p>\n</li>\n<li><p><code>name</code> (string, optional): nombre del pagador</p>\n</li>\n<li><p><code>lastname</code> (string, optional): apellido del pagador</p>\n</li>\n<li><p><code>phone</code> (string, optional): número de teléfono del pagador</p>\n</li>\n<li><p><code>registration_date</code> (string, optional): fecha de registración del pagador</p>\n</li>\n<li><p><code>identification</code> (object, optional): Datos de identificación del pagador</p>\n<ul>\n<li><p><code>document_type</code> (string, optional): Tipo de documento del pagador</p>\n</li>\n<li><p><code>document_number</code> (string, optional): Número de documento del pagador</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><code>back_urls</code> (hash, required): URLs de retorno según el resultado del pago. Contiene:</p>\n<ul>\n<li><p><code>success</code> (string, required): URL de redirección en caso de éxito.</p>\n</li>\n<li><p><code>pending</code> (string, optional): URL de redirección en caso de pendiente.</p>\n</li>\n<li><p><code>failure</code> (string, optional): URL de redirección en caso de fallo.</p>\n</li>\n</ul>\n</li>\n<li><p><code>total_amount</code> (float, required): Monto total del pago.</p>\n</li>\n<li><p><code>channel</code> (string, required): Canal por el cual se realiza el pago. Ejemplo: <code>web</code>.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>La respuesta será un objeto con la información del pago identificado.</p>\n<h5 id=\"response-params-éxito\">Response Params (Éxito):</h5>\n<ul>\n<li><p><code>external_payment_id</code> (string, required): Identificador externo del pago.</p>\n</li>\n<li><p><code>redirect_url</code> (string, optional): URL de redirección para completar el pago.</p>\n</li>\n</ul>\n<h5 id=\"response-params-error\">Response Params (Error):</h5>\n<p>La respuesta de error tendrá el siguiente formato:</p>\n<ul>\n<li><p><code>errors</code> (array, required): Lista de errores.</p>\n<ul>\n<li><p><code>status</code> (integer, required): Código de estado HTTP del error.</p>\n</li>\n<li><p><code>code</code> (string, required): Código de error interno.</p>\n</li>\n<li><p><code>message</code> (string, required): Mensaje descriptivo del error.</p>\n</li>\n<li><p><code>meta</code> (string, optional): Información adicional sobre el error.</p>\n</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token-PaymentsHubAPI}}"}]},"isInherited":true,"source":{"_postman_id":"613c9e8c-980e-4dc0-8ae3-5930a794f7c5","id":"613c9e8c-980e-4dc0-8ae3-5930a794f7c5","name":"Payments","type":"folder"}},"urlObject":{"path":["api","v1","payments","payment_identification"],"host":["{{base-url}}"],"query":[],"variable":[]}},"response":[{"id":"6b42ed7e-654b-464f-816d-d81cefd898c0","name":"201 Created - Mercadopago","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"gateway\": \"mercadopago\",\n       \"email\": \"example@example.com\",  \n       \"payment_method\": \"credit_card\",  \n       \"items\": [\n              {\n                     \"id\": \"11223344\",\n                     \"client_number\": \"22345603\",\n                     \"amount\": 1503.4,\n                     \"concept\": \"lat_bill\"\n              }\n       ],\n       \"back_urls\": { \n              \"success\": \"https:www.tu-sitio/success\",\n              \"failure\": \"https:www.tu-sitio/failure\"\n       },\n       \"total_amount\": 2222, \n       \"payer\": {  \n              \"id\": 23123,\n              \"identification\": {\n                     \"document_type\": \"DNI\",\n                     \"document_number\": \"23233234\"\n              },\n              \"name\": \"pepe\",\n              \"lastname\": \"pedron\",\n              \"phone\": \"11111\"\n       },\n       \"channel\": \"web\" \n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"55050fcc1a506cc9ee43be49261e6c9c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"aa0a9dd6-0796-453d-91a5-ab45a0b14941"},{"key":"X-Runtime","value":"1.074483"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"198"}],"cookie":[],"responseTime":null,"body":"{\n    \"external_payment_id\": \"2217433940-e7d6cb00-a1c1-43c9-bf36-d90d90820ad3\",\n    \"redirect_url\": \"https://www.mercadopago.com.ar/checkout/v1/redirect?pref_id=2217433940-e7d6cb00-a1c1-43c9-bf36-d90d90820ad3\"\n}"},{"id":"9e85f9a2-cdf3-4e39-8f40-d50af0625e0c","name":"400 Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"gateway\": \"mercadopago\",\n       \"email\": \"example@example.com\",  \n       \"payment_method\": \"credit_card\",  \n       \"items\": [\n              {\n                     \"external_id\": \"11223344\",\n                     \"client_number\": \"22345603\",\n                     \"amount\": 1503.4,\n                     \"concept\": \"lat_bill\"\n              }\n       ],\n       \"back_urls\": { \n              \"success\": \"https:www.tu-sitio/success\",\n              \"failure\": \"https:www.tu-sitio/failure\"\n       },\n       \"total_amount\": 2222, \n       \"payer\": {  \n              \"id\": 23123,\n              \"identification\": {\n                     \"document_type\": \"DNI\",\n                     \"document_number\": \"23233234\"\n              },\n              \"name\": \"pepe\",\n              \"lastname\": \"pedron\",\n              \"phone\": \"11111\"\n       },\n       \"channel\": \"web\" \n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"a03b7395-e767-461c-8c3e-c01b8a232f8f"},{"key":"X-Runtime","value":"1.903619"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"132"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"status\": 400,\n            \"code\": \"mercadopago_error\",\n            \"message\": \"Hubo un error con mercado pago\",\n            \"meta\": {\n                \"message\": \"invalid_token\"\n            }\n        }\n    ]\n}"},{"id":"4feaba97-6dc0-4fd1-bba5-611ff42c5f73","name":"201 Created - Pagadito","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n       \"gateway\": \"pagadito\",\n       \"email\": \"example@example.com\",\n       \"items\": [\n              {\n                     \"id\": \"11223344\",\n                     \"client_number\": \"22345603\",\n                     \"amount\": 12345.4,\n                     \"concept\": \"lat_bill\"\n              }\n       ],\n       \"back_urls\": { \n              \"success\": \"https:www.tu-sitio/success\",\n              \"failure\": \"https:www.tu-sitio/failure\"\n       },\n       \"total_amount\": 2222, \n       \"payer\": {  \n              \"external_id\": 23123,\n              \"identification\": {\n                     \"document_type\": \"DNI\",\n                     \"document_number\": \"23233234\"\n              },\n              \"name\": \"pepe\",\n              \"lastname\": \"pedron\",\n              \"phone\": \"11111\"\n       },\n       \"channel\": \"web\" \n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Set-Cookie","value":"_session_id=2OSRPOjqyp%2F9l4k6ovySLqDSnMpOkEnowlH8ysAol6r7hHBJcntaH5FnVnTzdlvBoI%2Fw3jlBtsxrdeC6phzdSL4Vnsfo0BvilQfQQ%2B08PKWe8C8X2JYKroanAibmpAbb0lUrmjQ0xPQOhXK4K6%2F%2B0YbRTN5SLkx7Sx7rVbHqXApFu3c%3D--5CICtVXt0DBYSA0E--4ge1XOL%2BbauUuAG5PpyZxQ%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"_session_id=2OSRPOjqyp%2F9l4k6ovySLqDSnMpOkEnowlH8ysAol6r7hHBJcntaH5FnVnTzdlvBoI%2Fw3jlBtsxrdeC6phzdSL4Vnsfo0BvilQfQQ%2B08PKWe8C8X2JYKroanAibmpAbb0lUrmjQ0xPQOhXK4K6%2F%2B0YbRTN5SLkx7Sx7rVbHqXApFu3c%3D--5CICtVXt0DBYSA0E--4ge1XOL%2BbauUuAG5PpyZxQ%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"_payments_hub_api_session=IaIQNvoLMpWH9uQS9CSKLcHS%2F%2F1DIKvkkwnYIi%2BfCCTi7h4d8Ei7mSHaUX3hgw79LxZqbsPIeyd0yooUCYEg4byDqdUuRKd%2FAwGo7fTXi46ih61XflmvVgde4OMFokpHBSNfqFny%2BZACmclEcBnbDZsIJZ5aodql65nymzjUk57Ce52gcj5IOdcLS%2BN1UgrfnA%3D%3D--eL6uO8ktANUa746M--sn%2BxUi%2BAvY8BjDBIGjtP5g%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"ETag","value":"W/\"6bb7d1bb8f042193c4c0884e0a9567ee\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9cdbf09c-9e51-4378-ab37-cf796306b2e0"},{"key":"X-Runtime","value":"2.348656"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"192"}],"cookie":[],"responseTime":null,"body":"{\n    \"external_payment_id\": \"5f3799599054bbccdde9a715a3f4eb44\",\n    \"redirect_url\": \"https://sandbox.pagadito.com/comercios/index.php?mod=login&token=5f3799599054bbccdde9a715a3f4eb44&idca=402\"\n}"},{"id":"fed0345e-c4fd-4e13-bb91-53df88f02937","name":"201 Created- Payway One","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"gateway\": \"payway_one\",\n    \"email\": \"example@example.com\",\n    \"items\": [\n        {\n            \"id\": \"11223344\",\n            \"client_number\": \"200000489723\",\n            \"amount\": 1234.5,\n            \"concept\": \"lat_bill\",\n            \"additional_information\": {\n                \"distribution_user\": \"PAGOS.LINK.CAESS\",\n                \"distribution_code\": \"384\",\n                \"client_name\": \"PEPE Prueba\",\n                \"bill_expiration\": \"20250514\",\n                \"includes_municipality\": \"0\",\n                \"includes_reconnection\": \"0\",\n                \"bp_number\": 1000146846\n            }\n        }\n    ],\n    \"back_urls\": {\n        \"success\": \"https:www.tu-sitio/success\",\n        \"failure\": \"https:www.tu-sitio/failure\"\n    },\n    \"total_amount\": 123.4,\n    \"payer\": {\n        \"external_id\": 23123,\n        \"identification\": {\n            \"document_type\": \"DNI\",\n            \"document_number\": \"23233234\"\n        },\n        \"name\": \"pepe\",\n        \"lastname\": \"pedron\",\n        \"phone\": \"11111\"\n    },\n    \"channel\": \"web\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base-url}}/api/v1/payments/payment_identification"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Set-Cookie","value":"_session_id=5rt6iXLjhiF8HpJ7roEIzwfbugR13sTCwVeLHMKYVcMHnmCeouTNv8dYVzfHj8MRT6DNL1XWj0H4Wk7FHOyaguxBqROxbIPYo07%2BxeAKO5Kgy9XwvsmtZHTm2rtbclyKFQ19c9oX5st7CYaIpbjIQWfw22TTLCvc8aITNY03EeK3v8k%3D--3hLmHZ0XyrD3btxt--KR4dAt7jEJc%2BZqies34Ifw%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"_session_id=5rt6iXLjhiF8HpJ7roEIzwfbugR13sTCwVeLHMKYVcMHnmCeouTNv8dYVzfHj8MRT6DNL1XWj0H4Wk7FHOyaguxBqROxbIPYo07%2BxeAKO5Kgy9XwvsmtZHTm2rtbclyKFQ19c9oX5st7CYaIpbjIQWfw22TTLCvc8aITNY03EeK3v8k%3D--3hLmHZ0XyrD3btxt--KR4dAt7jEJc%2BZqies34Ifw%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"Set-Cookie","value":"_payments_hub_api_session=%2FMLYbrUohFB9355s%2FNPhkkd5mu94SM%2Bcdv%2BXuSCiy57EV81MXYoLjjyoSSPuPV043JzlGpyb3mdptCqk1djDuPpx%2FU5Y0%2B%2BwrghLUdodNy5MKGKqz5IqrMQK2hPgnsrw7LYKLABuzMzCyWFbEJ8FlX1booC7XoVRigoN7TjfPpyerp5kP9GwNOUQB8NIdV8Lkg%3D%3D--l2miFLGD9taZswD7--YQKJdq%2FsB5Xvti0cQTFsOQ%3D%3D; path=/; HttpOnly; SameSite=Lax"},{"key":"ETag","value":"W/\"f48d75626d5bcdc9bb93e9cd013c0f8e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8252e334-da0e-4a27-92f6-4481f732b379"},{"key":"X-Runtime","value":"0.626653"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"88"}],"cookie":[],"responseTime":null,"body":"{\n    \"external_payment_id\": 22670,\n    \"redirect_url\": \"https://test.payway.sv/pwo/lnk/tbXl2NRs70\"\n}"}],"_postman_id":"bff4f798-9688-487a-b13f-ff463c8c626b"}],"id":"613c9e8c-980e-4dc0-8ae3-5930a794f7c5","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token-PaymentsHubAPI}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"f701a741-b35b-4e78-b4e5-7b173373d6b5","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"3a09bd96-f0c9-4555-8e8a-caa4a13d592c","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"613c9e8c-980e-4dc0-8ae3-5930a794f7c5","description":""},{"name":"AWS","item":[{"name":"mercadopago notification","id":"d9e2a820-3a91-40fb-bd86-d64c7bdf7ce7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Request-Id","value":"c0b5bce8-0c97-4346-820e-a12961021b5a","type":"text"},{"key":"X-Signature","value":"ts=1739851408,v1=e5c8598ae5cde370208d72fba1bed53a55c7c220bfb35acb3089339c2367e7dd","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://payments-hub-gateway-qa-ev.widergydev.com/payments/notifications/mercadopago/:id?data.id=107676469269&type=payment","urlObject":{"protocol":"https","path":["payments","notifications","mercadopago",":id"],"host":["payments-hub-gateway-qa-ev","widergydev","com"],"query":[{"key":"data.id","value":"107676469269"},{"key":"type","value":"payment"}],"variable":[{"type":"any","value":"80","key":"id"}]}},"response":[{"id":"f552ca77-3148-48c7-90a4-a2cc11697077","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"x-request-id","value":"abcd1234"},{"key":"x-signature","value":"ts=1712345678,v1=22aa8ed85cc0804cfeffa15a816a724e53880afbdd820d4e3e5a3743331dbf8c"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://bnid968npf.execute-api.us-east-1.amazonaws.com/dev/payments/notifications/mercadopago/:id?data.id=1234","protocol":"https","host":["bnid968npf","execute-api","us-east-1","amazonaws","com"],"path":["dev","payments","notifications","mercadopago",":id"],"query":[{"key":"data.id","value":"1234"}],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"124"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 11 Apr 2025 18:32:47 GMT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-67f9604f-21968339158553af7c6b37ce;Parent=1f9ccd7324bb3110;Sampled=0;Lineage=1:3c883489:0"},{"key":"x-amzn-RequestId","value":"d943ea49-3524-4de9-a65d-a2143c8c1ebe"},{"key":"x-amz-apigw-id","value":"I3v8aFpRoAMEH-Q="},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 27de87ef88ec83a7376a2e5b5f6e6e7a.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"EZE50-P5"},{"key":"X-Amz-Cf-Id","value":"9GpjEu0khR01W_j65oBUtCPhUmMl5rzU3yIwLfyA3Ue8NlpLDxllmA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"request_id\": \"878e478b-e468-4e6d-b28f-dceffd2e24b7\",\n    \"transaction_id\": \"12f22c6b-659a-572d-9993-4c180715ad8d\"\n}"},{"id":"556ca179-13d2-4538-8ff6-ed5446ea6e1d","name":"404","originalRequest":{"method":"POST","header":[{"key":"x-request-id","value":"abcd1234"},{"key":"x-signature","value":"ts=1712345678,v1=22aa8ed85cc0804cfeffa15a816a724e53880afbdd820d4e3e5a3743331dbf8c"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://bnid968npf.execute-api.us-east-1.amazonaws.com/dev/payments/notifications/mercadopago/:id?data.id=12","protocol":"https","host":["bnid968npf","execute-api","us-east-1","amazonaws","com"],"path":["dev","payments","notifications","mercadopago",":id"],"query":[{"key":"data.id","value":"12"}],"variable":[{"key":"id","value":"1"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"82"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 11 Apr 2025 18:33:02 GMT"},{"key":"x-amz-apigw-id","value":"I3v-3FN-oAMEBpA="},{"key":"x-amzn-RequestId","value":"d9fbca93-f7f7-4ff5-8ab5-fe90a37afa28"},{"key":"x-amzn-ErrorType","value":"AccessDeniedException"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 27de87ef88ec83a7376a2e5b5f6e6e7a.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"EZE50-P5"},{"key":"X-Amz-Cf-Id","value":"Jx7PNiRSMe9oaucmlgmoGHR2B1LM1o1E9BHaK9FNjZC8DegEOJbfUg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"User is not authorized to access this resource with an explicit deny\"\n}"}],"_postman_id":"d9e2a820-3a91-40fb-bd86-d64c7bdf7ce7"},{"name":"Fintoc webhook","id":"b04317f8-2b3a-458b-bf3d-af977296c4fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Fintoc-Signature","value":"t=1773780448,v1=52300374612ef86ae608bcaa4b4cbbaaced68742d9f2f98755c54ac6de6f771e","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"evt_mjXEJeC137M4LZd3\",\n    \"type\": \"payment_intent.succeeded\",\n    \"mode\": \"test\",\n    \"created_at\": \"2026-03-17T20:47:28.252Z\",\n    \"data\": {\n        \"id\": \"890000667953\",\n        \"mode\": \"test\",\n        \"amount\": 15000,\n        \"object\": \"payment_intent\",\n        \"status\": \"succeeded\",\n        \"currency\": \"CLP\",\n        \"metadata\": {},\n        \"created_at\": \"2026-03-05T00:00:00Z\",\n        \"expires_at\": null,\n        \"next_action\": null,\n        \"error_reason\": null,\n        \"payment_type\": \"bank_transfer\",\n        \"reference_id\": \"7770008888\",\n        \"widget_token\": null,\n        \"customer_email\": null,\n        \"sender_account\": null,\n        \"business_profile\": null,\n        \"transaction_date\": null,\n        \"recipient_account\": {\n            \"type\": \"checking_account\",\n            \"number\": \"123456789\",\n            \"holder_id\": \"37373354\",\n            \"institution_id\": \"cl_mercado_pago\"\n        },\n        \"payment_type_options\": {}\n    },\n    \"object\": \"event\"\n}","options":{"raw":{"language":"json"}}},"url":"https://2fo4f6x4y0.execute-api.us-east-1.amazonaws.com/stage/payments/notifications/fintoc/payment_provider_13","urlObject":{"protocol":"https","path":["stage","payments","notifications","fintoc","payment_provider_13"],"host":["2fo4f6x4y0","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b04317f8-2b3a-458b-bf3d-af977296c4fc"},{"name":"Pluspagos webhook","id":"c843e05e-f3e2-487e-8f66-798a629d4dd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TransaccionComercioId\": \"1834085\",\n    \"TransaccionPlataformaId\": \"308945561\",\n    \"Tipo\": \"PAGO\",\n    \"Monto\": \"11074,60\",\n    \"Estado\": \"REALIZADA\",\n    \"Detalle\": \"Pago realizado exitosamente.\",\n    \"MetodoPago\": null,\n    \"MedioPago\": \"8\",\n    \"EstadoId\": \"3\",\n    \"Cuotas\": \"1\",\n    \"InformacionPagador\": {\n        \"Email\": \"prueba@gmail.com\",\n        \"Nombre\": \"Maxxxx Martin oscar\",\n        \"NumeroDocumento\": \"40582xxx\",\n        \"Telefono\": null,\n        \"TipoDocumento\": \"DNI\"\n    },\n    \"InformacionAdicional\": null,\n    \"MarcaTarjeta\": \"MasterCard\",\n    \"InformacionAdicionalLink\": null,\n    \"FechaTransaccion\": \"03/10/2024 11:59:47\",\n    \"FechaPago\": \"03/10/2024 12:01:11\",\n    \"ProductoTransaccion\": [\n        {\n            \"NombreProducto\": \"Factura\",\n            \"MontoProducto\": null\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://2fo4f6x4y0.execute-api.us-east-1.amazonaws.com/stage/payments/notifications/pluspagos/1241","urlObject":{"protocol":"https","path":["stage","payments","notifications","pluspagos","1241"],"host":["2fo4f6x4y0","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c843e05e-f3e2-487e-8f66-798a629d4dd7"}],"id":"f8cf6758-7c12-4de1-8e2b-a9928fccf948","_postman_id":"f8cf6758-7c12-4de1-8e2b-a9928fccf948","description":""}],"event":[{"listen":"prerequest","script":{"id":"89ab2656-5d7c-4514-9b66-f3988d7ba3d6","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"402b6df7-08de-436b-9c66-0b5b2fd3c260","type":"text/javascript","packages":{},"exec":[""]}}]}