{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mastercard Authentication Consent",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Consent",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get consent languages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://mtf.api.identity.mastercard.co.in/aes/consent-languages",
            "params": [
              {
                "name": "locale",
                "value": "en-US",
                "type": "query",
                "description": "Locale of the requested consent language. An optional field, if not passed then en-US will be used."
              },
              {
                "name": "consent_types",
                "value": "INDIA_FRICTIONLESS",
                "type": "query",
                "description": "List of Consent Type for different services. An optional query parameter, if not provided then all type of consent languages will be returned in the response <br/>Possible values are INDIA_FRICTIONLESS, DEVICE_AUTH and FRICTIONLESS_DEVICE_AUTH <br/>Multiple values can be sent in the request in order to receive multiple consents in response."
              }
            ]
          },
          "docs": "Get the consent language text for enrolled service(s). A merchant/psp can use this API to get the text for their enrollment and cache it for later use."
        }
      ]
    },
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve user consent by an identifier",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://mtf.api.identity.mastercard.co.in/aes/user-consents/:user_consent_id",
            "params": [
              {
                "name": "user_consent_id",
                "value": "2c0743c0-fe6a-41a6-88c4-2c94786fb9c2",
                "type": "path",
                "description": "User Consent Identifier"
              }
            ]
          },
          "docs": "Retrieve the user consent by an identifier. A Merchants/PSP can use this API to check whether the user consent for the user_consent_id exist or not."
        },
        {
          "info": {
            "name": "Revoke user consent using an identifier",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://mtf.api.identity.mastercard.co.in/aes/user-consents/:user_consent_id",
            "params": [
              {
                "name": "user_consent_id",
                "value": "2c0743c0-fe6a-41a6-88c4-2c94786fb9c2",
                "type": "path",
                "description": "User Consent Identifier"
              }
            ]
          },
          "docs": "A merchant/PSP can use this API to revoke the user consent for a user consent identifier (user_consent_id). Once the user consent is revoked (deleted), it will not be available via Retrieve User-Consent request."
        }
      ]
    }
  ],
  "bundled": true
}