{
  "swagger": "2.0",
  "info": {
    "description": "Copyright (c) 2018 GEMALTO. All Rights Reserved.\n\nThe API follows the HTTP protocol with content type in JSON.\n\nThe messages are encoded with the UTF-8 character set which is the default set defined for JSON.\n\n**<span style=\"color:red\">Important:</span>** In order to ensure backward compatibility, the connected system shall ignore properly any unused or unrecognized JSON field.\n\nThe API security relies on several layers:\n   - transport -> with TLS mutual authentication\n   - application -> with asymmetric keys used to encrypt/decrypt JWE data structures\n\nAs per the swagger file, the requests will be sent to the URL provided by Thales concatenated with '/tsh-cof/' and the operation name. \n\nExample: <span style=\"color:DodgerBlue\">https://thalesservername:443/path/tsh-cof/tokens</span>.",
    "title": "Thales ETP Server API",
    "version": "1.78"
  },
  "schemes": [
    "https"
  ],
  "basePath": "/tsh-cof",
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "parameters": {
    "xCorrelationId": {
      "in": "header",
      "description": "Technical identifier used for troubleshooting. \n</br>It helps on customer support when needed. \n</br>Each API request must be identified with a unique correlation Id.\n</br>It correlates the response and the request and eventually a notification if any. ",
      "name": "x-correlation-id",
      "required": true,
      "type": "string",
      "minLength": 1,
      "maxLength": 36
    },
    "authorization": {
      "in": "header",
      "description": "Technical identifier pre-defined at on-boarding that identifies the API\nconsumer.\nFormat shall be the string 'APIKEY' followed by a space and the\napi key value.\n</br> Example: APIKEY c03f88fe-01ba-11e8-ba89-0ed5f89f718b\n",
      "name": "authorization",
      "required": true,
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "mcCertifiedSolutionId": {
      "in": "header",
      "description": "Unique identifier of the Mastercard TAF certified MFA method. \nMust be provided for Mastercard TAF when the binding was created using the Merchant API.\n",
      "name": "mcCertifiedSolutionId",
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "deviceId": {
      "in": "path",
      "description": "The unique device identifier. Visa deviceId must have 24 characters at maximum.",
      "name": "deviceId",
      "required": true,
      "maxLength": 36,
      "type": "string"
    },
    "tokenId": {
      "in": "path",
      "description": "The token identifier.",
      "name": "tokenId",
      "required": true,
      "maxLength": 128,
      "type": "string"
    },
    "oldTokenId": {
      "in": "path",
      "description": "Old token identifier.",
      "name": "oldTokenId",
      "required": true,
      "maxLength": 128,
      "type": "string"
    },
    "transactionId": {
      "in": "path",
      "description": "The unique transaction identifier.",
      "name": "transactionId",
      "required": true,
      "maxLength": 128,
      "type": "string"
    },
    "assetId": {
      "in": "path",
      "description": "The unique asset identifier.",
      "name": "assetId",
      "required": true,
      "maxLength": 128,
      "type": "string"
    },
    "credentialId": {
      "in": "header",
      "description": "The identifier used during Mastercard TAF binding, must be provided for Mastercard TAF when the binding was created using the Merchant API.",
      "name": "credentialId",
      "required": false,
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "merchantId": {
      "in": "path",
      "description": "The unique merchant identifier.",
      "name": "merchantId",
      "required": true,
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    }
  },
  "paths": {
    "/healthcheck": {
      "get": {
        "description": "This method shall be used to check the server availability.",
        "operationId": "healthcheck",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/responses/204"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Healthcheck"
        ],
        "summary": "Healthcheck"
      }
    },
    "/tokens": {
      "post": {
        "description": "**<span style=\"color:red\">Important:</span>** Use this operation only when the end user is interacting with the merchant website or application and when a fast response time is important. It takes in average 2-3 seconds to obtain a token with this operation. For all other use cases, it is preferred to use the operation '**createAsyncToken**'.\n\nCreate a network token from card details.\n\nETP contacts the Scheme TSP to get the network token.",
        "operationId": "createToken",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantId",
                "encryptedData",
                "source",
                "language",
                "country"
              ],
              "properties": {
                "merchantId": {
                  "$ref": "#/definitions/merchantId"
                },
                "encryptedData": {
                  "$ref": "#/definitions/encryptedUserInfoSync"
                },
                "source": {
                  "$ref": "#/definitions/sourceSync"
                },
                "risk": {
                  "$ref": "#/definitions/risk"
                },
                "language": {
                  "$ref": "#/definitions/language"
                },
                "country": {
                  "$ref": "#/definitions/country"
                },
                "device": {
                  "$ref": "#/definitions/device"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantId": "75bfc5f5-13c3-4797-b617-bfa039ceb60f",
                "encryptedData": "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...XFBoMYUZodetZdvTiFvSkQ",
                "source": "MANUAL",
                "language": "en",
                "country": "US",
                "risk": {
                  "accountScore": 4
                },
                "device": {
                  "ipAddress": "172.16.254",
                  "location": "20.68,-88.56"
                }
              }
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "schema": {
              "type": "object",
              "properties": {
                "tokenId": {
                  "$ref": "#/definitions/tokenId"
                },
                "cardBin": {
                  "$ref": "#/definitions/cardBin"
                },
                "cardLastDigits": {
                  "$ref": "#/definitions/cardLastDigits"
                },
                "cardExpiryDate": {
                  "$ref": "#/definitions/cardExpiryDate"
                },
                "tokenLastDigits": {
                  "$ref": "#/definitions/tokenLastDigits"
                },
                "tokenExpiryDate": {
                  "$ref": "#/definitions/tokenExpiryDate"
                },
                "tokenState": {
                  "$ref": "#/definitions/tokenState"
                },
                "par": {
                  "$ref": "#/definitions/par"
                },
                "vProvisionedTokenId": {
                  "$ref": "#/definitions/vProvisionedTokenId"
                },
                "cardProduct": {
                  "$ref": "#/definitions/cardProduct"
                },
                "color": {
                  "$ref": "#/definitions/color"
                },
                "creationTimestamp": {
                  "$ref": "#/definitions/creationTimestamp"
                }
              },
              "required": [
                "tokenId",
                "tokenState",
                "creationTimestamp"
              ]
            },
            "examples": {
              "application/json": {
                "tokenId": "COFTG-M-ce464906-cf39-4990-b4a8-c160e67c603a",
                "cardBin": "554312",
                "cardLastDigits": "2366",
                "cardExpiryDate": "0426",
                "tokenLastDigits": "5589",
                "tokenExpiryDate": "1036",
                "tokenState": "ACTIVE",
                "par": "5001a9f027e5629d11e3949a0800a",
                "vProvisionedTokenId": "ctf-12354658979-55",
                "cardProduct": {
                  "issuerName": "Bank Name",
                  "cardType": "DEBIT",
                  "scheme": "MASTERCARD",
                  "cardDescription": "The card description.",
                  "cardArts": {
                    "foregroundColor": "7FB8C8",
                    "backgroundColor": "7FB8C9",
                    "cardBackgroundImageId": "2ee5c858-a6a4-43f1-a503-ffde6c41fad9",
                    "issuerLogoId": "1fd8594c-5284-4aeb-bb73-6129c1d6cdb2",
                    "brandLogoId": "623046b7-4a8f-4550-bca8-45b38c9498a3",
                    "cobrandLogoId": "5548eb95-3aee-4bb8-9abf-38a7ab2c1cf3",
                    "completeCardImageId": "15ac4371-dcb9-4310-867e-b12338970276",
                    "cardIconId": "14e3044fa-949e-4900-800f-88b8fc6cc3d5"
                  },
                  "termsAndConditionsUrl": "https://bank.com/tncs.html",
                  "privacyPolicyUrl": "https://bank.com/privacyPolicy.html"
                },
                "color": "GREEN",
                "creationTimestamp": "2025-11-10T09:08:24.479Z"
              }
            }
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|CRYPTO_ERROR|The server could not decrypt the data sent in the request.|\n|UNKNOWN_CARD|The server is not able to identify the card scheme and so the associated TSP.|\n|TSP_NON_RETRYABLE_ERROR|Non retryable errors returned by the TSP.|\n|INVALID_PAN_DATA|The PAN data is invalid.|\n|VISA_VCES_INVALID_EXP_DATE|Card exp date is not present or is expired and Visa VCES is not activated.|\n|PAN_NOT_ELIGIBLE|The Issuer considers the PAN as not eligible for tokenization.|\n|UNKNOWN_MERCHANT|The merchantId is probably wrong.|\n|ISSUER_DECLINED|The Issuer declined the tokenization.|\n|SCHEME_TECHNICAL_ERROR|Technical error returned by TSP.|\n\n-----------------",
                  "example": "CRYPTO_ERROR"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "CRYPTO_ERROR"
              }
            }
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Token Management"
        ],
        "summary": "Create Token"
      }
    },
    "/async-tokens": {
      "post": {
        "description": "Create a network token from card details. \n\nETP contacts the Scheme TSP to get the network token.\n\nThe process is asynchronous. It takes few seconds to get the callback except for VISA where it takes from 10 minutes to several hours.\n\nA notification 'notifyTokenCreation' is sent to the Merchant/PSP to complete the token creation process.\n\nThe notification shares the same 'x-correlation-id' as in the create token request.\n",
        "operationId": "createAsyncToken",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantId",
                "encryptedData",
                "source",
                "language",
                "country"
              ],
              "properties": {
                "merchantId": {
                  "$ref": "#/definitions/merchantId"
                },
                "encryptedData": {
                  "$ref": "#/definitions/encryptedUserInfoAsync"
                },
                "source": {
                  "$ref": "#/definitions/sourceAsync"
                },
                "risk": {
                  "$ref": "#/definitions/risk"
                },
                "language": {
                  "$ref": "#/definitions/language"
                },
                "country": {
                  "$ref": "#/definitions/country"
                },
                "device": {
                  "$ref": "#/definitions/device"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantId": "75bfc5f5-13c3-4797-b617-bfa039ceb60f",
                "encryptedData": "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...XFBoMYUZodetZdvTiFvSkQ",
                "source": "MANUAL",
                "language": "en",
                "country": "US",
                "risk": {
                  "accountScore": 4
                },
                "device": {
                  "ipAddress": "172.16.254",
                  "location": "20.68,-88.56"
                }
              }
            }
          }
        ],
        "responses": {
          "202": {
            "$ref": "#/responses/202"
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|CRYPTO_ERROR|The server could not decrypt the data sent in the request.|\n|UNKNOWN_CARD|The server is not able to identify the card scheme and so the associated TSP.|\n|VISA_VCES_INVALID_EXP_DATE|Card exp date is not present or is expired and Visa VCES is not activated.|\n|UNKNOWN_MERCHANT|The merchantId is probably wrong.|\n\n-----------------",
                  "example": "CRYPTO_ERROR"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "CRYPTO_ERROR"
              }
            }
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Token Management"
        ],
        "summary": "Create Async Token"
      }
    },
    "/pci-tokens": {
      "post": {
        "description": "Create a PCI token from card details.\n\nThe Scheme TSP is not involved in the creation of the token.\n\nETP stores securely the card details and returns a token identifier to the Merchant/PSP.\n\nIn case of successful response, the Merchant/PSP can directly request for a transaction. No notification is sent (contrary to network tokens).",
        "operationId": "createPciToken",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantId",
                "encryptedData"
              ],
              "properties": {
                "merchantId": {
                  "$ref": "#/definitions/merchantId"
                },
                "encryptedData": {
                  "$ref": "#/definitions/encryptedUserInfoPci"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantId": "75bfc5f5-13c3-4797-b617-bfa039ceb60f",
                "encryptedData": "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...XFBoMYUZodetZdvTiFvSkQ"
              }
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "schema": {
              "type": "object",
              "required": [
                "tokenId",
                "cardLastDigits",
                "cardExpiryDate",
                "tokenState",
                "creationTimestamp"
              ],
              "properties": {
                "tokenId": {
                  "$ref": "#/definitions/tokenId"
                },
                "cardLastDigits": {
                  "$ref": "#/definitions/cardLastDigits"
                },
                "cardExpiryDate": {
                  "$ref": "#/definitions/cardExpiryDate"
                },
                "tokenState": {
                  "$ref": "#/definitions/tokenState"
                },
                "cardProduct": {
                  "type": "object",
                  "description": "Information about the card product.",
                  "required": [
                    "scheme"
                  ],
                  "properties": {
                    "scheme": {
                      "$ref": "#/definitions/scheme"
                    }
                  }
                },
                "creationTimestamp": {
                  "$ref": "#/definitions/creationTimestamp"
                }
              }
            },
            "examples": {
              "application/json": {
                "tokenId": "COFTG-G-75b0cc63-01bc-4b23-8fd6-26434a052098",
                "cardLastDigits": "2366",
                "cardExpiryDate": "0426",
                "tokenState": "ACTIVE",
                "creationTimestamp": "2025-11-10T09:08:24.479Z",
                "cardProduct": {
                  "scheme": "MASTERCARD"
                }
              }
            }
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|CRYPTO_ERROR|The server could not decrypt the data sent in the request.|\n|UNKNOWN_MERCHANT|The merchantId is probably wrong.|\n\n-----------------",
                  "example": "CRYPTO_ERROR"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "CRYPTO_ERROR"
              }
            }
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Token Management"
        ],
        "summary": "Create PCI Token"
      }
    },
    "/push-tokens": {
      "post": {
        "description": "Create a network token from information provided by the Issuer to the Merchant application in a push provisioning use case (Visa and Mastercard only).",
        "operationId": "createPushToken",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantId",
                "pushProvisioningPayload",
                "scheme",
                "language",
                "country",
                "device"
              ],
              "properties": {
                "merchantId": {
                  "$ref": "#/definitions/merchantId"
                },
                "pushProvisioningPayload": {
                  "$ref": "#/definitions/pushProvisioningPayload"
                },
                "scheme": {
                  "$ref": "#/definitions/schemePushProvisioning"
                },
                "encryptedData": {
                  "$ref": "#/definitions/encryptedMerchantInfoPushProvisioning"
                },
                "risk": {
                  "$ref": "#/definitions/risk"
                },
                "language": {
                  "$ref": "#/definitions/language"
                },
                "country": {
                  "$ref": "#/definitions/country"
                },
                "device": {
                  "$ref": "#/definitions/devicePushProvisioning"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantId": "75bfc5f5-13c3-4797-b617-bfa039ceb60f",
                "pushProvisioningPayload": "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...XFBoMYUZodetZdvTiFvSkQ",
                "scheme": "MASTERCARD",
                "language": "en",
                "country": "US",
                "device": {
                  "ipAddress": "172.16.254",
                  "location": "20.68,-88.56"
                },
                "encryptedData": "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...XFBoMYUZodetZdvTiFvSkQ",
                "risk": {
                  "accountScore": 5
                }
              }
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "schema": {
              "type": "object",
              "properties": {
                "tokenId": {
                  "$ref": "#/definitions/tokenId"
                },
                "cardLastDigits": {
                  "$ref": "#/definitions/cardLastDigits"
                },
                "cardExpiryDate": {
                  "$ref": "#/definitions/cardExpiryDate"
                },
                "tokenLastDigits": {
                  "$ref": "#/definitions/tokenLastDigits"
                },
                "tokenExpiryDate": {
                  "$ref": "#/definitions/tokenExpiryDate"
                },
                "tokenState": {
                  "$ref": "#/definitions/tokenState"
                },
                "par": {
                  "$ref": "#/definitions/par"
                },
                "cardProduct": {
                  "$ref": "#/definitions/cardProductPush"
                },
                "encryptedData": {
                  "$ref": "#/definitions/encryptedIssuerInfoPushProvisioning"
                },
                "returnUriType": {
                  "$ref": "#/definitions/returnUriType"
                },
                "returnUri": {
                  "$ref": "#/definitions/returnUri"
                },
                "creationTimestamp": {
                  "$ref": "#/definitions/creationTimestamp"
                }
              },
              "required": [
                "tokenId",
                "tokenState",
                "creationTimestamp"
              ]
            },
            "examples": {
              "application/json": {
                "tokenId": "COFTG-M-caa5f86b-787e-4698-971c-dc217d6dbcf5",
                "cardLastDigits": "2366",
                "cardExpiryDate": "0426",
                "tokenLastDigits": "5589",
                "tokenExpiryDate": "1036",
                "tokenState": "PENDING",
                "par": "5001a9f027e5629d11e3949a0800a",
                "cardProduct": {
                  "cardType": "DEBIT",
                  "scheme": "MASTERCARD",
                  "issuerName": "Bank Name",
                  "cardDescription": "The card description.",
                  "cardArts": {
                    "foregroundColor": "7FB8C8",
                    "backgroundColor": "7FB8C9",
                    "cardBackgroundImageId": "2ee5c858-a6a4-43f1-a503-ffde6c41fad9",
                    "issuerLogoId": "1fd8594c-5284-4aeb-bb73-6129c1d6cdb2",
                    "brandLogoId": "623046b7-4a8f-4550-bca8-45b38c9498a3",
                    "cobrandLogoId": "5548eb95-3aee-4bb8-9abf-38a7ab2c1cf3",
                    "completeCardImageId": "15ac4371-dcb9-4310-867e-b12338970276",
                    "cardIconId": "14e3044fa-949e-4900-800f-88b8fc6cc3d5"
                  },
                  "termsAndConditionsUrl": "https://bank.com/tncs.html",
                  "privacyPolicyUrl": "https://bank.com/privacyPolicy.html"
                },
                "encryptedData": "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...XFBoMYUZodetZdvTiFvSkQ",
                "creationTimestamp": "2025-11-10T09:08:24.479Z"
              }
            }
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|CRYPTO_ERROR|The server could not decrypt the data sent in the request.|\n|INVALID_PAN_DATA|The PAN data is invalid.|\n|PAN_NOT_ELIGIBLE|The Issuer considers the PAN as not eligible for tokenization.|\n|UNKNOWN_MERCHANT|The merchantId is probably wrong.|\n|ISSUER_DECLINED|The Issuer declined the tokenization.|\n\n-----------------",
                  "example": "CRYPTO_ERROR"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "CRYPTO_ERROR"
              }
            }
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Token Management"
        ],
        "summary": "Create Push Token"
      }
    },
    "/tokens/{tokenId}": {
      "delete": {
        "description": "Delete a token.",
        "operationId": "eraseToken",
        "parameters": [
          {
            "$ref": "#/parameters/tokenId"
          },
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/responses/204"
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Token Management"
        ],
        "summary": "Delete Token"
      },
      "get": {
        "description": "Retrieve information about a token.\n\nFor EMV Tokens, the information provided depends on what the Issuer has declared in the Scheme TSP.\n\nFor PCI Tokens, only \"basic\" information related to the card is provided:\n<li>Card last digits.\n<li>Card expiry date.\n<li>Card Scheme if recognized.\n",
        "operationId": "getToken",
        "parameters": [
          {
            "$ref": "#/parameters/tokenId"
          },
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "object",
              "required": [
                "tokenState",
                "creationTimestamp"
              ],
              "properties": {
                "merchantId": {
                  "$ref": "#/definitions/merchantId"
                },
                "cardBin": {
                  "$ref": "#/definitions/cardBin"
                },
                "cardLastDigits": {
                  "$ref": "#/definitions/cardLastDigits"
                },
                "cardExpiryDate": {
                  "$ref": "#/definitions/cardExpiryDate"
                },
                "tokenState": {
                  "$ref": "#/definitions/tokenState"
                },
                "tokenLastDigits": {
                  "$ref": "#/definitions/tokenLastDigits"
                },
                "tokenExpiryDate": {
                  "$ref": "#/definitions/tokenExpiryDate"
                },
                "par": {
                  "$ref": "#/definitions/par"
                },
                "vProvisionedTokenId": {
                  "$ref": "#/definitions/vProvisionedTokenId"
                },
                "deviceBindings": {
                  "$ref": "#/definitions/deviceBindings"
                },
                "cardProduct": {
                  "$ref": "#/definitions/cardProduct"
                },
                "creationTimestamp": {
                  "$ref": "#/definitions/creationTimestamp"
                },
                "lastUpdateTimestamp": {
                  "$ref": "#/definitions/lastUpdateTimestamp"
                }
              }
            },
            "examples": {
              "application/json": {
                "tokenState": "ACTIVE",
                "creationTimestamp": "2025-11-10T09:08:24.479Z",
                "merchantId": "30088894-9c92-41fb-83b0-46a514c9f3c0",
                "cardBin": "554312",
                "cardLastDigits": "2366",
                "cardExpiryDate": "0426",
                "tokenLastDigits": "5589",
                "tokenExpiryDate": "1036",
                "par": "5001a9f027e5629d11e3949a0800a",
                "vProvisionedTokenId": "ctf-12354658979-55",
                "cardProduct": {
                  "cardType": "DEBIT",
                  "scheme": "MASTERCARD",
                  "issuerName": "Bank Name",
                  "cardDescription": "The card description.",
                  "cardArts": {
                    "foregroundColor": "7FB8C8",
                    "backgroundColor": "7FB8C9",
                    "cardBackgroundImageId": "2ee5c858-a6a4-43f1-a503-ffde6c41fad9",
                    "issuerLogoId": "1fd8594c-5284-4aeb-bb73-6129c1d6cdb2",
                    "brandLogoId": "623046b7-4a8f-4550-bca8-45b38c9498a3",
                    "cobrandLogoId": "5548eb95-3aee-4bb8-9abf-38a7ab2c1cf3",
                    "completeCardImageId": "15ac4371-dcb9-4310-867e-b12338970276",
                    "cardIconId": "14e3044fa-949e-4900-800f-88b8fc6cc3d5"
                  },
                  "termsAndConditionsUrl": "https://bank.com/tncs.html",
                  "privacyPolicyUrl": "https://bank.com/privacyPolicy.html"
                },
                "lastUpdateTimestamp": "2025-11-13T09:09:52.254Z"
              }
            }
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Token Management"
        ],
        "summary": "Get Token"
      }
    },
    "/tokens/migration/{oldTokenId}": {
      "post": {
        "description": "Migrate mastercard M4M tokens to Secure Card on File\n\nETP contacts the Scheme TSP to migrate the network token.",
        "operationId": "migrateMdesToken",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "$ref": "#/parameters/oldTokenId"
          }
        ],
        "responses": {
          "201": {
            "description": "OK",
            "schema": {
              "type": "object",
              "required": [
                "newTokenId",
                "tokenState",
                "creationTimestamp"
              ],
              "properties": {
                "newTokenId": {
                  "$ref": "#/definitions/tokenId"
                },
                "cardLastDigits": {
                  "$ref": "#/definitions/cardLastDigits"
                },
                "cardExpiryDate": {
                  "$ref": "#/definitions/cardExpiryDate"
                },
                "tokenState": {
                  "$ref": "#/definitions/migratedTokenState"
                },
                "tokenLastDigits": {
                  "$ref": "#/definitions/tokenLastDigits"
                },
                "tokenExpiryDate": {
                  "$ref": "#/definitions/tokenExpiryDate"
                },
                "par": {
                  "$ref": "#/definitions/par"
                },
                "cardProduct": {
                  "$ref": "#/definitions/cardProductMigration"
                },
                "creationTimestamp": {
                  "$ref": "#/definitions/creationTimestamp"
                }
              }
            },
            "examples": {
              "application/json": {
                "newTokenId": "COFTG-MS-ce464906-cf39-4990-b4a8-c160e67c603a",
                "cardLastDigits": "2366",
                "cardExpiryDate": "0426",
                "tokenLastDigits": "5589",
                "tokenExpiryDate": "1036",
                "tokenState": "ACTIVE",
                "par": "5001a9f027e5629d11e3949a0800a",
                "cardProduct": {
                  "issuerName": "Bank Name",
                  "cardType": "DEBIT",
                  "cardDescription": "The card description.",
                  "cardArts": {
                    "foregroundColor": "7FB8C8",
                    "cardImageUrl": "https://stage.assets.mc.com/card-art/combined-image-asset/MyBank-mastercard.png"
                  }
                },
                "creationTimestamp": "2025-11-10T09:08:24.479Z"
              }
            }
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|INVALID_TOKEN_STATE|The current token state doesn't allow the operation.|\n|OPERATION_NOT_ALLOWED|Operation not allowed.|\n|TSP_NON_RETRYABLE_ERROR|Non retryable errors returned by the TSP.|\n|TOKEN_NOT_ELIGIBLE|Token not eligible for migration.|\n|SCHEME_TECHNICAL_ERROR|Technical error returned by TSP.|\n\n-----------------",
                  "example": "INVALID_TOKEN_STATE"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "INVALID_TOKEN_STATE"
              }
            }
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Token Migration"
        ],
        "summary": "Migrate Mastercard tokens"
      }
    },
    "/device-bindings/{tokenId}/{deviceId}": {
      "delete": {
        "description": "Delete the binding between a device and a token.",
        "operationId": "deleteDeviceBinding",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "$ref": "#/parameters/mcCertifiedSolutionId"
          },
          {
            "$ref": "#/parameters/tokenId"
          },
          {
            "$ref": "#/parameters/credentialId"
          },
          {
            "$ref": "#/parameters/deviceId"
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/responses/204"
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Device Binding"
        ],
        "summary": "Delete Device Binding"
      }
    },
    "/transactions": {
      "post": {
        "description": "Provide all required data to the Merchant/PSP to build a transaction authorization request.\n\nIn case of network token, the token PAN, expiry date and cryptogram are provided.\n\nIn case of PCI token, the card PAN and expiry date are provided.",
        "operationId": "createTransaction",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "tokenId",
                "transactionType"
              ],
              "properties": {
                "tokenId": {
                  "$ref": "#/definitions/tokenId"
                },
                "transactionType": {
                  "$ref": "#/definitions/transactionType"
                },
                "authentication": {
                  "$ref": "#/definitions/authenticationTransaction"
                },
                "visaSignedPayload": {
                  "$ref": "#/definitions/visaSignedPayload"
                },
                "transactionData": {
                  "$ref": "#/definitions/transactionData"
                },
                "device": {
                  "$ref": "#/definitions/deviceTransaction"
                },
                "cardholder": {
                  "$ref": "#/definitions/cardholderTransaction"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "tokenId": "COFTG-M-ce464906-cf39-4990-b4a8-c160e67c603a",
                "transactionType": "SINGLE",
                "transactionData": {
                  "amount": "12.84",
                  "currencyCode": "EUR"
                }
              }
            },
            "description": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "schema": {
              "type": "object",
              "required": [
                "transactionId",
                "encryptedData"
              ],
              "properties": {
                "transactionId": {
                  "$ref": "#/definitions/transactionId"
                },
                "encryptedData": {
                  "$ref": "#/definitions/encryptedPaymentCredentials"
                },
                "eci": {
                  "$ref": "#/definitions/eci"
                },
                "cryptogramExpiryDate": {
                  "$ref": "#/definitions/cryptogramExpiryDate"
                },
                "isDAF": {
                  "$ref": "#/definitions/isDAF"
                }
              }
            },
            "examples": {
              "application/json": {
                "transactionId": "COFTG-G-e141-0303e55b-5e14-4af4-9601-b268d3dfbb65",
                "encryptedData": "eyJhbGciOiJSU0EtT...GoWAB7Ucw",
                "eci": "07",
                "cryptogramExpiryDate": "2021-09-27T17:06:09.000Z"
              }
            }
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|INVALID_TOKEN_STATE|The current token state doesn't allow the operation.|\n|INVALID_SIGNATURE|The 'visaSignedPayload' can't be verified by Visa.|\n|TSP_NON_RETRYABLE_ERROR|Non retryable errors returned by the TSP.|\n|PAN_NOT_ELIGIBLE|The Issuer considers the PAN as not eligible for the operation.|\n|SCHEME_TECHNICAL_ERROR|Technical error returned by TSP.|\n\n-----------------",
                  "example": "INVALID_TOKEN_STATE"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "INVALID_TOKEN_STATE"
              }
            }
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Transaction Management"
        ],
        "summary": "Create Transaction"
      }
    },
    "/v2/transactions": {
      "post": {
        "description": "Provide all required data to the Merchant/PSP to build a transaction authorisation request.",
        "operationId": "createTransactionV2",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "tokenId",
                "transactionType"
              ],
              "properties": {
                "tokenId": {
                  "$ref": "#/definitions/tokenId"
                },
                "transactionType": {
                  "$ref": "#/definitions/transactionTypeV2"
                },
                "EMV_TOKEN": {
                  "$ref": "#/definitions/EMV_TOKEN"
                },
                "VISA_DAF": {
                  "$ref": "#/definitions/VISA_DAF"
                },
                "MASTERCARD_TAF_FIDO": {
                  "$ref": "#/definitions/MASTERCARD_TAF_FIDO"
                },
                "MASTERCARD_TAF_IAAV": {
                  "$ref": "#/definitions/MASTERCARD_TAF_IAAV"
                },
                "MASTERCARD_THALES_AUTHENTICATOR": {
                  "$ref": "#/definitions/MASTERCARD_THALES_AUTHENTICATOR"
                },
                "MASTERCARD_TAS": {
                  "$ref": "#/definitions/MASTERCARD_TAS"
                }
              }
            },
            "x-examples": {
              "EMV Token Transaction": {
                "tokenId": "COFTG-M-ce464906-cf39-4990-b4a8-c160e67c603a",
                "transactionType": "EMV_TOKEN",
                "EMV_TOKEN": {
                  "isRecurring": false,
                  "amount": "15.55",
                  "currencyCode": "EUR"
                }
              },
              "Visa DAF": {
                "tokenId": "string",
                "transactionType": "VISA_DAF",
                "VISA_DAF": {
                  "firstFactor": "LOGIN_PASSWORD",
                  "secondFactor": "VISA_CTF_BINDING",
                  "visaSignedPayload": "string",
                  "amount": "15.55",
                  "currencyCode": "EUR",
                  "ipAddress": "172.16.254.1",
                  "location": "20.68,-88.56",
                  "email": "jsmith@emailprovider.com",
                  "billingAddress": {
                    "line1": "string",
                    "line2": "string",
                    "city": "San Francisco",
                    "postalCode": "10016",
                    "country": "US"
                  }
                }
              },
              "Mastercard TAF FIDO": {
                "tokenId": "string",
                "transactionType": "MASTERCARD_TAF_FIDO",
                "MASTERCARD_TAF_FIDO": {
                  "amount": "15.55",
                  "currencyCode": "EUR",
                  "deviceId": "1234567890",
                  "ipAddress": "172.16.254.1",
                  "location": "20.68,-88.56",
                  "mcCertifiedSolutionId": "43SA5",
                  "credentialId": "bf8c5b2b-28ce-48d8-acbc-cc82f51478c6",
                  "fidoRelyingParty": "relyingparty.com",
                  "fidoUserId": "ca7ac6fe-1eec-11ed-861d-0242ac120002",
                  "isSpcEnabled": false,
                  "fidoAuthenticationResponse": {
                    "type": "public-key",
                    "id": "h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE",
                    "rawId": "h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE",
                    "authenticatorAttachment": "platform",
                    "response": {
                      "clientDataJSON": "Base64-encoded-string",
                      "authenticatorData": "Base64-encoded-string",
                      "publicKeyAlgorithm": 2,
                      "attestationObject": "Base64-encoded-string",
                      "signature": "Base64-encoded-string",
                      "userHandle": "ca7ac6fe-1eec-11ed-861d-0242ac120002"
                    }
                  },
                  "mcTransactionAssertion": "Mastercard assertionJWT",
                  "email": "jsmith@emailprovider.com",
                  "billingAddress": {
                    "line1": "string",
                    "line2": "string",
                    "city": "San Francisco",
                    "postalCode": "10016",
                    "country": "US"
                  },
                  "shippingAddress": {
                    "line1": "string",
                    "line2": "string",
                    "city": "San Francisco",
                    "postalCode": "10016",
                    "country": "US"
                  },
                  "merchantCategoryCode": "1234",
                  "merchantCountry": "US"
                }
              },
              "Mastercard TAF IAAV": {
                "tokenId": "string",
                "transactionType": "MASTERCARD_TAF_IAAV",
                "MASTERCARD_TAF_IAAV": {
                  "amount": "15.55",
                  "currencyCode": "EUR",
                  "ipAddress": "172.16.254.1",
                  "location": "20.68,-88.56",
                  "mcIaav": "Assurance additional data Base64-encoded-string",
                  "verificationTimestamp": "'2025-07-01T10:25:11.142Z",
                  "email": "jsmith@emailprovider.com",
                  "billingAddress": {
                    "line1": "string",
                    "line2": "string",
                    "city": "San Francisco",
                    "postalCode": "10016",
                    "country": "US",
                    "subdivision": "NY"
                  },
                  "shippingAddress": {
                    "line1": "string",
                    "line2": "string",
                    "city": "San Francisco",
                    "postalCode": "10016",
                    "country": "US",
                    "subdivision": "NY"
                  },
                  "merchantCategoryCode": "1234",
                  "merchantCountry": "US"
                }
              },
              "Mastercard THALES AUTHENTICATOR": {
                "tokenId": "string",
                "transactionType": "MASTERCARD_THALES_AUTHENTICATOR",
                "MASTERCARD_THALES_AUTHENTICATOR": {
                  "amount": "15.55",
                  "currencyCode": "EUR",
                  "ipAddress": "172.16.254.1",
                  "location": "20.68,-88.56",
                  "deviceId": "1234567890",
                  "tafAssertionPayload": "Base64-encoded-string",
                  "email": "jsmith2@emailprovider.com",
                  "billingAddress": {
                    "line1": "string",
                    "line2": "string",
                    "city": "San Francisco",
                    "postalCode": "10016",
                    "country": "US",
                    "subdivision": "NY"
                  },
                  "shippingAddress": {
                    "line1": "string",
                    "line2": "string",
                    "city": "San Francisco",
                    "postalCode": "10016",
                    "country": "US",
                    "subdivision": "NY"
                  },
                  "merchantCategoryCode": "1234",
                  "merchantCountry": "US"
                }
              },
              "Mastercard TAS": {
                "tokenId": "string",
                "transactionType": "MASTERCARD_TAS",
                "MASTERCARD_TAS": {
                  "amount": "15.55",
                  "currencyCode": "EUR",
                  "ipAddress": "172.16.254.1",
                  "location": "20.68,-88.56",
                  "email": "jsmith2@emailprovider.com",
                  "billingAddress": {
                    "line1": "string",
                    "line2": "string",
                    "city": "San Francisco",
                    "postalCode": "10016",
                    "country": "US",
                    "subdivision": "NY"
                  },
                  "shippingAddress": {
                    "line1": "string",
                    "line2": "string",
                    "city": "San Francisco",
                    "postalCode": "10016",
                    "country": "US",
                    "subdivision": "NY"
                  },
                  "merchantCategoryCode": "1234",
                  "merchantCountry": "US",
                  "acquirerMerchantId": "545446446",
                  "acquirerBin": "4530",
                  "mcCallbackUri": "https://merchantUrl.com"
                }
              }
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "schema": {
              "type": "object",
              "required": [
                "transactionId",
                "encryptedData"
              ],
              "properties": {
                "transactionId": {
                  "$ref": "#/definitions/transactionId"
                },
                "encryptedData": {
                  "$ref": "#/definitions/encryptedPaymentCredentials"
                },
                "eci": {
                  "$ref": "#/definitions/eci"
                },
                "cryptogramExpiryDate": {
                  "$ref": "#/definitions/cryptogramExpiryDate"
                },
                "isDAF": {
                  "$ref": "#/definitions/isDAF"
                }
              }
            },
            "examples": {
              "application/json": {
                "transactionId": "COFTG-G-e141-0303e55b-5e14-4af4-9601-b268d3dfbb65",
                "encryptedData": "eyJhbGciOiJSU0EtT...GoWAB7Ucw",
                "eci": "07",
                "cryptogramExpiryDate": "2021-09-27T17:06:09.000Z"
              }
            }
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n|Error Code|Description|\n|-------|-------|\n|INVALID_TOKEN_STATE|The current token state doesn't allow the operation.|\n|INVALID_SIGNATURE|A signature (visaSignedPayload, FIDO, IAAV, THALES_AUTHENTICATOR, etc.) can't be verified by the scheme or has expired.|\n|TSP_NON_RETRYABLE_ERROR|Non retryable errors returned by the TSP.|\n|PAN_NOT_ELIGIBLE|The Issuer considers the PAN as not eligible for the operation.|\n|TOKEN_NOT_BOUND|Token is not bound to the specified device or authenticator.|\n|WRONG_ASSERTION|Verification of assertion data was unsuccessful.|\n|SCHEME_TECHNICAL_ERROR|Technical error returned by TSP.|\n|PASSKEY_AUTHENTICATION_FAILED|Passkey authentication failed|\n\n-----------------",
                  "example": "INVALID_TOKEN_STATE"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "INVALID_TOKEN_STATE"
              }
            }
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Transaction Management"
        ],
        "summary": "Create Transaction v2"
      }
    },
    "/device-bindings": {
      "post": {
        "description": "Binds a token with a FIDO authenticator as per Mastercard TAF.",
        "operationId": "createBinding",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "tokenId",
                "bindingType",
                "MASTERCARD_TAF_FIDO_IAAV"
              ],
              "properties": {
                "tokenId": {
                  "$ref": "#/definitions/tokenId"
                },
                "bindingType": {
                  "$ref": "#/definitions/bindingType"
                },
                "MASTERCARD_TAF_FIDO_IAAV": {
                  "$ref": "#/definitions/BINDING_MASTERCARD_TAF_FIDO_IAAV"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "tokenId": "COFTG-M-ce464906-cf39-4990-b4a8-c160e67c603a",
                "bindingType": "MASTERCARD_TAF_FIDO_IAAV",
                "MASTERCARD_TAF_FIDO_IAAV": {
                  "mcCertifiedSolutionId": "43SA5",
                  "credentialId": "bf8c5b2b-28ce-48d8-acbc-cc82f51478c6",
                  "deviceId": "1234567890",
                  "fidoRelyingParty": "relyingparty.com",
                  "fidoUserId": "ca7ac6fe-1eec-11ed-861d-0242ac120002",
                  "isSpcEnabled": false,
                  "fidoRegistrationResponse": {
                    "type": "public-key",
                    "id": "h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE",
                    "rawId": "h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE",
                    "authenticatorAttachment": "platform",
                    "response": {
                      "clientDataJSON": "Base64 encoded string",
                      "authenticatorData": "Base64 encoded string",
                      "signature": "Base64 encoded string",
                      "userHandle": "ca7ac6fe-1eec-11ed-861d-0242ac120002"
                    }
                  },
                  "mcIaav": "Base64 Encoded IAAV",
                  "verificationTimestamp": "'2025-07-01T10:25:11.142Z",
                  "mcBindingAssertion": "Mastercard bindingAssertionJWT"
                }
              }
            }
          }
        ],
        "responses": {
          "204": {
            "$ref": "#/responses/204"
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n|Error Code|Description|\n|-------|-------|\n|INVALID_TOKEN_STATE|The current token state doesn't allow the operation.|\n|INVALID_SIGNATURE|The FIDO signature or IAAV can't be verified by Mastercard.|\n|TSP_NON_RETRYABLE_ERROR|Non retryable errors returned by the TSP.|\n|SCHEME_TECHNICAL_ERROR|Technical error returned by TSP.|\n\n-----------------",
                  "example": "INVALID_TOKEN_STATE"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "INVALID_SIGNATURE"
              }
            }
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Device Binding"
        ],
        "summary": "Create Binding"
      }
    },
    "/srci/transactions": {
      "post": {
        "description": "Provide all required data to the Merchant/PSP to build a click to pay transaction authorization request.",
        "operationId": "createSrciTransaction",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantId",
                "transactionId"
              ],
              "properties": {
                "merchantId": {
                  "$ref": "#/definitions/merchantId"
                },
                "transactionId": {
                  "$ref": "#/definitions/transactionId"
                },
                "transactionData": {
                  "$ref": "#/definitions/transactionDataSrci"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantId": "85f6a8d7-a946-46a2-8c9d-075701e678f9",
                "transactionId": "0a4e0d3.4f339be7.cbfa197b588400089c08aa60cc11934eb8009c1c",
                "transactionData": {
                  "amount": "100.00",
                  "currencyCode": "USD"
                }
              }
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "schema": {
              "type": "object",
              "required": [
                "encryptedData"
              ],
              "properties": {
                "encryptedData": {
                  "$ref": "#/definitions/encryptedPaymentCredentials"
                }
              }
            },
            "examples": {
              "application/json": {
                "encryptedData": "eyJhbGciOiJSU0EtT...GoWAB7Ucw"
              }
            }
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|INVALID_ARGUMENT|Cannot process the request because it is malformed or has incorrect/missing fields or values.|\n|INVALID_STATE|Request cannot be executed due to the incorrect field value.|\n|INVALID_AUTH_HEADER|Invalid Authentication header.|\n|INVALID_VALUE|Invalid parameter value.|\n|UNKNOWN_MERCHANT|The merchantId is probably wrong.|\n\n-----------------",
                  "example": "INVALID_ARGUMENT"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "INVALID_ARGUMENT"
              }
            }
          },
          "401": {
            "description": "Unauthorized - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|UNAUTHENTICATED|Required authentication information is either missing or not valid for the resource.|\n|DECLINED|Operation declined.|\n\n-----------------",
                  "example": "DECLINED"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "DECLINED"
              }
            }
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Click to Pay"
        ],
        "summary": "Create SRCi Transaction"
      }
    },
    "/srci/transactions/confirmations": {
      "post": {
        "description": "Notify the Click to Pay system about the outcome of a transaction authorization.",
        "operationId": "notifySrci",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantId",
                "transactionId",
                "confirmationData",
                "transactionData"
              ],
              "properties": {
                "merchantId": {
                  "$ref": "#/definitions/merchantId"
                },
                "transactionId": {
                  "$ref": "#/definitions/transactionId"
                },
                "confirmationData": {
                  "$ref": "#/definitions/confirmationData"
                },
                "transactionData": {
                  "$ref": "#/definitions/transactionDataSrci"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantId": "85f6a8d7-a946-46a2-8c9d-075701e678f9",
                "transactionId": "0a4e0d3.4f339be7.cbfa197b588400089c08aa60cc11934eb8009c1c",
                "confirmationData": {
                  "eventType": "AUTHORISE",
                  "eventStatus": "SUCCESS",
                  "status": "CREATED",
                  "reason": "Order Successfully Created",
                  "timestamp": "2021-11-10T09:08:24.479Z",
                  "networkAuthorizationCode": "2020404",
                  "networkTransactionIdentifier": "mastercard"
                },
                "transactionData": {
                  "amount": "100.00",
                  "currencyCode": "USD"
                }
              }
            }
          }
        ],
        "responses": {
          "202": {
            "$ref": "#/responses/202"
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|INVALID_ARGUMENT|Cannot process the request because it is malformed or has incorrect/missing fields or values.|\n|INVALID_STATE|Request cannot be executed due to the incorrect field value.|\n|INVALID_AUTH_HEADER|Invalid Authentication header.|\n|INVALID_VALUE|Invalid parameter value.|\n|UNKNOWN_MERCHANT|The merchantId is probably wrong.|\n\n-----------------",
                  "example": "INVALID_ARGUMENT"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "INVALID_ARGUMENT"
              }
            }
          },
          "401": {
            "description": "Unauthorized - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|UNAUTHENTICATED|Required authentication information is either missing or not valid for the resource.|\n|DECLINED|Operation declined.|\n\n-----------------",
                  "example": "DECLINED"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "DECLINED"
              }
            }
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Click to Pay"
        ],
        "summary": "Notify SRCi"
      }
    },
    "/assets/{assetId}": {
      "get": {
        "description": "Returns an asset ressource (image, text). </br></br> The assetId associated to an asset never changes so the response can be cached by the API consumer.",
        "operationId": "getAsset",
        "parameters": [
          {
            "$ref": "#/parameters/assetId"
          },
          {
            "$ref": "#/parameters/authorization"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/asset"
            },
            "examples": {
              "application/json": {
                "mediaType": "image/png",
                "encodedData": "4Q3iRXhpZgAATU0AKgAAAAgABwESAAMAAAAB....TBIiw3Yu73+edWQ1+TquKs2wJdir//2Q=="
              }
            }
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Token Management"
        ],
        "summary": "Get Asset"
      }
    },
    "/merchants": {
      "post": {
        "description": "Create a merchant.\n\nThe API is synchronous and the Scheme TSP is not involved.",
        "operationId": "createMerchant",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantName"
              ],
              "properties": {
                "merchantName": {
                  "$ref": "#/definitions/merchantName"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantName": "the-ecom-store.com"
              }
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "schema": {
              "type": "object",
              "required": [
                "merchantId",
                "creationTimestamp"
              ],
              "properties": {
                "merchantId": {
                  "$ref": "#/definitions/merchantId"
                },
                "creationTimestamp": {
                  "$ref": "#/definitions/creationTimestamp"
                }
              }
            },
            "examples": {
              "application/json": {
                "merchantId": "85f6a8d7-a946-46a2-8c9d-075701e678f9",
                "creationTimestamp": "2021-05-11T11:52:20.354Z"
              }
            }
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Merchant Onboarding"
        ]
      }
    },
    "/merchants/{merchantId}/mastercard": {
      "put": {
        "description": "Update the merchant setup for Mastercard MDES for Merchant program (M4M).",
        "operationId": "updateMerchantMastercard",
        "parameters": [
          {
            "$ref": "#/parameters/merchantId"
          },
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "supportedCardType"
              ],
              "properties": {
                "supportedCardType": {
                  "$ref": "#/definitions/supportedCardType"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "supportedCardType": "CREDIT"
              }
            }
          }
        ],
        "responses": {
          "202": {
            "$ref": "#/responses/202"
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Merchant Onboarding"
        ],
        "summary": "Update Merchant Mastercard (M4M) - DEPRECATED!"
      }
    },
    "/merchants/{merchantId}/mastercard/secure-cof": {
      "put": {
        "description": "Update the merchant setup for Mastercard Secure Card-On-File program.",
        "operationId": "updateMerchantMastercardSecureCOF",
        "parameters": [
          {
            "$ref": "#/parameters/merchantId"
          },
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantLegalName",
                "websiteUrl",
                "merchantCity",
                "merchantCountry"
              ],
              "properties": {
                "merchantLegalName": {
                  "$ref": "#/definitions/merchantLegalName"
                },
                "websiteUrl": {
                  "$ref": "#/definitions/websiteUrl"
                },
                "merchantCity": {
                  "$ref": "#/definitions/merchantCity"
                },
                "merchantCountry": {
                  "$ref": "#/definitions/merchantCountry"
                },
                "mcServiceId": {
                  "$ref": "#/definitions/mcServiceId"
                },
                "merchantCategory": {
                  "$ref": "#/definitions/merchantCategory"
                },
                "acquirerId": {
                  "$ref": "#/definitions/acquirerIdMastercard"
                },
                "locale": {
                  "$ref": "#/definitions/locale"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantLegalName": "My Merchant SARL",
                "websiteUrl": "http://mymerchant.com",
                "merchantCity": "Paris",
                "merchantCountry": "FR",
                "supportedCardType": "CREDIT",
                "mcServiceId": ""
              }
            }
          }
        ],
        "responses": {
          "202": {
            "$ref": "#/responses/202"
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Merchant Onboarding"
        ],
        "summary": "Update Merchant Mastercard (S-COF)"
      }
    },
    "/merchants/{merchantId}/visa": {
      "put": {
        "description": "Update the merchant setup for VISA.",
        "operationId": "updateMerchantVisa",
        "parameters": [
          {
            "$ref": "#/parameters/merchantId"
          },
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantLegalName",
                "primaryContactEmail",
                "websiteUrl",
                "merchantCity",
                "merchantCountry"
              ],
              "properties": {
                "merchantLegalName": {
                  "$ref": "#/definitions/merchantLegalName"
                },
                "primaryContactEmail": {
                  "$ref": "#/definitions/primaryContactEmail"
                },
                "websiteUrl": {
                  "$ref": "#/definitions/websiteUrl"
                },
                "merchantCity": {
                  "$ref": "#/definitions/merchantCity"
                },
                "merchantCountry": {
                  "$ref": "#/definitions/merchantCountry"
                },
                "allowCardUpdateNotification": {
                  "$ref": "#/definitions/allowCardUpdateNotification"
                },
                "businessIdentificationType": {
                  "$ref": "#/definitions/businessIdentificationType"
                },
                "businessIdentificationValue": {
                  "$ref": "#/definitions/businessIdentificationValue"
                },
                "acquirerId": {
                  "$ref": "#/definitions/acquirerId"
                },
                "acquirerMerchantId": {
                  "$ref": "#/definitions/acquirerMerchantId"
                },
                "dunsNumber": {
                  "$ref": "#/definitions/dunsNumber"
                },
                "tokenRequestorServiceTypes": {
                  "$ref": "#/definitions/tokenRequestorServiceTypes"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantLegalName": "My Merchant SARL",
                "primaryContactEmail": "jsmith@mymerchant.com",
                "websiteUrl": "http://mymerchant.com",
                "merchantCity": "Paris",
                "merchantCountry": "FR",
                "allowCardUpdateNotification": true,
                "businessIdentificationType": "BID",
                "businessIdentificationValue": "12345678"
              }
            }
          }
        ],
        "responses": {
          "202": {
            "$ref": "#/responses/202"
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Merchant Onboarding"
        ],
        "summary": "Update Merchant Visa"
      }
    },
    "/merchants/{merchantId}/discover": {
      "put": {
        "description": "Update the merchant setup for Discover.",
        "operationId": "updateMerchantDiscover",
        "parameters": [
          {
            "$ref": "#/parameters/merchantId"
          },
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantCountry"
              ],
              "properties": {
                "merchantCountry": {
                  "$ref": "#/definitions/merchantCountry"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "merchantCountry": "US"
              }
            }
          }
        ],
        "responses": {
          "202": {
            "$ref": "#/responses/202"
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Merchant Onboarding"
        ],
        "summary": "Update Merchant Discover"
      }
    },
    "/merchants/{merchantId}/srci": {
      "put": {
        "description": "Update the merchant setup for click to pay.",
        "operationId": "updateMerchantSrci",
        "parameters": [
          {
            "$ref": "#/parameters/merchantId"
          },
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "supportedCardBrands",
                "merchantLegalName",
                "websiteUrl",
                "merchantCountry"
              ],
              "properties": {
                "supportedCardBrands": {
                  "$ref": "#/definitions/supportedCardBrands"
                },
                "merchantLegalName": {
                  "$ref": "#/definitions/merchantLegalName"
                },
                "websiteUrl": {
                  "$ref": "#/definitions/websiteUrl"
                },
                "merchantCountry": {
                  "$ref": "#/definitions/merchantCountry"
                }
              }
            },
            "x-examples": {
              "application/json": {
                "supportedCardBrands": "MASTERCARD",
                "merchantLegalName": "SRCI Merchant",
                "websiteUrl": "http://srci-merchant.com",
                "merchantCountry": "US"
              }
            }
          }
        ],
        "responses": {
          "202": {
            "$ref": "#/responses/202"
          },
          "400": {
            "description": "Bad request - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|INVALID_ARGUMENT|Cannot process the request because it is malformed or has incorrect/missing fields or values.|\n|INVALID_STATE|Request cannot be executed due to the incorrect field value.|\n|INVALID_AUTH_HEADER|Invalid Authentication header.|\n|INVALID VALUE|Invalid parameter value.|\n\n-----------------",
                  "example": "INVALID_ARGUMENT"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                },
                "schemeCorrelationId": {
                  "$ref": "#/definitions/schemeCorrelationId"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "INVALID_ARGUMENT"
              }
            }
          },
          "401": {
            "description": "Unauthorized - Not Retryable",
            "schema": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "Optional information that details the error.\n\n-----------------\n|Error Code|Description|\n|-------|-------|\n|UNAUTHENTICATED|Required authentication information is either missing or not valid for the resource.|\n|DECLINED|Operation declined.|\n\n-----------------",
                  "example": "DECLINED"
                },
                "errorDetails": {
                  "$ref": "#/definitions/errorDetails"
                }
              }
            },
            "examples": {
              "application/json": {
                "errorCode": "DECLINED"
              }
            }
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "Click to Pay"
        ],
        "summary": "Update Merchant Click to Pay"
      }
    },
    "/auth/accessToken": {
      "post": {
        "description": "Generates a JWT access token using client credentials for Web SDK calls.",
        "operationId": "createAccessToken",
        "parameters": [
          {
            "$ref": "#/parameters/authorization"
          },
          {
            "$ref": "#/parameters/xCorrelationId"
          },
          {
            "in": "body",
            "name": "Request",
            "schema": {
              "type": "object",
              "required": [
                "merchantId",
                "tokens",
                "scope"
              ],
              "properties": {
                "merchantId": {
                  "$ref": "#/definitions/merchantId"
                },
                "tokens": {
                  "type": "array",
                  "description": "The list of tokens to be associated with the JWT, \nonly Mastercard and Visa tokens allowed, \nall the tokens must belong to the same merchant",
                  "minItems": 1,
                  "maxItems": 10,
                  "example": [
                    "COFTG-MS-ce464906-cf39-4990-b4a8-c160e67c603a",
                    "COFTG-V-fe464806-sd39-1290-a4t8-f160e37c602b"
                  ],
                  "items": {
                    "$ref": "#/definitions/tokenId"
                  },
                  "uniqueItems": true
                },
                "scope":{
                  "type": "string",
                  "maxLength": 32,
                  "description": "Scope used for the access token generation",
                  "enum": [
                    "PAYMENT_PASSKEY"
                  ]
                }
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Access token successfully generated",
            "schema": {
              "type": "object",
              "required": [
                "accessToken"
              ],
              "properties": {
                "accessToken": {
                  "type": "string",
                  "description": "Access token generated for WEB SDK calls, \n JWT content: \n- exp\n- iss\n- iat\n- aud\n- sub\n- trId\n- scope",
                  "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
                }
              }
            }
          },
          "400": {
            "$ref": "#/responses/400"
          },
          "401": {
            "$ref": "#/responses/401"
          },
          "404": {
            "$ref": "#/responses/404"
          },
          "429": {
            "$ref": "#/responses/429"
          },
          "500": {
            "$ref": "#/responses/500"
          },
          "503": {
            "$ref": "#/responses/503"
          }
        },
        "tags": [
          "JWT authentication"
        ],
        "summary": "Create access token"
      }
    }
  },
  "responses": {
    "202": {
      "description": "Accepted"
    },
    "204": {
      "description": "No Content"
    },
    "400": {
      "description": "Bad request - Not Retryable"
    },
    "401": {
      "description": "Unauthorized - Not Retryable"
    },
    "404": {
      "description": "Not Found - Not Retryable"
    },
    "429": {
      "description": "Too Many Requests - Retryable"
    },
    "500": {
      "description": "Internal Server Error - Not Retryable"
    },
    "503": {
      "description": "Service Unavailable - Retryable"
    }
  },
  "definitions": {
    "merchantId": {
      "type": "string",
      "description": "Identifier of the merchant provided by Thales at on-boarding.",
      "minLength": 1,
      "maxLength": 128
    },
    "encryptedUserInfoSync": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8196,
      "description": "The user and card information encrypted in a JWE structure (see security section in the documentation).\n\nOnce decrypted, the JWE plaintext contains the following JSON object:\n\n|JSON field parameter name|description|MOC|Length|\n|-------|-------|-------|-------|\n|fpan|The funding pan to tokenize. </br>Value expected when 'source' parameter is 'MANUAL' or 'ON_FILE'.|C|Up to 19|\n|exp|The expiry date in format MMYY. </br>Value expected when 'source' parameter is 'MANUAL' or 'ON_FILE'. </br>Optional when VCES feature is activated for VISA|C|4|\n|token|Token number. </br>Value expected when 'source' parameter is 'TOKEN'.|C|Up to 19|\n|name|The card holder name in the format FIRSTNAME LASTNAME or as written on the card. MDES limits the length to 27 characters so ETP may truncate the provided value.</br>This parameter is <font color=\"red\">mandatory</font> for Discover card tokenization.|O|256|\n|cvv|The security code.</br>It can help the issuer in the decision of approving the payment.|O|3 or 4|\n|accountId|The card holder account identifier defined by the Merchant. </br>It can help the issuer in the decision of approving the payment.|O|24|\n|email|The card holder email.</br>This parameter is <font color=\"red\">mandatory</font> for AMEX card tokenization.|O|128|\n\nExample: {\"fpan\":\"5123456789012345\", \"exp\":\"0822\", \"name\":\"JOHN DOE\", \"cvv\":\"123\", \"accountId\":\"johndoe\", \"email\":\"john@doe.com\"}"
    },
    "encryptedUserInfoAsync": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8196,
      "description": "The user and card information encrypted in a JWE structure (see security section in the documentation).\n\nOnce decrypted, the JWE plaintext contains the following JSON object:\n\n|JSON field parameter name|description|MOC|Length|\n|-------|-------|-------|-------|\n|fpan|The funding pan to tokenize.|M|Up to 19|\n|exp|The expiry date in the format MMYY. </br>Optional when VCES feature is activated for VISA|C|4|\n|name|The card holder name in the format FIRSTNAME LASTNAME or as written on the card. MDES limits the length to 27 characters so ETP may truncate the provided value.</br>This parameter is <font color=\"red\">mandatory</font> for Discover card tokenization.|O|256|\n|cvv|The security code.</br>It can help the issuer in the decision of approving the payment.|O|3 or 4|\n|accountId|The card holder account identifier defined by the Merchant. </br>It can help the issuer in the decision of approving the payment.|O|24|\n|email|The card holder email.</br>This parameter is <font color=\"red\">mandatory</font> for AMEX card tokenization.|O|128|\n\nExample: {\"fpan\":\"5123456789012345\", \"exp\":\"0822\", \"name\":\"JOHN DOE\", \"cvv\":\"123\", \"accountId\":\"johndoe\", \"email\":\"john@doe.com\"}"
    },
    "encryptedUserInfoPci": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8196,
      "description": "The user and card information encrypted in a JWE structure (see security section in the documentation).\n\nOnce decrypted, the JWE plaintext contains the following JSON object:\n\n|JSON field parameter name|description|MOC|Length|\n|-------|-------|-------|-------|\n|fpan|The funding pan to tokenize.|M|Up to 19|\n|exp|The expiry date in the format MMYY.|M|4|\n\nExample: {\"fpan\":\"5123456789012345\", \"exp\":\"0822\"}"
    },
    "pushProvisioningPayload": {
      "type": "string",
      "description": "The push provisioning payload provided by the Issuer to the merchant application.\n\nFor Mastercard, it corresponds to the 'pushAccountReceipt'.\n\nFor Visa, it corresponds to the 'encPaymentInstrument'.",
      "minLength": 1,
      "maxLength": 8196
    },
    "encryptedMerchantInfoPushProvisioning": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8196,
      "description": "The user information encrypted in a JWE structure (see security section in the documentation).\n\nOnce decrypted, the JWE plaintext contains the following JSON object:\n\n|JSON field parameter name|description|MOC|Length|\n|-------|-------|-------|-------|\n|accountId|The card holder account identifier defined by the Merchant.|O|24|\n|email|The card holder email.|O|128|\n\nExample: {\"accountId:\"johndoe\", \"email\":\"john@doe.com\"}"
    },
    "encryptedIssuerInfoPushProvisioning": {
      "type": "string",
      "maxLength": 8196,
      "description": "The user information encrypted in a JWE structure (see security section in the documentation).\n\nOnce decrypted, the JWE plaintext contains the following JSON object:\n\n|JSON field parameter name|description|MOC|Length|\n|-------|-------|-------|-------|\n|name|The card holder name in format FIRSTNAME LASTNAME.|O|256|\n|address.line1|The card holder address.|O|256|\n|address.line2|The card holder address.|O|256|\n|address.city|The card holder address.|O|256|\n|address.countrySubdivision|The card holder address.|O|32|\n|address.postalCode|The card holder address.|O|32|\n|address.country|The Card holder country in ISO-3166-1 alpha-2 two-letter country code.|O|2|\n|email|The card holder email.|O|128|\n|phoneNumber|The card holder phone number.|O|128|\n|personalId|A card holder personal identifier that may be required in some regions.|O|128|"
    },
    "sourceSync": {
      "type": "string",
      "maxLength": 32,
      "description": "The card info entry mode.</br>'MANUAL' It can help the issuer in the decision of approving the payment. </br>'TOKEN' is allowed just for Visa, used by token per token feature",
      "enum": [
        "CARD_ON_FILE",
        "MANUAL",
        "TOKEN"
      ]
    },
    "sourceAsync": {
      "type": "string",
      "maxLength": 32,
      "description": "The card info entry mode.</br>'MANUAL' It can help the issuer in the decision of approving the payment.",
      "enum": [
        "CARD_ON_FILE",
        "MANUAL"
      ]
    },
    "language": {
      "type": "string",
      "default": "en",
      "minLength": 2,
      "maxLength": 2,
      "description": "Card holder language in ISO-639-1 two-letter language code.",
      "example": "en"
    },
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "description": "Card holder country in ISO-3166-1 alpha-2 two-letter country code.",
      "example": "US"
    },
    "accountScore": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5,
      "description": "Risk level associated to the account.\nIf provided, the value is forwarded to Mastercard TSP (MDES) or Visa TSP (VTS).\n\n|Value|Description|\n|-------|-------|\n|1| High risk level:<li>No successful authentication within last 30 days.</li><li>Suspect behavior (frequent token delete).</li><li>Fraudulent activity due to illegitimate consumer behavior identified.</li>|\n|2|Risky account:<li>Recent password reset.</li><li>Recent unusual number of failed logins.</li>|\n|3|Neutral account:<li>New account or no known good or bad history.</li>|\n|4|Trusted account:<li>Account tenure of at least 6 months AND positive financial activity each month for at least three months.</li>|\n|5|Highly trusted account:<li>Consumer successfully authenticated within last 30 days.</li><li>Account tenure of at least 12 months AND positive financial activity each month for at least six months.</li>|",
      "example": 5
    },
    "risk": {
      "type": "object",
      "description": "Parameters linked to the risk level evaluated by the Token Requestor.       </br>It can help the issuer in the decision of approving the payment.",
      "properties": {
        "accountScore": {
          "$ref": "#/definitions/accountScore"
        }
      }
    },
    "ipAddress": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "The card holder's device IP address in format IPv4 or IPv6. The parameter is <font color=\"red\">mandatory</font> for AMEX card digitization in case the 'source' is 'MANUAL'. </br>For the other schemes, it is optional and is sent to Visa or Mastercard if format is IPv4.",
      "example": "172.16.254.1"
    },
    "ipAddressSimpleDesc": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "The card holder's device IP address in format IPv4.",
      "example": "172.16.254.1"
    },
    "location": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "The card holder's device location.</br>\n</br>Format requirements: \n* Up to 14 characters for Mastercard and Visa.\n* Latitude is between -90 and 90 degrees.\n* Longitude is between -180 and 180 degrees.\n* For positive value, the sign '+' shall not be provided.\n* Values are provided in decimal degrees with a precision of 2 decimal places.\n* Latitude and longitude are separated by a comma.\n* Spaces are not allowed.\n\nExamples: \n* '20.68,-88.56'\n* '51.53,-133.72'\n* '-10.00,-111.00'",
      "example": "20.68,-88.56"
    },
    "locationMastercardTrx": {
      "type": "string",
      "minLength": 1,
      "maxLength": 9,
      "description": "The card holder's device location.</br>\n</br>Format requirements: \n* Up to 9 characters for Mastercard.\n* Latitude is between -90 and 90 degrees.\n* Longitude is between -180 and 180 degrees.\n* For positive value, the sign '+' shall not be provided.\n* It's formatted as first 8 digits are latitude & longitude hexadecimal encoded degree with two decimal places and last digit is latitude & longitude sector value from one of the values (1:NW 2:NE 3SW 4SE). \n\nExample: \n* -20.45,139.56 is equals to Sector=4, Longitude=3684 (hex), Latitude=07FD (hex) \n* final value: 07FD36844",
      "example": "07FD36844"
    },
    "device": {
      "type": "object",
      "description": "Information about the card holder's device.</br> It can help the issuer in the decision of approving the payment.",
      "properties": {
        "ipAddress": {
          "$ref": "#/definitions/ipAddress"
        },
        "location": {
          "$ref": "#/definitions/location"
        }
      }
    },
    "deviceTransaction": {
      "type": "object",
      "required": [
        "ipAddress"
      ],
      "description": "Required for Visa DAF only. deviceId and ipAddress are mandated. location is optional.",
      "properties": {
        "ipAddress": {
          "$ref": "#/definitions/ipAddressSimpleDesc"
        },
        "location": {
          "$ref": "#/definitions/location"
        }
      }
    },
    "devicePushProvisioning": {
      "type": "object",
      "description": "Information about the card holder's device.",
      "required": [
        "ipAddress"
      ],
      "properties": {
        "ipAddress": {
          "$ref": "#/definitions/ipAddressSimpleDesc"
        },
        "location": {
          "$ref": "#/definitions/location"
        }
      }
    },
    "cardholderEmail": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Card holder email address.",
      "example": "jsmith@emailprovider.com"
    },
    "phoneCountryCode": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4,
      "description": "Country code for phone number",
      "example": "52"
    },
    "phoneNumber": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Phone number without country code.",
      "example": "5512345678"
    },
    "cardholderLine1": {
      "type": "string",
      "minLength": 1,
      "maxLength": 140,
      "description": "Card holder address line 1."
    },
    "cardholderLine2": {
      "type": "string",
      "minLength": 1,
      "maxLength": 140,
      "description": "Card holder address line 2."
    },
    "cardholderCity": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Card holder city.",
      "pattern": "^[A-Za-z0-9-_. ]+$",
      "example": "San Francisco"
    },
    "cardholderSubdivision": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "description": "Card holder state or province code in ISO-3166-1 alpha-2 two-letter format.",
      "example": "NY"
    },
    "cardholderPostalCode": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16,
      "description": "Card holder postal code or zip code.",
      "pattern": "^[A-Za-z0-9]+$",
      "example": "10016"
    },
    "cardholderAddress": {
      "type": "object",
      "description": "Card holder billing address.",
      "required": [
        "line1",
        "city",
        "postalCode",
        "country"
      ],
      "properties": {
        "line1": {
          "$ref": "#/definitions/cardholderLine1"
        },
        "line2": {
          "$ref": "#/definitions/cardholderLine2"
        },
        "city": {
          "$ref": "#/definitions/cardholderCity"
        },
        "postalCode": {
          "$ref": "#/definitions/cardholderPostalCode"
        },
        "country": {
          "$ref": "#/definitions/country"
        },
        "subdivision": {
          "$ref": "#/definitions/cardholderSubdivision"
        }
      }
    },
    "cardholderBillingAddress": {
      "type": "object",
      "description": "Card holder billing address.",
      "required": [
        "line1",
        "city",
        "postalCode",
        "country"
      ],
      "properties": {
        "line1": {
          "$ref": "#/definitions/cardholderLine1"
        },
        "line2": {
          "$ref": "#/definitions/cardholderLine2"
        },
        "city": {
          "$ref": "#/definitions/cardholderCity"
        },
        "postalCode": {
          "$ref": "#/definitions/cardholderPostalCode"
        },
        "country": {
          "$ref": "#/definitions/country"
        },
        "subdivision": {
          "$ref": "#/definitions/cardholderSubdivision"
        }
      }
    },
    "cardholderAddressTAF": {
      "type": "object",
      "description": "Card holder billing address.",
      "required": [
        "line1",
        "city",
        "postalCode",
        "country"
      ],
      "properties": {
        "line1": {
          "$ref": "#/definitions/cardholderLine1"
        },
        "city": {
          "$ref": "#/definitions/cardholderCity"
        },
        "postalCode": {
          "$ref": "#/definitions/cardholderPostalCode"
        },
        "country": {
          "$ref": "#/definitions/country"
        },
        "subdivision": {
          "$ref": "#/definitions/cardholderSubdivision"
        }
      }
    },
    "cardholderTransaction": {
      "type": "object",
      "description": "Required for Visa DAF only.Information about the card holder.\n",
      "required": [
        "email"
      ],
      "properties": {
        "email": {
          "$ref": "#/definitions/cardholderEmail"
        },
        "billingAddress": {
          "$ref": "#/definitions/cardholderBillingAddress"
        }
      }
    },
    "color": {
      "type": "string",
      "maxLength": 32,
      "description": "Deprecated.",
      "enum": [
        "GREEN"
      ],
      "example": "GREEN"
    },
    "tokenId": {
      "type": "string",
      "description": "The token identifier.",
      "pattern": "^[a-zA-Z0-9_-]+$",
      "minLength": 1,
      "maxLength": 128
    },
    "vProvisionedTokenId": {
      "type": "string",
      "description": "Specific to Visa. Another token identifier that shall be used only with Visa Cloud Token Framework.",
      "minLength": 1,
      "maxLength": 36
    },
    "deviceId": {
      "type": "string",
      "description": "The unique device identifier. Visa deviceId must have 24 characters at maximum.",
      "minLength": 1,
      "maxLength": 36,
      "example": "1234567890"
    },
    "deviceIdMdes": {
      "type": "string",
      "description": "The unique device identifier.",
      "minLength": 1,
      "maxLength": 36,
      "example": "1234567890"
    },
    "tokenLastDigits": {
      "type": "string",
      "maxLength": 5,
      "description": "The token last digits.",
      "example": "5589"
    },
    "tokenExpiryDate": {
      "type": "string",
      "maxLength": 4,
      "description": "The token expiry date in format MMYY. This information can be missing. It is intended for display only at this step.<br>Rely on token expiry date in create transaction response for storage.",
      "example": "1022"
    },
    "cardBin": {
      "type": "string",
      "description": "The card bin returned by the scheme, just available for VISA and Mastercard SCOF.",
      "minLength": 6,
      "maxLength": 8,
      "example": "453421"
    },
    "cardLastDigits": {
      "type": "string",
      "maxLength": 5,
      "description": "The card last digits.",
      "example": "2366"
    },
    "cardExpiryDate": {
      "type": "string",
      "maxLength": 4,
      "description": "The card expiry date in format MMYY.",
      "example": "0420"
    },
    "issuerName": {
      "type": "string",
      "maxLength": 128,
      "description": "The card issuer name.",
      "example": "Bank Name"
    },
    "supportVisaCTF": {
      "type": "boolean",
      "description": "Indicate if Visa Cloud Token Framework is available.",
      "example": true
    },
    "supportMastercardTAF": {
      "type": "boolean",
      "description": "Indicate if Mastercard Token Authentication Framework is available.",
      "example": true
    },
    "supportMastercardLiabilityShift": {
      "type": "boolean",
      "description": "For Mastercard indicates whether the Multi Factor Authentication method & account PAN are eligible for Fraud Liability Protection",
      "example": true
    },
    "cardDescription": {
      "type": "string",
      "maxLength": 256,
      "description": "The card description.",
      "example": "Card description (premium, basic, etc.)."
    },
    "cardType": {
      "type": "string",
      "description": "The card type.",
      "maxLength": 32,
      "enum": [
        "CREDIT",
        "DEBIT",
        "PREPAID",
        "UNKNOWN"
      ],
      "example": "DEBIT"
    },
    "scheme": {
      "type": "string",
      "description": "The card primary scheme.",
      "maxLength": 32,
      "enum": [
        "MASTERCARD",
        "VISA",
        "AMEX",
        "DISCOVER",
        "ELO",
        "UNKNOWN"
      ],
      "example": "MASTERCARD"
    },
    "schemeMigration": {
      "type": "string",
      "description": "The card primary scheme.",
      "maxLength": 32,
      "enum": [
        "MASTERCARD"
      ],
      "example": "MASTERCARD"
    },
    "schemePushProvisioning": {
      "type": "string",
      "description": "The card primary scheme.",
      "maxLength": 32,
      "enum": [
        "MASTERCARD",
        "VISA"
      ],
      "example": "MASTERCARD"
    },
    "deviceBindings": {
      "type": "array",
      "description": "The list of device identifiers bound to the token.",
      "items": {
        "$ref": "#/definitions/deviceId"
      },
      "uniqueItems": true
    },
    "termsAndConditionsUrl": {
      "type": "string",
      "maxLength": 512,
      "description": "Card issuer terms and conditions URL.",
      "example": "https://bank.com/tncs.html"
    },
    "privacyPolicyUrl": {
      "type": "string",
      "maxLength": 512,
      "description": "Card issuer privacy policy URL.",
      "example": "https://bank.com/privacyPolicy.html"
    },
    "cardProduct": {
      "type": "object",
      "description": "Information about the card product.",
      "required": [
        "cardType",
        "scheme"
      ],
      "properties": {
        "issuerName": {
          "$ref": "#/definitions/issuerName"
        },
        "cardType": {
          "$ref": "#/definitions/cardType"
        },
        "scheme": {
          "$ref": "#/definitions/scheme"
        },
        "supportVisaCTF": {
          "$ref": "#/definitions/supportVisaCTF"
        },
        "supportMastercardTAF": {
          "$ref": "#/definitions/supportMastercardTAF"
        },
        "supportMastercardLiabilityShift": {
          "$ref": "#/definitions/supportMastercardLiabilityShift"
        },
        "cardDescription": {
          "$ref": "#/definitions/cardDescription"
        },
        "cardArts": {
          "$ref": "#/definitions/cardArts"
        },
        "termsAndConditionsUrl": {
          "$ref": "#/definitions/termsAndConditionsUrl"
        },
        "privacyPolicyUrl": {
          "$ref": "#/definitions/privacyPolicyUrl"
        }
      }
    },
    "cardProductPush": {
      "type": "object",
      "description": "Information about the card product.",
      "required": [
        "cardType",
        "scheme"
      ],
      "properties": {
        "issuerName": {
          "$ref": "#/definitions/issuerName"
        },
        "cardType": {
          "$ref": "#/definitions/cardType"
        },
        "scheme": {
          "$ref": "#/definitions/scheme"
        },
        "supportVisaCTF": {
          "$ref": "#/definitions/supportVisaCTF"
        },
        "cardDescription": {
          "$ref": "#/definitions/cardDescription"
        },
        "cardArts": {
          "$ref": "#/definitions/cardArts"
        },
        "termsAndConditionsUrl": {
          "$ref": "#/definitions/termsAndConditionsUrl"
        },
        "privacyPolicyUrl": {
          "$ref": "#/definitions/privacyPolicyUrl"
        }
      }
    },
    "cardProductMigration": {
      "type": "object",
      "description": "Information about the card product.",
      "required": [
        "cardType"
      ],
      "properties": {
        "issuerName": {
          "$ref": "#/definitions/issuerName"
        },
        "cardType": {
          "$ref": "#/definitions/cardType"
        },
        "scheme": {
          "$ref": "#/definitions/schemeMigration"
        },
        "cardDescription": {
          "$ref": "#/definitions/cardDescription"
        },
        "cardArts": {
          "$ref": "#/definitions/cardArtsMigration"
        }
      }
    },
    "cardArtsMigration": {
      "type": "object",
      "properties": {
        "foregroundColor": {
          "type": "string",
          "maxLength": 6,
          "description": "Color used for the text displayed on the card (last digits, expiry date). Hexadecimal RGB color format.",
          "example": "7FB8C8"
        },
        "cardImageUrl": {
          "type": "string",
          "maxLength": 512,
          "description": "HTTP location of the card image. If present, no other identifier is provided and getAsset operation is not needed.",
          "example": "https://stage.assets.mastercard.com/card-art/combined-image-asset/MyBank-mastercard.png"
        }
      }
    },
    "cardArts": {
      "type": "object",
      "properties": {
        "foregroundColor": {
          "type": "string",
          "maxLength": 6,
          "description": "Color used for the text displayed on the card (last digits, expiry date). Hexadecimal RGB color format.",
          "example": "7FB8C8"
        },
        "backgroundColor": {
          "type": "string",
          "maxLength": 6,
          "description": "Color used for card background. Hexadecimal RGB color format.",
          "example": "7FB8C9"
        },
        "cardBackgroundImageId": {
          "type": "string",
          "maxLength": 128,
          "description": "Asset identifier of the card background image. It doesn't contain the issuer/brand/co-brand logo.",
          "example": "2ee5c858-a6a4-43f1-a503-ffde6c41fad9"
        },
        "issuerLogoId": {
          "type": "string",
          "maxLength": 128,
          "description": "Asset identifier of the issuer logo.",
          "example": "1fd8594c-5284-4aeb-bb73-6129c1d6cdb2"
        },
        "brandLogoId": {
          "type": "string",
          "maxLength": 128,
          "description": "Asset identifier of the primary brand logo.",
          "example": "623046b7-4a8f-4550-bca8-45b38c9498a3"
        },
        "cobrandLogoId": {
          "type": "string",
          "maxLength": 128,
          "description": "Asset identifier of the cobrand logo.",
          "example": "5548eb95-3aee-4bb8-9abf-38a7ab2c1cf3"
        },
        "completeCardImageId": {
          "type": "string",
          "maxLength": 128,
          "description": "Asset identifier of the complete card image. Shall be preferred over the other assets when present.",
          "example": "15ac4371-dcb9-4310-867e-b12338970276"
        },
        "cardIconId": {
          "type": "string",
          "maxLength": 128,
          "description": "Asset identifier of the card icon.",
          "example": "14e3044fa-949e-4900-800f-88b8fc6cc3d5"
        },
        "cardImageUrl": {
          "type": "string",
          "maxLength": 512,
          "description": "HTTP location of the card image. If present, no other identifier is provided and getAsset operation is not needed.",
          "example": "https://stage.assets.mastercard.com/card-art/combined-image-asset/MyBank-mastercard.png"
        }
      }
    },
    "asset": {
      "type": "object",
      "required": [
        "mediaType",
        "encodedData"
      ],
      "properties": {
        "mediaType": {
          "type": "string",
          "maxLength": 64,
          "description": "The media type of the asset.",
          "enum": [
            "application/pdf",
            "image/pdf",
            "image/png",
            "image/jpeg",
            "image/svg",
            "text/plain",
            "text/html"
          ]
        },
        "encodedData": {
          "type": "string",
          "description": "The asset encoded in base64."
        },
        "height": {
          "type": "string",
          "maxLength": 10,
          "description": "The asset height specified in pixels."
        },
        "width": {
          "type": "string",
          "maxLength": 10,
          "description": "The asset width specified in pixels."
        }
      }
    },
    "transactionId": {
      "type": "string",
      "description": "The unique transaction identifier.",
      "minLength": 1,
      "maxLength": 128
    },
    "transactionType": {
      "type": "string",
      "maxLength": 64,
      "description": "",
      "enum": [
        "SINGLE",
        "SPLIT",
        "RECURRING"
      ],
      "example": "SINGLE"
    },
    "visaSignedPayload": {
      "type": "string",
      "description": "Required only for Visa CTF and Visa CTF with DAF. Set with the signature (JWT) generated by Thales ETP SDK.",
      "minLength": 1,
      "maxLength": 4096
    },
    "visaSignedPayloadTrxV2": {
      "type": "string",
      "description": "Set with the signature (JWT) generated by Thales ETP SDK.",
      "minLength": 1,
      "maxLength": 4096
    },
    "amount": {
      "type": "string",
      "description": "Transaction amount or maximum amount authorized. Shall be positive value.  Digits after the '.' are required in accordance with the scheme and currency code.",
      "minLength": 1,
      "maxLength": 13,
      "pattern": "^(([1-9]{1}(\\d+)?)(\\.\\d+)?)|^([0]\\.(\\d+)?([1-9]{1})(\\d+)?)$",
      "example": "15.55"
    },
    "currencyCode": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3,
      "description": "ISO 4217 alphabetic currency code on 3 characters.",
      "example": "EUR"
    },
    "transactionData": {
      "type": "object",
      "description": "Required only for Visa DAF & ELO. When transactionData is present, both amount and currencyCode must be specified.",
      "required": [
        "amount",
        "currencyCode"
      ],
      "properties": {
        "amount": {
          "$ref": "#/definitions/amount"
        },
        "currencyCode": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3,
          "description": "ISO 4217 alphabetic currency code on 3 characters.\nELO ignores currencyCode.",
          "example": "EUR"
        }
      }
    },
    "transactionDataSrci": {
      "type": "object",
      "description": "Transaction data for Click to pay.",
      "required": [
        "amount",
        "currencyCode"
      ],
      "properties": {
        "amount": {
          "$ref": "#/definitions/amount"
        },
        "currencyCode": {
          "$ref": "#/definitions/currencyCode"
        }
      }
    },
    "confirmationData": {
      "type": "object",
      "description": "Confirmation data for transaction",
      "required": [
        "eventType",
        "eventStatus",
        "status",
        "timestamp",
        "networkTransactionIdentifier"
      ],
      "properties": {
        "eventType": {
          "type": "string",
          "description": "Event type associated with the update.",
          "maxLength": 12,
          "enum": [
            "AUTHORISE",
            "CAPTURE",
            "REFUND",
            "CANCEL",
            "FRAUD",
            "CHARGEBACK",
            "OTHER"
          ],
          "example": "CAPTURE"
        },
        "eventStatus": {
          "type": "string",
          "description": "Event type associated with the order.",
          "maxLength": 20,
          "enum": [
            "CREATED",
            "CONFIRMED",
            "CANCELLED",
            "FRAUD_CANCELLED",
            "OTHERS"
          ],
          "example": "CONFIRMED"
        },
        "status": {
          "type": "string",
          "description": "Status of the event as provided by the SRC Initiator in the Confirmation message.",
          "maxLength": 10,
          "enum": [
            "SUCCESS",
            "FAILURE",
            "OTHER"
          ],
          "example": "SUCCESS"
        },
        "reason": {
          "type": "string",
          "description": "Description of the reason for the event associated with the order.",
          "maxLength": 64,
          "example": "Order Successfully Created"
        },
        "timestamp": {
          "$ref": "#/definitions/confirmationTimestamp"
        },
        "networkAuthorizationCode": {
          "type": "string",
          "description": "Authorisation code associated with an approved transaction.",
          "maxLength": 25,
          "example": "2020404"
        },
        "networkTransactionIdentifier": {
          "type": "string",
          "description": "Unique authorisation related tracing value assigned by a Payment Network and provided in an authorisation response.",
          "minLength": 1,
          "maxLength": 25,
          "example": "mastercard"
        }
      }
    },
    "encryptedPaymentCredentials": {
      "type": "string",
      "maxLength": 8196,
      "description": "The payment credentials data encrypted in a JWE structure (see security section in the documentation).\n\nOnce decrypted, the JWE plaintext contains the following JSON object:\n\n|JSON field parameter name|description|MOC|Length|\n|-------|-------|-------|-------|\n|dpan|The token PAN value provided for network token.|C|Up to 19|\n|exp|The token expiry date in the format MMYY provided for network token.|C|4|\n|cryptogram|The payment cryptogram to use with the token for a payment. Presence of the cryptogram depends on the transaction type and the scheme.|C|Up to 256|\n|fpan|The funding card PAN value. Only provided for PCI token.|C|Up to 19|\n|fpanExp|The funding card expiry date in the format MMYY. Only provided for PCI token.</li>|C|4|\n\nExample: {\"dpan:\"9580981500100002\", \"exp\":\"1222\", \"cryptogram\": \"45f8grzty7f4f5gs5s2c\"}"
    },
    "cryptogramExpiryDate": {
      "type": "string",
      "maxLength": 64,
      "description": "Cryptogram expiry date in ISO 8601. Provided for Visa only.",
      "example": "2021-09-27T17:06:09.000Z"
    },
    "eci": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "description": "The Electronic Commerce Indicator. Payment System-specific value to indicate the results of the attempt to authenticate the cardholder. Provided only for Visa & Mastercard SCOF.",
      "example": "07"
    },
    "isDAF": {
      "type": "boolean",
      "description": "If present and set to 'true', VISA confirms it is a Digital Authentication Framework transaction. \nCan be present only if the transaction type is 'VISA_DAF'.",
      "example": true
    },
    "par": {
      "type": "string",
      "maxLength": 29,
      "description": "Payment Account Reference returned by the Scheme TSP.",
      "example": "5001a9f027e5629d11e3949a0800a"
    },
    "tokenState": {
      "type": "string",
      "maxLength": 64,
      "description": "Token state.</br>PCI token state can only be 'ACTIVE' or 'DELETED'.",
      "enum": [
        "ACTIVE",
        "SUSPENDED",
        "DELETED",
        "PENDING"
      ],
      "example": "ACTIVE"
    },
    "migratedTokenState": {
      "type": "string",
      "maxLength": 64,
      "description": "Token state.",
      "enum": [
        "ACTIVE",
        "SUSPENDED",
        "PENDING"
      ],
      "example": "ACTIVE"
    },
    "returnUriType": {
      "type": "string",
      "maxLength": 32,
      "description": "Issuer application/website URI type depending on the device. This parameter could be returned only for VISA.",
      "enum": [
        "ANDROID",
        "IOS",
        "WEB"
      ],
      "example": "WEB"
    },
    "returnUri": {
      "type": "string",
      "maxLength": 512,
      "description": "Issuer application/website URI. This parameter could be returned only for VISA.",
      "example": "https://bank.com/pushprovisioning.html"
    },
    "merchantName": {
      "type": "string",
      "description": "An unique merchant name that is end user friendly.",
      "minLength": 1,
      "maxLength": 60,
      "pattern": "^[A-Za-z0-9-_. ]+$",
      "example": "My Merchant"
    },
    "supportedCardType": {
      "type": "string",
      "maxLength": 6,
      "description": "Indication about the card type supported by the merchant.",
      "enum": [
        "DEBIT",
        "CREDIT",
        "BOTH"
      ],
      "example": "CREDIT"
    },
    "dunsNumber": {
      "type": "string",
      "minLength": 9,
      "maxLength": 9,
      "description": "Dun and Bradestreet number.",
      "example": "568918742"
    },
    "tokenRequestorServiceTypes": {
      "type": "array",
      "description": "The list of token requestor service types.",
      "maxItems": 2,
      "minItems": 1,
      "example": [
        "PURCHASE",
        "VISA_DIRECT"
      ],
      "items": {
        "type": "string",
        "maxLength": 20,
        "enum": [
          "PURCHASE",
          "VISA_DIRECT"
        ]
      },
      "uniqueItems": true
    },
    "merchantLegalName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60,
      "description": "Legal name of the merchant.",
      "pattern": "^[A-Za-z0-9-_. ]+$"
    },
    "websiteUrl": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Merchant website URL.",
      "pattern": "^[A-Za-z0-9-_.:/]+$",
      "example": "http://www.mymerchant.com"
    },
    "primaryContactEmail": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Email address of the merchant primary contact.",
      "pattern": "^[A-Za-z0-9-_.@]+$",
      "example": "jsmith@mymerchant.com"
    },
    "merchantCity": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "City of the merchant address.",
      "pattern": "^[A-Za-z0-9-_. ]+$",
      "example": "San Francisco"
    },
    "merchantCountry": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "description": "Merchant country in ISO-3166-1 alpha-2 two-letter country code.",
      "example": "US"
    },
    "allowCardUpdateNotification": {
      "type": "boolean",
      "description": "Visa charges to the acquirers the update of the token when a card is renewed. The acquirers may reflect the service fees to the customer. allowCardUpdateNotification = true enables the service.<br>\nWhen allowCardUpdateNotification = false the token is no more valid after the card renewal. No Token Update notification is sent.",
      "example": true,
      "title": ""
    },
    "businessIdentificationType": {
      "type": "string",
      "maxLength": 12,
      "description": "One of the below configuration must be provided: <br>- businessIdentificationType and businessIdentificationValue or<br> - acquirerId and acquirerMerchantId.<br><br>Merchant business identification type.\n\n|BusinessIdentificationType|Description|Format|\n|-------|-------|-------|\n|ABN|Australian business number|11 numeric digits|\n|ACN|Australian company number|9 numeric digits|\n|BID|VISA business identification number; all countries. You must contact your Visa representative before using BID |8 numeric digits|\n|BIN|Kazakhstan business identification number|12 numeric digits|\n|BIR|Philippines certificate of registration|12 numeric digits; hyphen-separated|\n|BN|Canadian business number|9 numeric digits|\n|BRN|South Korea business registration number|10 numeric digits; hyphen-separated|\n|BRNO|Malaysia only.|Up to 10 numeric digits followed by a hyphen and a single character or 12 numeric digits|\n|CL|Commercial License Number Qatar|4-6 numeric digits|\n|CLN|Company License Number Kuwait|5-7 numeric digits|\n|CORPORATE_NUMBER|Japan corporate number|13 numeric digits; leading digit is a non-zero check digit for the following 12 digits|\n|CNPJ|Brazil only.|14 alphanumeric characters, identified by n in the example, and punctuation characters (period, slash, and hyphen)|\n|CR|Company Registration Number Saudi Arabia.|10-12 numeric digits|\n|CUIT|Argentina only.|11 numeric digits|\n|EDRPOU|Ukraine. \tUkrainian corporations|8 numeric digits and 10 numeric digits for Ukrainian individual entrepeneurs|\n|EIN|US Federal tax ID (US only).|9 numeric digits|\n|HKBR|Hong Kong only.|11 numeric digits and a hyphen|\n|INI|Andorran General Indirect Tax.|8 alphanumeric characters; the first and last characters must be alphabetic.|\n|NATIONAL_ID|Dominican Republic (DO). Cedula de Identidad (Merchant Owner ID)|DO + 11 digits| \n|NIB|Indonesia business identification number|13 numeric digits|\n|NID|South Africa national identification number|13 numeric digits|\n|NZBN|New Zealand business number.|13 numeric digits|\n|PAN|Indian business identification number|10 alphanumeric characters|\n|PAN|Belarus payer account number|9 numeric digits|\n|RFC|Mexico only.|12 alphanumeric characters for corporations and 13 alphanumeric characters for individuals|\n|RNC|Dominican Republic (DO). Registro Nacional de Contribuyentes (National Contributors Number)|DO + 9 digits|\n|RUC|Peru only.|11 numeric digits|\n|RUT|Chile and Colombia only.|8 numeric digits followed by a hyphen and one verification character or digit for Chile; 10 numeric digits for Columbia|\n|SIN|Canadian social insurance number|9 numeric digits|\n|SSN|US social security number (US only)|9 numeric digits|\n|TC|Vietnam tax code|10 or 13 numeric digits|\n|UEN|Singapore only|9 or 10 alphanumeric characters|\n|USCI|China united social credit code|18 alphanumeric characters|\n|VAT|Austria, Belgium, Bulgaria, Croatia, Czech Republic, Denmark, Estonia, Finland, Faroe Islands, France, Germany, Greece, Hungary, Iceland, Ireland, Isle of Man, Israel, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Republic of Cyprus, Romania, Saudi Arabia, Slovak Republic, Slovenia, South Africa, Spain, Sweden, Switzerland, Thailand, Turkey, Ukraine, United Arab Emirates, United Kingdom|<li>Austria AT + 9 characters in which the first character is always a 'U'<li>Belgium BE + 10 characters. Prefix with zero '0' if the customer provides a 9 digit VAT number<li>Bulgaria BG + 9 or 10 characters<li>Croatia HR + 11 characters<li>Cyprus CY + 9 characters<li>Czech Republic CZ + 8, 9 or 10 characters.<li>Denmark DK + 8 characters<li>Estonia EE + 9 characters<li>Finland FI + 8 characters<li>Faroe Islands FO + 6 characters<li>France FR + 11 characters<li>Germany DE + 9 characters<li>Greece EL + 9 characters<li>Hungary HU + 8 characters<li>Iceland IS + 5 or 6 characters<li>Ireland IE + 8 numeric or alphabetic characters<li>Israel IL + 9 numeric digits<li>Isle of Man GB + 9 or 12 digits; first 2 digits must be 00<li>Italy IT + 11 characters<li>Latvia LV + 11 characters<li>Lithuania LT + 9 or 12 characters<li>Luxembourg LU + 8 characters<li>Malta MT + 8 characters.<li>Netherlands NL + 12 characters of which the tenth character is always B.<li>Norway NO + 9 digits and the letters + MVA<li>Poland PL + 10 alphanumeric characters<li>Portugal PT + 9 characters<li>Republic of Cyprus CY + 9 characters. The last character must always be a letter.<li>Romania RO + 2 to 10 characters.<li>Saudi Arabia 15 numeric digits<li>Slovak Republic SK + 10 characters<li>Slovenia SI + 8 characters<li>South Africa 10 or 11 digits<li>Spain ES + 9 numeric digits<li>Sweden SE + 12 digits<li>Switzerland CH + 9 digits + MWST (German part), TVA(French part), or IVA(Italian part)<li>Thailand 13 numeric digits<li>Turkey TR + 10 characters<li>Ukraine 9 or 12 digits<li>United Arab Emirates 15 digits<li>United Kingdom GB + 9 digits|",
      "enum": [
        "ABN",
        "ACN",
        "BID",
        "BIN",
        "BIR",
        "BN",
        "BRN",
        "BRNO",
        "CL",
        "CLN",
        "CORPORATE_NUMBER",
        "CNPJ",
        "CR",
        "CUIT",
        "EDRPOU",
        "EIN",
        "HKBR",
        "INI",
        "NATIONAL_ID",
        "NIB",
        "NID",
        "NZBN",
        "PAN",
        "RFC",
        "RNC",
        "RUC",
        "RUT",
        "SIN",
        "SSN",
        "TC",
        "UEN",
        "USCI",
        "VAT"
      ],
      "example": "BID"
    },
    "businessIdentificationValue": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "One of the below configuration must be provided: <br>- businessIdentificationType and businessIdentificationValue or<br> - acquirerId and acquirerMerchantId. <br><br>The format of merchant business identification value depends on the business identification type.",
      "example": "12345678"
    },
    "acquirerId": {
      "type": "string",
      "pattern": "^([0-9]*$)",
      "description": "One of the below configuration must be provided: <br>- businessIdentificationType and businessIdentificationValue or<br> - acquirerId and acquirerMerchantId.<br><br>Numeric acquirer identifier.",
      "minLength": 1,
      "maxLength": 11
    },
    "acquirerIdMastercard": {
      "type": "string",
      "pattern": "^([0-9a-zA-Z]*$)",
      "description": "Acquiring institution identification code",
      "minLength": 1,
      "maxLength": 11
    },
    "locale": {
      "type": "string",
      "description": "Locale identifier following BCP 47 (e.g., en-US, es-MX)",
      "example": "en-US",
      "minLength": 1,
      "maxLength": 10
    },
    "acquirerMerchantId": {
      "type": "string",
      "description": "One of the below configuration must be provided: <br>- businessIdentificationType and businessIdentificationValue or<br> - acquirerId and acquirerMerchantId.<br><br> Acquirer merchant identifier.",
      "minLength": 1,
      "maxLength": 25
    },
    "acquirerBin":{
      "type": "string",
      "pattern": "^([0-9]*$)",
      "minLength": 1,
      "maxLength": 6,
      "description": "Acquiring institution BIN",
      "example": 545301
    },
    "firstAuthenticationFactor": {
      "type": "string",
      "description": "First factor used to authenticate the card holder.",
      "enum": [
        "LOGIN_PASSWORD",
        "DEVICE_UNLOCK",
        "OTP_SMS",
        "OTP_EMAIL",
        "FIDO_BIOMETRIC",
        "FIDO_PASSCODE",
        "FIDO_NO_AUTH",
        "VISA_CTF_BINDING"
      ]
    },
    "secondAuthenticationFactor": {
      "type": "string",
      "description": "Second factor used to authenticate the card holder as specified by Visa.",
      "enum": [
        "LOGIN_PASSWORD",
        "DEVICE_UNLOCK",
        "OTP_SMS",
        "OTP_EMAIL",
        "FIDO_BIOMETRIC",
        "FIDO_PASSCODE",
        "FIDO_NO_AUTH",
        "VISA_CTF_BINDING"
      ]
    },
    "authenticationTransaction": {
      "type": "object",
      "description": "Required only for Visa DAF.",
      "required": [
        "firstFactor"
      ],
      "properties": {
        "firstFactor": {
          "$ref": "#/definitions/firstAuthenticationFactor"
        },
        "secondFactor": {
          "$ref": "#/definitions/secondAuthenticationFactor"
        }
      }
    },
    "creationTimestamp": {
      "type": "string",
      "maxLength": 64,
      "description": "Token creation timestamp compliant with ISO 8601.",
      "example": "2017-11-10T09:08:24.479Z"
    },
    "lastUpdateTimestamp": {
      "type": "string",
      "maxLength": 64,
      "description": "Token last update timestamp compliant with ISO 8601. Provided only in case the token was updated after its creation.",
      "example": "2017-11-13T11:012:41.165Z"
    },
    "timestamp": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "A timestamp compliant with ISO 8601.",
      "example": "2024-08-01T09:12:09.128Z"
    },
    "supportedCardBrands": {
      "type": "array",
      "description": "Card networks that are supported for DPA registration.",
      "maxItems": 4,
      "minItems": 1,
      "example": [
        "MASTERCARD",
        "VISA",
        "DISCOVER",
        "AMEX"
      ],
      "items": {
        "type": "string",
        "maxLength": 20,
        "enum": [
          "MASTERCARD",
          "VISA",
          "DISCOVER",
          "AMEX"
        ]
      }
    },
    "confirmationTimestamp": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "Merchant confirmation timestamp when the transaction was completed, compliant with ISO 8601.",
      "example": "2017-11-10T09:08:24.479Z"
    },
    "errorDetails": {
      "type": "string",
      "maxLength": 256,
      "description": "Additional information about the error. This optional parameter has no specific format as it depends on the different TSP API. It is sent for logging and troubleshooting purpose."
    },
    "schemeCorrelationId": {
      "type": "string",
      "maxLength": 128,
      "description": "Identifier used by the schemes for additional support."
    },
    "mcServiceId": {
      "type": "string",
      "maxLength": 256,
      "description": "Reserved for future use.</br>A unique identifier assigned by Mastercard for which tokens are created uniquely for the entity onboarded."
    },
    "merchantCategory": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256,
      "description": "Required only for Payment Facilitator model. Can define a type of merchants group. merchantCategory value is forwarded to the issuers. Thales recommends to set it to the generic value 'payfac'. "
    },
    "transactionTypeV2": {
      "type": "string",
      "maxLength": 64,
      "description": "The request content depends on the transaction type.",
      "enum": [
        "EMV_TOKEN",
        "PCI_TOKEN",
        "VISA_DAF",
        "MASTERCARD_TAF_IAAV",
        "MASTERCARD_TAF_FIDO",
        "MASTERCARD_THALES_AUTHENTICATOR",
        "MASTERCARD_TAS"
      ],
      "example": "EMV_TOKEN"
    },
    "isRecurring": {
      "type": "boolean",
      "description": "Indicate if the payment is recurring (like a monthly subscription)",
      "example": false
    },
    "bindingType": {
      "type": "string",
      "maxLength": 64,
      "description": "The request content depends on the binding type.",
      "enum": [
        "MASTERCARD_TAF_FIDO_IAAV"
      ],
      "example": "MASTERCARD_TAF_FIDO_IAAV"
    },
    "mcCertifiedSolutionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Unique identifier of the Mastercard TAF certified MFA method.",
      "example": "43SA5"
    },
    "credentialId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "UUID identifying the FIDO authenticator.",
      "example": "bf8c5b2b-28ce-48d8-acbc-cc82f51478c6"
    },
    "fidoRelyingParty": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "The FIDO relying party.",
      "example": "relyingparty.com"
    },
    "fidoUserId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "The FIDO user identifier.",
      "example": "ca7ac6fe-1eec-11ed-861d-0242ac120002"
    },
    "isSpcEnabled": {
      "type": "boolean",
      "description": "Indicates if Secure Payment Confirmation is enabled.",
      "example": false
    },
    "fidoAuthenticationResponse": {
      "type": "object",
      "description": "A JSON FIDO public key as per https://www.w3.org/TR/webauthn-3/#iface-pkcredential.\n<br>Also known as FIDO assertion.\n<br>Required if fidoRegistrationResponse is not provided.<br><br>\nExample:\n<br>{<br>\n\"type\": \"public-key\",<br>\n\"id\": \"h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE\",<br>\n\"rawId\": \"h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE\",<br>\n\"authenticatorAttachment\": \"platform\",<br>\n\"response\": {<br>\n\"clientDataJSON\": \"SZY...In0\",<br>\n\"authenticatorData\": \"o2Nm...AAA\",<br>\n\"signature\": \"MEU...VQQ\",<br>\n\"userHandle\": \"ca7...002\"\n\"transports\": [<br>\n    \"internal\"<br>\n  ]<br>\n},<br>\n\"clientExtensionResults\": {}<br>\n}<br>"
    },
    "fidoRegistrationResponse": {
      "type": "object",
      "description": "A JSON FIDO public key as per https://www.w3.org/TR/webauthn-3/#iface-pkcredential.\n<br>Also known as FIDO attestation.\n<br>Required if fidoAuthenticationResponse is not provided \nExample:\n<br>{<br>\n\"type\": \"public-key\",<br>\n\"id\": \"h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE\",<br>\n\"rawId\": \"h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE\",<br>\n\"authenticatorAttachment\": \"platform\",<br>\n\"response\": {<br>\n\"clientDataJSON\": \"eyJ0...In0\",<br>\n\"attestationObject\": \"o2Nm...0inQ\",<br>\n\"transports\": [<br>\n    \"internal\"<br>\n  ]<br>\n},<br>\n\"clientExtensionResults\": {}<br>\n}<br>"
    },
    "fidoPublicKeyCredential": {
      "type": "object",
      "description": "A JSON FIDO public key as per https://www.w3.org/TR/webauthn-3/#iface-pkcredential.\n<br>Also known as FIDO assertion.<br><br>\nExample:\n<br>{<br>\n\"type\": \"public-key\",<br>\n\"id\": \"h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE\",<br>\n\"rawId\": \"h0mC9xtLjggpcvxq4YXepkemUt2oNL5F_-NPpCCcHNE\",<br>\n\"authenticatorAttachment\": \"platform\",<br>\n\"response\": {<br>\n\"clientDataJSON\": \"SZY...In0\",<br>\n\"authenticatorData\": \"o2Nm...AAA\",<br>\n\"signature\": \"MEU...VQQ\",<br>\n\"userHandle\": \"ca7...002\"\n\"transports\": [<br>\n    \"internal\"<br>\n  ]<br>\n},<br>\n\"clientExtensionResults\": {}<br>\n}<br>"
    },
    "mcTransactionAssertion": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8196,
      "description": "The transaction assertion JWT as per Mastercard specifications.",
      "example": "Mastercard assertionJWT"
    },
    "mcBindingAssertion": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8196,
      "description": "The binding assertion JWT as per Mastercard specifications.",
      "example": "Mastercard bindingAssertionJWT"
    },
    "merchantCategoryCode": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4,
      "description": "The merchant category code.",
      "example": "1234"
    },
    "mcIaav": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8196,
      "description": "The issuer IAAV as per Mastercard specifications, so JSON encoded in Base64.",
      "example": "Base64-encoded-string"
    },
    "mcIaavTransactionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "The transaction identifier as present in the issuer IAAV.",
      "example": "abd3babb-f6af-424d-81f6-499a313479c5"
    },
    "mcCallbackUri":{
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "Updated merchant callback url provided by mastercard during authenticate step, the object contains the authenticationSessionId, flowId and srcCorrelationId",
      "example": "https://merchantUrl.com"
    },
    "EMV_TOKEN": {
      "type": "object",
      "description": "List the parameters that are accepted to get a cryptogram for a transaction with the token.",
      "required": [
        "isRecurring"
      ],
      "properties": {
        "isRecurring": {
          "$ref": "#/definitions/isRecurring"
        },
        "amount": {
          "type": "string",
          "description": "Transaction amount or maximum amount authorized. Shall be positive value. Digits after the '.' are required in accordance with the currency code.\n<br>If amount is defined, currencyCode must be present also.\n<br>Mandatory for ELO.",
          "minLength": 1,
          "maxLength": 13,
          "pattern": "^(([1-9]{1}(\\d+)?)(\\.\\d+)?)|^([0]\\.(\\d+)?([1-9]{1})(\\d+)?)$",
          "example": "15.55"
        },
        "currencyCode": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3,
          "description": "ISO 4217 alphabetic currency code on 3 characters.\nIf currencyCode is defined, amount must be present also.\n<br>Mandatory for ELO.",
          "example": "EUR"
        }
      }
    },
    "VISA_DAF": {
      "type": "object",
      "description": "List the parameters that are required to get a Visa DAF compliant cryptogram.",
      "required": [
        "firstFactor",
        "visaSignedPayload",
        "amount",
        "currencyCode",
        "ipAddress",
        "email"
      ],
      "properties": {
        "firstFactor": {
          "$ref": "#/definitions/firstAuthenticationFactor"
        },
        "secondFactor": {
          "$ref": "#/definitions/secondAuthenticationFactor"
        },
        "visaSignedPayload": {
          "$ref": "#/definitions/visaSignedPayloadTrxV2"
        },
        "amount": {
          "$ref": "#/definitions/amount"
        },
        "currencyCode": {
          "$ref": "#/definitions/currencyCode"
        },
        "ipAddress": {
          "$ref": "#/definitions/ipAddressSimpleDesc"
        },
        "location": {
          "$ref": "#/definitions/location"
        },
        "email": {
          "$ref": "#/definitions/cardholderEmail"
        },
        "billingAddress": {
          "$ref": "#/definitions/cardholderAddress"
        }
      }
    },
    "MASTERCARD_TAF_FIDO": {
      "type": "object",
      "description": "List the parameters that are required to get a Mastercard TAF compliant cryptogram for a token bound to a FIDO authenticator.  All cardholder related parameters must be provided if they are collected according to compliance with applicable laws and local regulation.",
      "required": [
        "amount",
        "currencyCode",
        "merchantCategoryCode",
        "merchantCountry",
        "deviceId",
        "mcCertifiedSolutionId",
        "credentialId",
        "fidoRelyingParty",
        "fidoUserId",
        "isSpcEnabled",
        "fidoAuthenticationResponse",
        "mcTransactionAssertion"
      ],
      "properties": {
        "amount": {
          "$ref": "#/definitions/amount"
        },
        "currencyCode": {
          "$ref": "#/definitions/currencyCode"
        },
        "deviceId": {
          "$ref": "#/definitions/deviceIdMdes"
        },
        "ipAddress": {
          "$ref": "#/definitions/ipAddressSimpleDesc"
        },
        "location": {
          "$ref": "#/definitions/locationMastercardTrx"
        },
        "mcCertifiedSolutionId": {
          "$ref": "#/definitions/mcCertifiedSolutionId"
        },
        "credentialId": {
          "$ref": "#/definitions/credentialId"
        },
        "fidoRelyingParty": {
          "$ref": "#/definitions/fidoRelyingParty"
        },
        "fidoUserId": {
          "$ref": "#/definitions/fidoUserId"
        },
        "isSpcEnabled": {
          "$ref": "#/definitions/isSpcEnabled"
        },
        "fidoAuthenticationResponse": {
          "$ref": "#/definitions/fidoPublicKeyCredential"
        },
        "mcTransactionAssertion": {
          "$ref": "#/definitions/mcTransactionAssertion"
        },
        "email": {
          "$ref": "#/definitions/cardholderEmail"
        },
        "billingAddress": {
          "$ref": "#/definitions/cardholderAddressTAF"
        },
        "shippingAddress": {
          "$ref": "#/definitions/cardholderAddressTAF"
        },
        "merchantCategoryCode": {
          "$ref": "#/definitions/merchantCategoryCode"
        },
        "merchantCountry": {
          "$ref": "#/definitions/merchantCountry"
        }
      }
    },
    "MASTERCARD_TAF_IAAV": {
      "type": "object",
      "description": "List the parameters that are required to get a Mastercard TAF compliant cryptogram from and issuer IAAV.  All cardholder related parameters must be provided if they are collected according to compliance with applicable laws and local regulation.",
      "required": [
        "amount",
        "currencyCode",
        "mcIaav",
        "mcIaavTransactionId",
        "verificationTimestamp",
        "merchantCategoryCode",
        "merchantCountry"
      ],
      "properties": {
        "amount": {
          "$ref": "#/definitions/amount"
        },
        "currencyCode": {
          "$ref": "#/definitions/currencyCode"
        },
        "ipAddress": {
          "$ref": "#/definitions/ipAddressSimpleDesc"
        },
        "location": {
          "$ref": "#/definitions/locationMastercardTrx"
        },
        "mcIaav": {
          "$ref": "#/definitions/mcIaav"
        },
        "mcIaavTransactionId": {
          "$ref": "#/definitions/mcIaavTransactionId"
        },
        "verificationTimestamp": {
          "$ref": "#/definitions/timestamp"
        },
        "email": {
          "$ref": "#/definitions/cardholderEmail"
        },
        "billingAddress": {
          "$ref": "#/definitions/cardholderAddressTAF"
        },
        "shippingAddress": {
          "$ref": "#/definitions/cardholderAddressTAF"
        },
        "merchantCategoryCode": {
          "$ref": "#/definitions/merchantCategoryCode"
        },
        "merchantCountry": {
          "$ref": "#/definitions/merchantCountry"
        }
      }
    },
    "BINDING_MASTERCARD_TAF_FIDO_IAAV": {
      "type": "object",
      "description": "List the parameters that are required to bind a token with a FIDO authenticator as per Mastercard TAF.\n\nAt least one 'fidoAuthenticationResponse' or 'fidoRegistrationResponse' must be provided in the request.\n",
      "required": [
        "mcCertifiedSolutionId",
        "credentialId",
        "deviceId",
        "fidoRelyingParty",
        "fidoUserId",
        "isSpcEnabled",
        "mcIaav",
        "verificationTimestamp",
        "mcBindingAssertion"
      ],
      "properties": {
        "mcCertifiedSolutionId": {
          "$ref": "#/definitions/mcCertifiedSolutionId"
        },
        "credentialId": {
          "$ref": "#/definitions/credentialId"
        },
        "deviceId": {
          "$ref": "#/definitions/deviceIdMdes"
        },
        "fidoRelyingParty": {
          "$ref": "#/definitions/fidoRelyingParty"
        },
        "fidoUserId": {
          "$ref": "#/definitions/fidoUserId"
        },
        "isSpcEnabled": {
          "$ref": "#/definitions/isSpcEnabled"
        },
        "fidoAuthenticationResponse": {
          "$ref": "#/definitions/fidoAuthenticationResponse"
        },
        "fidoRegistrationResponse": {
          "$ref": "#/definitions/fidoRegistrationResponse"
        },
        "mcIaav": {
          "$ref": "#/definitions/mcIaav"
        },
        "verificationTimestamp": {
          "$ref": "#/definitions/timestamp"
        },
        "mcBindingAssertion": {
          "$ref": "#/definitions/mcBindingAssertion"
        }
      }
    },
    "MASTERCARD_THALES_AUTHENTICATOR": {
      "type": "object",
      "description": "List the parameters that are required to get a Mastercard TAF compliant cryptogram using their proprietary PKI as their MFA method.  All cardholder related parameters must be provided if they are collected according to compliance with applicable laws and local regulation.",
      "required": [
        "amount",
        "currencyCode",
        "deviceId",
        "tafAssertionPayload",
        "merchantCategoryCode",
        "merchantCountry"
      ],
      "properties": {
        "amount": {
          "$ref": "#/definitions/amount"
        },
        "currencyCode": {
          "$ref": "#/definitions/currencyCode"
        },
        "deviceId": {
          "$ref": "#/definitions/deviceIdMdes"
        },
        "tafAssertionPayload": {
          "type": "string",
          "minLength": 1,
          "maxLength": 10000,
          "description": "JSON assertion payload Base64 encoded, generated by Thales ETP SDK.",
          "example": "Base64 encoded Mastercard assertion payload"
        },
        "merchantCategoryCode": {
          "$ref": "#/definitions/merchantCategoryCode"
        },
        "merchantCountry": {
          "$ref": "#/definitions/merchantCountry"
        },
        "email": {
          "$ref": "#/definitions/cardholderEmail"
        },
        "location": {
          "$ref": "#/definitions/locationMastercardTrx"
        },
        "ipAddress": {
          "$ref": "#/definitions/ipAddressSimpleDesc"
        },
        "billingAddress": {
          "$ref": "#/definitions/cardholderAddressTAF"
        },
        "shippingAddress": {
          "$ref": "#/definitions/cardholderAddressTAF"
        }
      }
    },
    "MASTERCARD_TAS": {
      "type": "object",
      "description": "List the parameters that are required to get a Mastercard TAS compliant cryptogram using passkey.  All cardholder related parameters must be provided if they are collected according to compliance with applicable laws and local regulation.",
      "required": [
        "amount",
        "currencyCode",
        "merchantCategoryCode",
        "merchantCountry",
        "acquirerMerchantId",
        "acquirerBin",
        "ipAddress",
        "mcCallbackUri"
      ],
      "properties": {
        "mcCallbackUri":{
          "$ref": "#/definitions/mcCallbackUri"
        },
        "amount": {
          "$ref": "#/definitions/amount"
        },
        "currencyCode": {
          "$ref": "#/definitions/currencyCode"
        },
        "merchantCategoryCode": {
          "$ref": "#/definitions/merchantCategoryCode"
        },
        "merchantCountry": {
          "$ref": "#/definitions/merchantCountry"
        },
        "acquirerMerchantId": {
          "$ref": "#/definitions/acquirerMerchantId"
        },
        "acquirerBin": {
          "$ref": "#/definitions/acquirerBin"
        },
        "email": {
          "$ref": "#/definitions/cardholderEmail"
        },
        "phoneCountryCode": {
          "$ref": "#/definitions/phoneCountryCode"
        },
        "phoneNumber": {
          "$ref": "#/definitions/phoneNumber"
        },
        "location": {
          "$ref": "#/definitions/locationMastercardTrx"
        },
        "ipAddress": {
          "$ref": "#/definitions/ipAddressSimpleDesc"
        },
        "billingAddress": {
          "$ref": "#/definitions/cardholderAddressTAF"
        },
        "shippingAddress": {
          "$ref": "#/definitions/cardholderAddressTAF"
        }
      }
    }
  },
  "tags": [
    {
      "name": "Healthcheck"
    },
    {
      "name": "Merchant Onboarding"
    },
    {
      "name": "Token Management"
    },
    {
      "name": "Token Migration"
    },
    {
      "name": "Transaction Management"
    },
    {
      "name": "Device Binding"
    },
    {
      "name": "Click to Pay"
    },
    {
      "name": "JWT authentication"
    }
  ],
  "host": "thales.api.com"
}