openapi: 3.2.0 info: title: Verify Customer API version: 1.0.0 servers: - url: https://sandbox.trustly.one/api/v1 description: Sandbox tags: - name: verifyCustomer paths: /transactions/{transactionId}/payment/customer/verify: get: operationId: verifyCustomer_get-verify-customer summary: Get customer verification data description: Retrieves verification results for a given transaction. Returns a match result for each attribute compared. tags: - verifyCustomer parameters: - name: transactionId in: path description: Transaction ID retrieved from a Trustly Authorization transaction. required: true schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Verify_Customer_get-verify-customer_Response_200' '400': description: One or more required fields are missing from the request object. content: application/json: schema: $ref: '#/components/schemas/Get-verify-customerRequestBadRequestError' '401': description: Access not authorized content: application/json: schema: $ref: '#/components/schemas/Get-verify-customerRequestUnauthorizedError' security: - HTTPBasic: [] components: schemas: Verify_Customer_get-verify-customer_Response_200: type: object properties: matches: type: array items: $ref: '#/components/schemas/VerifyCustomerMatch' title: Verify Customer_get-verify-customer_Response_200 BaseException: type: object properties: domain: type: string code: type: integer location: type: string message: type: string occurredAt: type: integer title: BaseException Get-verify-customerRequestUnauthorizedError: type: object properties: errors: type: array items: $ref: '#/components/schemas/BaseException' required: - errors title: Get-verify-customerRequestUnauthorizedError VerifyCustomerMatchResult: type: string enum: - '-1' - '0' - '1' - '2' description: 'The result of the comparison: * `-1`: Inconclusive * `0`: NoMatch * `1`: PartialMatch * `2`: Match' title: VerifyCustomerMatchResult Get-verify-customerRequestBadRequestError: type: object properties: errors: type: array items: $ref: '#/components/schemas/BaseException' required: - errors title: Get-verify-customerRequestBadRequestError VerifyCustomerMatchSource: type: string enum: - '1' - '2' - '3' - '4' description: 'The data source used for comparison: * `1`: Profile * `2`: SelectedAccount * `3`: OtherAccounts * `4`: TrustlyUser' title: VerifyCustomerMatchSource VerifyCustomerMatch: type: object properties: attribute: type: string description: The customer attribute that was compared. For example, customer.name or customer.address.zip. result: $ref: '#/components/schemas/VerifyCustomerMatchResult' description: 'The result of the comparison: * `-1`: Inconclusive * `0`: NoMatch * `1`: PartialMatch * `2`: Match' source: $ref: '#/components/schemas/VerifyCustomerMatchSource' description: 'The data source used for comparison: * `1`: Profile * `2`: SelectedAccount * `3`: OtherAccounts * `4`: TrustlyUser' title: VerifyCustomerMatch securitySchemes: HTTPBasic: type: http scheme: basic description: ''