---
updatedAt: 2026-04-23T13:43:44.000Z
agentTools:
  projectIndex: https://docs.br-dge.io/llms.txt
---

# Verify details held by a PSP

Request for verification of details held by a payment service provider (PSP).

PSPs may offer functionality to verify details held by them.

This endpoint accepts information the consumer wishes to verify, and will return information provided by the PSP on whether that information matches their records.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "BR-DGE Payment Instrument REST API",
    "description": "REST API that deals with everything related to payment instrument tokenization\n",
    "version": "v1.0.0",
    "contact": {
      "name": "Customer Support",
      "url": "https://comcarde.atlassian.net/servicedesk/customer/portals"
    },
    "license": {
      "name": "MIT",
      "url": "https://docs.br-dge.io/docs/openapi-license"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.comcarde.com/v1",
      "description": "Sandbox subdomain for testing your integration works as expected, using mock payment instruments only.\n"
    },
    {
      "url": "https://secure.comcarde.com/v1",
      "description": "Use this subdomain for processing live payments in the EU region."
    },
    {
      "url": "https://secure-amer-01.api.br-dge.io/v1",
      "description": "Use this subdomain for processing live payments in the NA region."
    }
  ],
  "tags": [
    {
      "name": "Payment Instrument Verification",
      "description": "Payment instrument verification allows merchants to verify the details of payment instruments and their associated customers.\n"
    }
  ],
  "externalDocs": {
    "url": "https://docs.br-dge.io"
  },
  "paths": {
    "/payment-instrument-verifications": {
      "post": {
        "tags": [
          "Payment Instrument Verification"
        ],
        "summary": "Verify details held by a PSP",
        "description": "Request for verification of details held by a payment service provider (PSP).\n\nPSPs may offer functionality to verify details held by them.\n\nThis endpoint accepts information the consumer wishes to verify, and will return information provided by the PSP on whether that information matches their records.\n",
        "operationId": "verifyCustomerUsingPOST",
        "security": [
          {
            "ServerApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Information to be verified",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerificationRequest"
              },
              "examples": {
                "trustly-verification-request": {
                  "$ref": "#/components/examples/trustly-verification-request"
                },
                "neteller-verification-request": {
                  "$ref": "#/components/examples/neteller-verification-request"
                },
                "ott-verification-request": {
                  "$ref": "#/components/examples/ott-verification-request"
                },
                "bluVoucher-verification-request": {
                  "$ref": "#/components/examples/bluVoucher-verification-request"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verification request completed successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationResponse"
                },
                "examples": {
                  "trustly-verification-response": {
                    "$ref": "#/components/examples/trustly-verification-response"
                  },
                  "neteller-verification-response": {
                    "$ref": "#/components/examples/neteller-verification-response"
                  },
                  "ott-verification-response": {
                    "$ref": "#/components/examples/ott-verification-response"
                  },
                  "bluVoucher-verification-response": {
                    "$ref": "#/components/examples/bluVoucher-verification-response"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Unsuccessful verification of payment instrument - bad request\n"
          },
          "500": {
            "$ref": "#/components/responses/UnknownServerError"
          }
        },
        "callbacks": {
          "Payment Instrument Verification Event": {
            "$ref": "#/components/callbacks/PaymentInstrumentVerificationEvent"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "title": "ErrorResponse",
        "type": "object",
        "properties": {
          "additionalErrorDetails": {
            "type": "string",
            "description": "Additional information that may sometimes be returned about the reason an error occurred."
          },
          "code": {
            "$ref": "#/components/schemas/Code"
          },
          "id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "message": {
            "$ref": "#/components/schemas/Message"
          },
          "validationErrors": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "An object that contains validation errors"
          }
        }
      },
      "VerificationRequest": {
        "description": "Represents a request to verify details held by the Payment Service Provider (PSP).",
        "required": [
          "psp",
          "verificationDetails"
        ],
        "properties": {
          "psp": {
            "$ref": "#/components/schemas/PspName"
          },
          "verificationDetails": {
            "$ref": "#/components/schemas/VerificationDetails"
          }
        }
      },
      "VerificationDetails": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/TrustlyVerificationDetails"
          },
          {
            "$ref": "#/components/schemas/NetellerVerificationDetails"
          },
          {
            "$ref": "#/components/schemas/SkrillVerificationDetails"
          },
          {
            "$ref": "#/components/schemas/OttVerificationDetails"
          },
          {
            "$ref": "#/components/schemas/BluVoucherVerificationDetails"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "trustly": "#/components/schemas/TrustlyVerificationDetails",
            "neteller": "#/components/schemas/NetellerVerificationDetails",
            "skrill": "#/components/schemas/SkrillVerificationDetails",
            "ottVoucher": "#/components/schemas/OttVerificationDetails",
            "bluVoucher": "#/components/schemas/BluVoucherVerificationDetails"
          }
        }
      },
      "TrustlyVerificationDetails": {
        "description": "Contains information used to identify the customer.\n",
        "type": "object",
        "required": [
          "type",
          "firstName",
          "lastName",
          "customerId",
          "country",
          "locale",
          "email"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationDetails schema.\n",
            "example": "trustly"
          },
          "firstName": {
            "type": "string",
            "example": "John",
            "description": "Customer's first name.",
            "maxLength": 255
          },
          "lastName": {
            "type": "string",
            "example": "Smith",
            "description": "Customer's last name.",
            "maxLength": 255
          },
          "customerId": {
            "type": "string",
            "description": "Customer's customer ID.",
            "maxLength": 100,
            "example": "def456"
          },
          "country": {
            "$ref": "#/components/schemas/CountryIsoCode"
          },
          "locale": {
            "$ref": "#/components/schemas/LocaleIsoCodes"
          },
          "email": {
            "type": "string",
            "example": "a.b@example.com",
            "description": "Customer's email.",
            "format": "email"
          },
          "successUrl": {
            "type": "string",
            "minLength": 2,
            "maxLength": 300,
            "example": "https://myurl.com/success/f219ea52-d91f-4059-a560-8dd7cbd31fd0",
            "description": "A URL that is invoked after a successful Trustly transaction.\n\nBy using unpredictable single-use URLs you can protect yourself from the possibility of bad actors attempting to make it appear that the transaction had a different outcome to reality. We also recommend that you confirm the outcome of transaction via server-to-server calls to BR-DGE.\n"
          },
          "errorUrl": {
            "type": "string",
            "maxLength": 300,
            "description": "A URL that is invoked after an unsuccessful Trustly transaction.",
            "example": "https://myurl.com/error"
          },
          "ipAddress": {
            "pattern": "^$|^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|::(ffff(:0{1,4})?:)?((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$",
            "type": "string",
            "description": "Customer's IP address (IPv4 or IPv6).",
            "example": "123.100.100.200"
          },
          "documentId": {
            "maxLength": 255,
            "type": "string",
            "description": "Customer's social security number / personal number / birth number / etc.\n\nUsed by some countries (currently only Sweden) to perform additional verification when logging into a bank account.\n",
            "example": "ABC-123456"
          },
          "phoneNumber": {
            "maxLength": 255,
            "pattern": "^$|^[+]?[(0-9][0-9 ()-]*[0-9]$",
            "type": "string",
            "description": "Customer's telephone number.\nPlease use only numbers, spaces and an optional leading +.",
            "example": "+44 123 1110000"
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date",
            "description": "Customer's date of birth.",
            "example": "2000-01-01"
          }
        }
      },
      "NetellerVerificationDetails": {
        "description": "Contains information to identify the customer (\"customer\") and details about the customer that should be verified (\"customerDetails\")\n",
        "type": "object",
        "required": [
          "type",
          "customer"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationDetails schema.\n",
            "example": "trustly"
          },
          "customer": {
            "$ref": "#/components/schemas/NetellerVerificationCustomer"
          },
          "customerDetails": {
            "$ref": "#/components/schemas/NetellerVerificationCustomerDetails"
          }
        }
      },
      "NetellerVerificationCustomer": {
        "title": "Neteller customer for verification",
        "description": "Details used to identify a customer for verification. One of email or accountId must be provided.\n",
        "type": "object",
        "minProperties": 1,
        "properties": {
          "email": {
            "type": "string",
            "description": "Customer's email.",
            "format": "email",
            "example": "a.b@example.com"
          },
          "accountId": {
            "type": "string",
            "description": "Customer's account ID.",
            "maxLength": 15,
            "example": "123456"
          }
        }
      },
      "NetellerVerificationCustomerDetails": {
        "title": "Neteller customer records to verify",
        "description": "Customer details to be verified. For each provided field, the response will indicate if its content matched Neteller's records (\"MATCH\") or not (\"NO_MATCH\").\n",
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "description": "Customer's first name.",
            "maxLength": 255,
            "example": "John"
          },
          "lastName": {
            "type": "string",
            "description": "Customer's last name.",
            "maxLength": 255,
            "example": "Smith"
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date",
            "description": "Customer's date of birth.",
            "example": "2000-01-01"
          },
          "houseNumber": {
            "type": "string",
            "description": "Customer's house number.",
            "example": "101"
          },
          "country": {
            "$ref": "#/components/schemas/CountryIsoCode"
          },
          "postcode": {
            "maxLength": 255,
            "type": "string",
            "description": "Customer's postcode.",
            "example": "BH23 6AA"
          }
        }
      },
      "SkrillVerificationDetails": {
        "description": "Contains information to identify the customer (\"customer\") and details about the customer that should be verified (\"customerDetails\")\n",
        "type": "object",
        "required": [
          "type",
          "customer"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationDetails schema.\n",
            "example": "skrill"
          },
          "customer": {
            "$ref": "#/components/schemas/SkrillVerificationCustomer"
          },
          "customerDetails": {
            "$ref": "#/components/schemas/SkrillVerificationCustomerDetails"
          }
        }
      },
      "SkrillVerificationCustomer": {
        "title": "Skrill customer for verification",
        "description": "Details used to identify a customer for verification. One of email or accountId must be provided.\n",
        "type": "object",
        "minProperties": 1,
        "properties": {
          "email": {
            "type": "string",
            "description": "Customer's email.",
            "format": "email",
            "example": "a.b@example.com"
          },
          "customerId": {
            "type": "string",
            "description": "Customer's account ID.",
            "maxLength": 15,
            "example": "123456"
          }
        }
      },
      "SkrillVerificationCustomerDetails": {
        "title": "Skrill customer records to verify",
        "description": "Customer details to be verified. For each provided field, the response will indicate if its content matched Skrill's records (\"MATCH\") or not (\"NO_MATCH\").\n",
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "description": "Customer's first name.",
            "maxLength": 255,
            "example": "John"
          },
          "lastName": {
            "type": "string",
            "description": "Customer's last name.",
            "maxLength": 255,
            "example": "Smith"
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date",
            "description": "Customer's date of birth.",
            "example": "2000-01-01"
          },
          "houseNumber": {
            "type": "string",
            "description": "Customer's house number.",
            "example": "101"
          },
          "country": {
            "$ref": "#/components/schemas/AlphaThreeCountryIsoCode"
          },
          "postcode": {
            "maxLength": 255,
            "type": "string",
            "description": "Customer's postcode.",
            "example": "BH23 6AA"
          }
        }
      },
      "OttVerificationDetails": {
        "description": "Contains information to identify the voucher to be verified.\n",
        "type": "object",
        "required": [
          "type",
          "voucherPin"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationDetails schema.\n",
            "example": "ottVoucher"
          },
          "voucherPin": {
            "type": "string",
            "description": "The PIN of the Voucher to be checked.",
            "maxLength": 20,
            "pattern": "^[0-9]*$",
            "example": "123456789012"
          }
        }
      },
      "BluVoucherVerificationDetails": {
        "description": "Contains information to identify the voucher to be verified.\n",
        "type": "object",
        "required": [
          "type",
          "pin"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationDetails schema.\n",
            "example": "bluVoucher"
          },
          "pin": {
            "type": "string",
            "description": "The PIN of the Voucher to be checked.",
            "minLength": 9,
            "maxLength": 16,
            "pattern": "^[0-9]+$",
            "example": "123456789012"
          }
        }
      },
      "VerificationResponse": {
        "description": "Response from a verification request.",
        "type": "object",
        "required": [
          "id",
          "verificationId",
          "psp",
          "code",
          "message",
          "verificationResult"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "verificationId": {
            "type": "string",
            "description": "The ID of the verification record.\n",
            "example": "9450a0b0-c62a-457f-9eb0-39c36d883557"
          },
          "psp": {
            "$ref": "#/components/schemas/PspName"
          },
          "code": {
            "$ref": "#/components/schemas/Code"
          },
          "message": {
            "$ref": "#/components/schemas/Message"
          },
          "verificationResult": {
            "$ref": "#/components/schemas/VerificationResult"
          }
        }
      },
      "VerificationResult": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/TrustlyVerificationResult"
          },
          {
            "$ref": "#/components/schemas/NetellerVerificationResult"
          },
          {
            "$ref": "#/components/schemas/SkrillVerificationResult"
          },
          {
            "$ref": "#/components/schemas/OttVerificationResult"
          },
          {
            "$ref": "#/components/schemas/BluVoucherVerificationResult"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "trustly": "#/components/schemas/TrustlyVerificationResult",
            "neteller": "#/components/schemas/NetellerVerificationResult",
            "skrill": "#/components/schemas/SkrillVerificationResult",
            "ottVoucher": "#/components/schemas/OttVerificationResult",
            "bluVoucher": "#/components/schemas/BluVoucherVerificationResult"
          }
        }
      },
      "TrustlyVerificationResult": {
        "description": "Result of payment instrument verification with Trustly.\n\nUser will be redirected to log into their bank account using Trustly.\n",
        "type": "object",
        "required": [
          "type",
          "actionRequired",
          "action"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationResult schema.\n",
            "example": "trustly"
          },
          "actionRequired": {
            "type": "boolean",
            "default": false,
            "description": "Boolean value indicating whether further action should be taken after the response is received.\n",
            "example": true
          },
          "action": {
            "$ref": "#/components/schemas/Action"
          }
        }
      },
      "NetellerVerificationResult": {
        "description": "Response from verification request to Neteller.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationResult schema.\n",
            "example": "neteller"
          },
          "accountId": {
            "type": "string",
            "description": "Customer's Neteller account ID",
            "example": "abc123"
          },
          "verificationLevel": {
            "$ref": "#/components/schemas/NetellerVerificationLevel"
          },
          "customerDetails": {
            "$ref": "#/components/schemas/NetellerCustomerDetails"
          }
        }
      },
      "NetellerVerificationLevel": {
        "title": "Neteller verification level",
        "description": "Describes the verification level of the customer reported by Neteller. Neteller's verification feature returns a \"verification level\" described in their documentation: <https://paysafegroup.github.io/neteller_rest_api_v1/#/reference/0/customers/verify-customer-details>.\nThe Neteller verification level indicates whether the Neteller member has been verified, and whether they have a registered payment instrument.\n",
        "type": "object",
        "properties": {
          "verifiedCustomerIdentity": {
            "description": "Flag indicating whether Neteller has verified the member",
            "type": "boolean"
          },
          "hasRegisteredPaymentInstrument": {
            "description": "Flag indicating whether the customer has a registered payment instrument",
            "type": "boolean"
          }
        }
      },
      "NetellerCustomerDetails": {
        "title": "Neteller customer records verification results",
        "description": "For each of the customer records provided in the verification request, the response will indicate if the value passed matches the value for that customer in Neteller (MATCH) or does not match (NO_MATCH).\n",
        "type": "object",
        "properties": {
          "firstName": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "lastName": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "dateOfBirth": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "houseNumber": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "country": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "postcode": {
            "$ref": "#/components/schemas/ResultMatch"
          }
        }
      },
      "SkrillVerificationResult": {
        "description": "Response from verification request to Skrill.",
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationResult schema.\n",
            "example": "skrill"
          },
          "customerId": {
            "type": "string",
            "description": "Customer's Skrill account ID",
            "example": "abc123"
          },
          "verificationLevel": {
            "$ref": "#/components/schemas/SkrillVerificationLevel"
          },
          "customerDetails": {
            "$ref": "#/components/schemas/SkrillCustomerDetails"
          }
        }
      },
      "SkrillVerificationLevel": {
        "title": "Skrill verification level",
        "description": "Describes the verification level of the customer reported by Skrill.\nThe Skrill verification level indicates whether the Skrill customer has been verified, and whether they have a registered payment instrument.\n",
        "type": "object",
        "properties": {
          "verifiedCustomerIdentity": {
            "description": "Flag indicating whether Skrill has verified the customer",
            "type": "boolean"
          },
          "hasRegisteredPaymentInstrument": {
            "description": "Flag indicating whether the customer has a registered payment instrument",
            "type": "boolean"
          }
        }
      },
      "SkrillCustomerDetails": {
        "title": "Skrill customer records verification results",
        "description": "For each of the customer records provided in the verification request, the response will indicate if the value passed matches the value for that customer in Skrill (MATCH) or does not match (NO_MATCH).\nFor Skrill, if the email is provided in the request then a match field for it will be provided in the response.\n",
        "type": "object",
        "properties": {
          "email": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "firstName": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "lastName": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "dateOfBirth": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "houseNumber": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "country": {
            "$ref": "#/components/schemas/ResultMatch"
          },
          "postcode": {
            "$ref": "#/components/schemas/ResultMatch"
          }
        }
      },
      "OttVerificationResult": {
        "description": "Result of voucher verification with OTT.\n",
        "type": "object",
        "required": [
          "type",
          "success",
          "message"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationResult schema.\n",
            "example": "ottVoucher"
          },
          "success": {
            "type": "boolean",
            "description": "Boolean value indicating whether the voucher was successfully verified.",
            "example": true
          },
          "message": {
            "type": "string",
            "description": "Message describing outcome of voucher verification query.\n",
            "example": "Voucher Valid"
          },
          "serial": {
            "type": "string",
            "description": "Serial number of voucher.\n",
            "example": "300001095954"
          },
          "value": {
            "$ref": "#/components/schemas/VoucherAmount"
          },
          "errorCode": {
            "type": "string",
            "description": "Identifier code of error that occurred when verifying voucher.\n",
            "example": "7"
          }
        }
      },
      "BluVoucherVerificationResult": {
        "description": "Result of voucher verification with BluVoucher.\n",
        "type": "object",
        "required": [
          "type",
          "status"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the VerificationResult schema.\n",
            "example": "bluVoucher"
          },
          "status": {
            "type": "string",
            "description": "Message describing outcome of voucher verification query.\n",
            "example": "ACTIVE"
          },
          "serial": {
            "type": "string",
            "minLength": 16,
            "maxLength": 16,
            "description": "Serial number of voucher.\n",
            "example": "BL016C1E46AD2768"
          },
          "amount": {
            "$ref": "#/components/schemas/VoucherAmount"
          }
        }
      },
      "Action": {
        "description": "An object that contains information required to perform an action after the response is received.\n",
        "oneOf": [
          {
            "$ref": "#/components/schemas/RedirectAction"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "REDIRECT": "#/components/schemas/RedirectAction"
          }
        }
      },
      "VoucherAmount": {
        "type": "integer",
        "description": "Monetary value of voucher in South African Rand cents. This means that a value of 10000 is equal to R100.00.\n",
        "example": 3000
      },
      "RedirectAction": {
        "title": "Redirect Action",
        "description": "Browser redirect action consistent with [BR-DGE Redirect Payment Flow](https://secure.comcarde.com/docs/#redirect-payment-flow).\n",
        "properties": {
          "type": {
            "type": "string",
            "description": "Discriminator field. Please see the discriminator mapping for the Action schema."
          },
          "data": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "URL to redirect your customer towards."
              }
            }
          }
        }
      },
      "CountryIsoCode": {
        "type": "string",
        "description": "ISO 3166 Alpha-2 Country code",
        "example": "GB",
        "minLength": 2,
        "maxLength": 2,
        "pattern": "^[A-Z]+$"
      },
      "AlphaThreeCountryIsoCode": {
        "type": "string",
        "description": "ISO-3166-1 Alpha-3 Country Code",
        "example": "GBR",
        "minLength": 3,
        "maxLength": 3,
        "pattern": "^[A-Z]{3}$"
      },
      "LocaleIsoCodes": {
        "type": "string",
        "description": "The end-users localization preference in the format [language[_territory]]. Language is the ISO 639-1 code and territory the ISO 3166 Alpha-2 code.\n",
        "example": "en_GB",
        "minLength": 5,
        "maxLength": 5,
        "pattern": "^[a-z]{2}_[A-Z]{2}"
      },
      "Message": {
        "type": "string",
        "description": "A description of the outcome of the request."
      },
      "RequestId": {
        "type": "string",
        "description": "The ID of this request. If you can include these when querying the outcome of individual requests, we can track down the root cause faster.\n",
        "example": "a7f45953-1e8b-4f33-87b0-3293f4f6972f"
      },
      "ResultMatch": {
        "description": "Indicates whether a field has matched or not when verifying.\n",
        "type": "string",
        "enum": [
          "MATCH",
          "NO_MATCH"
        ]
      },
      "PspName": {
        "description": "Name of Payment Service Provider (PSPs).\n\nPlease see [PSP Integrations] for a list of possible PSPs.\n\n[PSP Integrations]: https://docs.br-dge.io/docs/psp-integrations\n",
        "type": "string",
        "pattern": "^[A-Za-z0-9\\- ().]*$",
        "maxLength": 50,
        "example": "Checkout.com"
      },
      "Code": {
        "type": "string",
        "description": "[Response Code](https://docs.br-dge.io/docs/response-codes) signifying the outcome of the request.",
        "example": "1000"
      },
      "BaseCallback": {
        "type": "object",
        "required": [
          "type",
          "merchantAccountId",
          "code",
          "message",
          "hashCode"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "merchantAccountId": {
            "type": "string",
            "description": "Identifier of the merchant account associated with the payment\n",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "code": {
            "$ref": "#/components/schemas/Code"
          },
          "message": {
            "type": "string",
            "description": "A description of the outcome"
          },
          "hashCode": {
            "type": "string",
            "description": "Hash Code of select fields of the payload, used for authenticity checks.\n\nThe value in this field is a hashCode that can be used to verify that key fields in the notification message payload has not been tampered with and also to confirm that it has been sent from the BR-DGE platform.\n\nDetails can be found in [Notification Hashing] documentation.\n\n[Notification Hashing]: https://docs.br-dge.io/docs/notification-hashing\n"
          }
        }
      },
      "BasePspInfo": {
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "$ref": "#/components/schemas/PspName"
          },
          "message": {
            "type": "string",
            "description": "Original message provided by PSP if applicable."
          }
        }
      },
      "TrustlyAccountInfo": {
        "type": "object",
        "required": [
          "type",
          "accountId",
          "bank",
          "town",
          "name",
          "address",
          "postcode",
          "descriptor",
          "clearingHouse"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Type of account",
            "example": "trustly"
          },
          "accountId": {
            "type": "string",
            "description": "The globally unique AccountID the account was assigned in the Trustly system.",
            "example": "2568457620"
          },
          "bank": {
            "type": "string",
            "description": "The name of the bank for this account.",
            "example": "Handelsbanken"
          },
          "town": {
            "type": "string",
            "description": "The town for this account.",
            "example": "Stockholm"
          },
          "name": {
            "type": "string",
            "description": "First and last name of the account holder",
            "example": "Steve Smith"
          },
          "address": {
            "type": "string",
            "description": "The address for this account.",
            "example": "Main street 1, Main street 2"
          },
          "postcode": {
            "type": "string",
            "description": "The postcode for this account.",
            "example": "SE-11253"
          },
          "descriptor": {
            "type": "string",
            "description": "A descriptor for this account that is safe to show to the end user.",
            "example": "**706212"
          },
          "lastDigits": {
            "type": "string",
            "description": "The last digits of the bank account number.",
            "example": "888133"
          },
          "clearingHouse": {
            "type": "string",
            "description": "The clearing house of the end-user's bank account. Typically the name of a country in uppercase letters.",
            "example": "SWEDEN"
          },
          "verified": {
            "type": "boolean",
            "description": "Whether the account is verified or not.",
            "example": true
          }
        }
      },
      "PaymentInstrumentAccountInfo": {
        "type": "object",
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "trustly": "#/components/schemas/TrustlyAccountInfo"
          }
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/TrustlyAccountInfo"
          }
        ]
      },
      "PaymentInstrumentCallback": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseCallback"
          },
          {
            "type": "object",
            "required": [
              "id",
              "psp",
              "customerId",
              "source",
              "account"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "For the `/payment-instrument-verifications` endpoint this value will match\n`verificationId` that the API returns.\n\nFor the `/payment-instrument-registrations` endpoint this value will match\n`paymentInstrumentRegistrationId` that the API returns.\n",
                "example": "b0e8c6b3-e59e-4e8b-83f4-4efaa7320528"
              },
              "psp": {
                "$ref": "#/components/schemas/BasePspInfo"
              },
              "customerId": {
                "type": "string",
                "description": "The `customer.customerId` value supplied in the API request.",
                "example": "123123"
              },
              "source": {
                "type": "string",
                "description": "The event that has triggered this notification.",
                "example": "REGISTRATION",
                "enum": [
                  "VERIFICATION",
                  "REGISTRATION"
                ]
              },
              "account": {
                "$ref": "#/components/schemas/PaymentInstrumentAccountInfo"
              }
            }
          }
        ]
      }
    },
    "responses": {
      "UnknownServerError": {
        "description": "An internal server error occurred upstream while processing the request.\n\nIf you have any questions about why you are receiving these responses, please raise a ticket with support on the BR-DGE Support Portal at <https://comcarde.atlassian.net/servicedesk/customer/portals> with the `id` from the response so we track down the individual requests on our end.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "Internal server error": {
                "description": "This example shows the [5001 error code]\n\nA full list of possible response codes is available [here].\n\n[5001 error code]: https://docs.br-dge.io/docs/response-codes#5001\n[here]: https://docs.br-dge.io/docs/response-codes\n",
                "value": {
                  "code": "5001",
                  "message": "Unexpected error",
                  "id": "4fad8e2e06a15656"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ServerApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Operations intended for use by Merchant servers.\n\n**IMPORTANT** This key allows you to perform sensitive operations such as authorizing payments and refunds.\n\n**Production Server API keys must not be accessible outside your organization.**\n"
      }
    },
    "examples": {
      "trustly-verification-request": {
        "summary": "A request to verify a Trustly customer.",
        "value": {
          "psp": "Trustly",
          "verificationDetails": {
            "type": "trustly",
            "firstName": "John",
            "lastName": "Smith",
            "customerId": "def456",
            "country": "GB",
            "locale": "en_GB",
            "email": "john.smith@example.com",
            "ipAddress": "123.100.100.200",
            "documentId": "ABC-123456",
            "phoneNumber": "+44 123 1110000",
            "dateOfBirth": "2000-01-01"
          }
        }
      },
      "trustly-verification-response": {
        "summary": "A response to a Trustly customer verification request.",
        "value": {
          "id": "4fad8e6j06a26656",
          "verificationId": "9450a0b0-c62a-457f-9eb0-39c36d883557",
          "psp": "Trustly",
          "code": "2101",
          "message": "Pending: The operation has been accepted for processing and the outcome is not yet known\n",
          "verificationResult": {
            "type": "trustly",
            "actionRequired": true,
            "action": {
              "type": "REDIRECT",
              "data": {
                "url": "https://checkout.test.trustly.com/checkout?OrderID=14402625813&SessionID=34fd71c8-d2bf-42d2-865e-02f22b946b8d\n"
              }
            }
          }
        }
      },
      "neteller-verification-request": {
        "summary": "A request to verify a Neteller customer.",
        "value": {
          "psp": "Paysafe",
          "verificationDetails": {
            "type": "neteller",
            "customer": {
              "email": "john.smith@example.com",
              "accountId": "123456"
            },
            "customerDetails": {
              "firstName": "John",
              "lastName": "Smith",
              "dateOfBirth": "2000-01-01",
              "houseNumber": "101",
              "country": "UK",
              "postcode": "A111AA"
            }
          }
        }
      },
      "neteller-verification-response": {
        "summary": "A response to a Neteller customer verification request.",
        "value": {
          "id": "687e304794fbc72b1b53c9e0ae8dc027",
          "verificationId": "44f92986-2ff6-42e2-afec-6ea85b4658b2",
          "psp": "Paysafe",
          "code": "1004",
          "message": "Request succeeded",
          "verificationResult": {
            "type": "neteller",
            "accountId": "123456",
            "verificationLevel": {
              "verifiedCustomerIdentity": true,
              "hasRegisteredPaymentInstrument": false
            },
            "customerDetails": {
              "firstName": "MATCH",
              "lastName": "MATCH",
              "dateOfBirth": "NO_MATCH",
              "houseNumber": "NO_MATCH",
              "country": "MATCH",
              "postcode": "NO_MATCH"
            }
          }
        }
      },
      "ott-verification-request": {
        "summary": "A request to verify a OTT voucher.",
        "value": {
          "psp": "OTT Mobile",
          "verificationDetails": {
            "type": "ottVoucher",
            "voucherPin": "349524897455"
          }
        }
      },
      "ott-verification-response": {
        "summary": "A response to a OTT voucher verification request.",
        "value": {
          "id": "907e304694fbc72b1b53c9e0fc8dc031",
          "verificationId": "81f39986-2ff6-42e2-afec-6ea85b4658c3",
          "psp": "OTT Mobile",
          "code": "1004",
          "message": "Request succeeded",
          "verificationResult": {
            "type": "ottVoucher",
            "success": true,
            "message": "Voucher Valid",
            "serial": "300001095954",
            "value": 3000
          }
        }
      },
      "bluVoucher-verification-request": {
        "summary": "A request to verify a BluVoucher.",
        "value": {
          "psp": "BluVoucher",
          "verificationDetails": {
            "type": "bluVoucher",
            "pin": "349524897455"
          }
        }
      },
      "bluVoucher-verification-response": {
        "summary": "A response to a BluVoucher verification request.",
        "value": {
          "id": "907e304694fbc72b1b53c9e0fc8dc031",
          "verificationId": "81f39986-2ff6-42e2-afec-6ea85b4658c3",
          "psp": "BluVoucher",
          "code": "1004",
          "message": "Request succeeded",
          "verificationResult": {
            "type": "bluVoucher",
            "status": "ACTIVE",
            "serial": "BL016C1E46AD2768",
            "amount": 3000
          }
        }
      }
    },
    "callbacks": {
      "PaymentInstrumentVerificationEvent": {
        "https://example.com/BR-DGE/ as defined in your retail channel config": {
          "post": {
            "description": "BR-DGE has verified a Payment Instrument.",
            "requestBody": {
              "required": true,
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/PaymentInstrumentCallback"
                  },
                  "example": {
                    "type": "paymentInstrument.accountSelection",
                    "merchantAccountId": "aadf8010-4df3-49c6-96c0-9f175f60ef36",
                    "id": "b0e8c6b3-e59e-4e8b-83f4-4efaa7320528",
                    "code": "1004",
                    "message": "Account has been verified.",
                    "psp": {
                      "name": "Trustly",
                      "transactionId": "14322692132",
                      "message": "Raw response from Open Banking PSP"
                    },
                    "hashCode": "4y2Uz8adaQduo3C8v/39Oo1aQhbdnf/iKHTTGygx60k=",
                    "customerId": "123123",
                    "source": "VERIFICATION",
                    "account": {
                      "accountId": "2568457620",
                      "bank": "Handelsbanken",
                      "town": "Stockholm",
                      "name": "Steve Smith",
                      "address": "Main street 1, Main street 2",
                      "postcode": "SE-11253",
                      "descriptor": "**706212",
                      "lastDigits": "888133",
                      "clearingHouse": "SWEDEN",
                      "verified": true,
                      "type": "trustly"
                    }
                  }
                }
              }
            },
            "responses": {
              "200": {
                "description": "Your server returns this code if it accepts the callback"
              }
            }
          }
        }
      }
    }
  }
}
```