{
  "info": {
    "_postman_id": "6a939f1ca8900c5ebafd5808a0c6267e",
    "name": "3DS Server (English)",
    "description": "Collection automatically generated from the OpenAPI definition published in Placetopay Docs. The base_url variable is already set with the testing environment address.",
    "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": "Create a new session",
      "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": "Retrieve transaction information",
      "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": "Create a merchant",
      "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": "Create a merchant",
        "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\": \"Main Office\",\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": "Delete a merchant",
      "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": "Add branches to a merchant",
      "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": "Add branches to a merchant",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"branches\": [\n    {\n      \"name\": \"Medellin Office\",\n      \"brand\": \"Evertec Medellin\",\n      \"country\": \"COL\",\n      \"currency\": \"COP\",\n      \"url\": \"https://example-uno.com\"\n    },\n    {\n      \"name\": \"Bogota Office\",\n      \"brand\": \"Evertec Bogota\",\n      \"country\": \"COL\",\n      \"currency\": \"COP\",\n      \"url\": \"https://example-dos.com\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Delete a merchant branch",
      "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": "Query a subscription",
      "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": "Add branches to a merchant"
      }
    },
    {
      "name": "Query a 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": "Revoke a 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": "Create a 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"
          ]
        }
      }
    }
  ]
}