{
  "info": {
    "_postman_id": "527aceb44472662c633ef7a38308a65d",
    "name": "MSV Service (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://msv-service.placetopay.com"
    }
  ],
  "item": [
    {
      "name": "Login",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/login",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "login"
          ]
        },
        "description": "Obtain a token to authenticate requests to the API."
      }
    },
    {
      "name": "Validation",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/validations",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "validations"
          ]
        },
        "description": "This service creates a validation request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"locale\": \"en\",\n  \"reference\": \"ref-12548\",\n  \"message\": \"Example Validation\",\n  \"kind\": \"Horus\",\n  \"webhook_url\": \"https://example-url.com/\",\n  \"minutes_by_expire\": 10,\n  \"buttons\": {\n    \"approve\": \"Approve\",\n    \"reject\": \"Reject\"\n  },\n  \"channels\": {\n    \"email\": {\n      \"email\": \"john.wick@example.com\",\n      \"subject\": \"Email subject\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Validation query",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/validation-query",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "validation-query"
          ]
        },
        "description": "Query a previously created validation request."
      }
    },
    {
      "name": "Notification",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/notifications",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "notifications"
          ]
        },
        "description": "This service creates a notification request.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"locale\": \"en\",\n  \"message\": \"this is a very long and generic message\",\n  \"kind\": \"Horus\",\n  \"channels\": {\n    \"whatsapp\": {\n      \"phone_number\": \"+573124567890\",\n      \"template\": {\n        \"name\": \"hello_world\",\n        \"lang\": \"en_US\",\n        \"parameters\": [\n          \"name\"\n        ]\n      }\n    },\n    \"sms\": {\n      \"phone_number\": \"+573124567890\",\n      \"short_message\": \"sms message\"\n    },\n    \"email\": {\n      \"email\": \"mail@test.com\",\n      \"subject\": \"email subject\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}