{
  "info": {
    "_postman_id": "1030b6ee8acaaa7beecd5ae5a1376146",
    "name": "3DS Server (Español)",
    "description": "Colección generada automáticamente desde la definición OpenAPI publicada en Placetopay Docs. La variable base_url ya está configurada con la dirección del entorno de pruebas.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://3dss-test.placetopay.com/api"
    }
  ],
  "item": [
    {
      "name": "Crear una nueva sesión",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/threeds/v2x/sessions",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "threeds",
            "v2x",
            "sessions"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"acctNumber\": \"4005580000000040\",\n  \"cardExpiryDate\": \"2411\",\n  \"purchaseAmount\": \"8.25\",\n  \"redirectURI\": \"http://www.placetopay.com\",\n  \"purchaseCurrency\": \"COP\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Obtener información de una transacción",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/v2x/transactions/{transactionID}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "v2x",
            "transactions",
            "{transactionID}"
          ]
        }
      }
    },
    {
      "name": "Crear un comercio",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/merchants",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "merchants"
          ]
        },
        "description": "Crear un comercio",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"EGM Ingenieria sin frondteras\",\n  \"brand\": \"placetopay\",\n  \"country\": \"COL\",\n  \"currency\": \"COP\",\n  \"document\": {\n    \"type\": \"RUT\",\n    \"number\": \"123456789-0\"\n  },\n  \"url\": \"https://www.placetopay.com\",\n  \"mcc\": 742,\n  \"isicClass\": 111,\n  \"branch\": {\n    \"name\": \"Oficina principal\",\n    \"brand\": \"placetopay uno\",\n    \"country\": \"COL\",\n    \"currency\": \"COP\"\n  },\n  \"subscriptions\": [\n    {\n      \"franchise\": 1,\n      \"acquirerBIN\": 12345678910,\n      \"version\": 2\n    }\n  ],\n  \"invitations\": [\n    {\n      \"admin@admin.com\": null\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Eliminar un comercio",
      "request": {
        "method": "DELETE",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v2/merchants/{merchantID}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v2",
            "merchants",
            "{merchantID}"
          ]
        }
      }
    },
    {
      "name": "Agregar sucursales a un comercio",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/merchants/{merchantID}/branches",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "merchants",
            "{merchantID}",
            "branches"
          ]
        },
        "description": "Agregar sucursales a un comercio",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"branches\": [\n    {\n      \"name\": \"Oficina Medellin\",\n      \"brand\": \"Evertec Medellin\",\n      \"country\": \"COL\",\n      \"currency\": \"COP\",\n      \"url\": \"https://example-uno.com\"\n    },\n    {\n      \"name\": \"Oficina Bogotá\",\n      \"brand\": \"Evertec Bogotá\",\n      \"country\": \"COL\",\n      \"currency\": \"COP\",\n      \"url\": \"https://example-dos.com\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Eliminar una sucursal de un comercio",
      "request": {
        "method": "DELETE",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v2/merchants/{merchantID}/branches/{branchID}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v2",
            "merchants",
            "{merchantID}",
            "branches",
            "{branchID}"
          ]
        }
      }
    },
    {
      "name": "Consultar una suscripción",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v2/subscriptions/{merchantCode}/{acquirerBIN}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v2",
            "subscriptions",
            "{merchantCode}",
            "{acquirerBIN}"
          ]
        },
        "description": "Agregar sucursales a un comercio"
      }
    },
    {
      "name": "Consultar un token",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v2/token/information",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v2",
            "token",
            "information"
          ]
        }
      }
    },
    {
      "name": "Revocar un token",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v2/token/revoke",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v2",
            "token",
            "revoke"
          ]
        }
      }
    },
    {
      "name": "Crear un token",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/v2/token",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v2",
            "token"
          ]
        }
      }
    }
  ]
}