Adyen Legal Entity API
The Legal Entity Management API enables you to manage legal entities that contain information required for verification.
The Legal Entity Management API enables you to manage legal entities that contain information required for verification.
openapi: 3.1.0
servers:
- url: https://kyc-test.adyen.com/lem/v3
info:
version: '3'
x-publicVersion: true
title: Adyen Legal Entity Management API
description: >-
The Legal Entity Management API enables you to manage legal entities that
contain information required for verification.
termsOfService: https://www.adyen.com/legal/terms-and-conditions
contact:
name: Adyen Developer Experience team
url: https://github.com/Adyen/adyen-openapi
tags:
- name: businessLines
- name: Documents
- name: legalEntities
- name: Themes
- name: transferInstruments
paths:
/businessLines:
post:
tags:
- businessLines
summary: Adyen Create a Business Line
description: >+
Creates a business line.
This resource contains information about your user's line of business,
including their industry and their source of funds. Adyen uses this
information to verify your users as required by payment industry
regulations. Adyen informs you of the verification results through
webhooks or API responses.
>If you are using hosted onboarding and just beginning your integration,
use v3 for your API requests. Otherwise, use v2.
x-addedInVersion: '1'
operationId: post-businessLines
x-sortIndex: 12
x-methodName: createBusinessLine
security:
- BasicAuth: []
- ApiKeyAuth: []
requestBody:
content:
application/json:
examples:
createBusinessLines-businessAccounts:
$ref: >-
#/components/examples/post-businessLines-createBusinessLines-businessAccounts
createBusinessLines-receive:
$ref: >-
#/components/examples/post-businessLines-createBusinessLines-receive
schema:
$ref: '#/components/schemas/BusinessLineInfo'
responses:
'200':
content:
application/json:
examples:
createBusinessLines-businessAccounts:
$ref: >-
#/components/examples/post-businessLines-createBusinessLines-businessAccounts-200
createBusinessLines-receive:
$ref: >-
#/components/examples/post-businessLines-createBusinessLines-receive-200
schema:
$ref: '#/components/schemas/BusinessLine'
description: OK - the request has succeeded.
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-businessLines400Example:
summary: Default post-businessLines 400 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Bad Request - a problem reading or understanding the request.
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-businessLines401Example:
summary: Default post-businessLines 401 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unauthorized - authentication required.
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-businessLines403Example:
summary: Default post-businessLines 403 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Forbidden - insufficient permissions to process the request.
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-businessLines422Example:
summary: Default post-businessLines 422 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unprocessable Entity - a request validation error.
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-businessLines500Example:
summary: Default post-businessLines 500 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Internal Server Error - the server could not process the request.
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/businessLines/{id}:
delete:
tags:
- businessLines
summary: Adyen Delete a Business Line
description: |-
Deletes a business line.
>If you delete a business line linked to a [payment method](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api), it can affect your merchant account's ability to use the [payment method](https://docs.adyen.com/api-explorer/Management/latest/post/merchants/_merchantId_/paymentMethodSettings). The business line is removed from all linked merchant accounts.
x-addedInVersion: '1'
operationId: delete-businessLines-id
x-sortIndex: 14
x-methodName: deleteBusinessLine
security:
- BasicAuth: []
- ApiKeyAuth: []
parameters:
- description: The unique identifier of the business line to be deleted.
name: id
in: path
required: true
schema:
type: string
responses:
'204':
description: >-
No Content - look at the actual response code for the status of the
request.
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-businessLines-id400Example:
summary: Default delete-businessLines-id 400 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Bad Request - a problem reading or understanding the request.
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-businessLines-id401Example:
summary: Default delete-businessLines-id 401 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unauthorized - authentication required.
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-businessLines-id403Example:
summary: Default delete-businessLines-id 403 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Forbidden - insufficient permissions to process the request.
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-businessLines-id422Example:
summary: Default delete-businessLines-id 422 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unprocessable Entity - a request validation error.
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-businessLines-id500Example:
summary: Default delete-businessLines-id 500 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Internal Server Error - the server could not process the request.
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
tags:
- businessLines
summary: Adyen Get a Business Line
description: Returns the detail of a business line.
x-addedInVersion: '1'
operationId: get-businessLines-id
x-sortIndex: 13
x-methodName: getBusinessLine
security:
- BasicAuth: []
- ApiKeyAuth: []
parameters:
- description: The unique identifier of the business line.
name: id
in: path
required: true
schema:
type: string
responses:
'200':
content:
application/json:
examples:
success:
$ref: '#/components/examples/get-businessLines-id-success-200'
schema:
$ref: '#/components/schemas/BusinessLine'
description: OK - the request has succeeded.
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-businessLines-id400Example:
summary: Default get-businessLines-id 400 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Bad Request - a problem reading or understanding the request.
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-businessLines-id401Example:
summary: Default get-businessLines-id 401 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unauthorized - authentication required.
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-businessLines-id403Example:
summary: Default get-businessLines-id 403 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Forbidden - insufficient permissions to process the request.
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-businessLines-id422Example:
summary: Default get-businessLines-id 422 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unprocessable Entity - a request validation error.
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-businessLines-id500Example:
summary: Default get-businessLines-id 500 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Internal Server Error - the server could not process the request.
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
patch:
tags:
- businessLines
summary: Adyen Update a Business Line
description: Updates a business line.
x-addedInVersion: '2'
operationId: patch-businessLines-id
x-sortIndex: 15
x-methodName: updateBusinessLine
security:
- BasicAuth: []
- ApiKeyAuth: []
requestBody:
content:
application/json:
examples:
updateBusinessLine:
$ref: >-
#/components/examples/patch-businessLines-id-updateBusinessLine
schema:
$ref: '#/components/schemas/BusinessLineInfoUpdate'
parameters:
- description: The unique identifier of the business line.
name: id
in: path
required: true
schema:
type: string
responses:
'200':
content:
application/json:
examples:
updateBusinessLine:
$ref: >-
#/components/examples/patch-businessLines-id-updateBusinessLine-200
schema:
$ref: '#/components/schemas/BusinessLine'
description: OK - the request has succeeded.
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
patch-businessLines-id400Example:
summary: Default patch-businessLines-id 400 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Bad Request - a problem reading or understanding the request.
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
patch-businessLines-id401Example:
summary: Default patch-businessLines-id 401 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unauthorized - authentication required.
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
patch-businessLines-id403Example:
summary: Default patch-businessLines-id 403 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Forbidden - insufficient permissions to process the request.
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
patch-businessLines-id422Example:
summary: Default patch-businessLines-id 422 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unprocessable Entity - a request validation error.
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
patch-businessLines-id500Example:
summary: Default patch-businessLines-id 500 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Internal Server Error - the server could not process the request.
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/documents:
post:
tags:
- Documents
summary: Adyen Upload a Document for Verification Checks
description: |-
Uploads a document for verification checks.
Adyen uses the information from the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities) to run automated verification checks. If these checks fail, you will be notified to provide additional documents.
You should only upload documents when Adyen requests additional information for the legal entity.
>You can upload a maximum of 15 pages for photo IDs.
x-addedInVersion: '1'
operationId: post-documents
x-sortIndex: 4
x-methodName: uploadDocumentForVerificationChecks
security:
- BasicAuth: []
- ApiKeyAuth: []
requestBody:
content:
application/json:
examples:
uploadDocument:
$ref: '#/components/examples/post-documents-uploadDocument'
schema:
$ref: '#/components/schemas/Document'
parameters:
- description: >-
Use a suberror code as your requested verification code. You can
include one code at a time in your request header. Requested
verification codes can only be used in your test environment.
example: '1_3008'
name: x-requested-verification-code
in: header
schema:
type: string
responses:
'200':
content:
application/json:
examples:
uploadDocument:
$ref: '#/components/examples/post-documents-uploadDocument-200'
schema:
$ref: '#/components/schemas/Document'
description: OK - the request has succeeded.
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-documents400Example:
summary: Default post-documents 400 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Bad Request - a problem reading or understanding the request.
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-documents401Example:
summary: Default post-documents 401 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unauthorized - authentication required.
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-documents403Example:
summary: Default post-documents 403 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Forbidden - insufficient permissions to process the request.
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-documents422Example:
summary: Default post-documents 422 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unprocessable Entity - a request validation error.
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
post-documents500Example:
summary: Default post-documents 500 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Internal Server Error - the server could not process the request.
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/documents/{id}:
delete:
tags:
- Documents
summary: Adyen Delete a Document
description: Deletes a document.
x-addedInVersion: '1'
operationId: delete-documents-id
x-sortIndex: 7
x-methodName: deleteDocument
security:
- BasicAuth: []
- ApiKeyAuth: []
parameters:
- description: The unique identifier of the document to be deleted.
name: id
in: path
required: true
schema:
type: string
responses:
'204':
description: >-
No Content - look at the actual response code for the status of the
request.
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-documents-id400Example:
summary: Default delete-documents-id 400 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Bad Request - a problem reading or understanding the request.
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-documents-id401Example:
summary: Default delete-documents-id 401 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unauthorized - authentication required.
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-documents-id403Example:
summary: Default delete-documents-id 403 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Forbidden - insufficient permissions to process the request.
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-documents-id422Example:
summary: Default delete-documents-id 422 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unprocessable Entity - a request validation error.
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
delete-documents-id500Example:
summary: Default delete-documents-id 500 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Internal Server Error - the server could not process the request.
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
tags:
- Documents
summary: Adyen Get a Document
description: Returns a document.
x-addedInVersion: '1'
operationId: get-documents-id
x-sortIndex: 5
x-methodName: getDocument
security:
- BasicAuth: []
- ApiKeyAuth: []
parameters:
- description: The unique identifier of the document.
name: id
in: path
required: true
schema:
type: string
responses:
'200':
content:
application/json:
examples:
success:
$ref: '#/components/examples/get-documents-id-success-200'
schema:
$ref: '#/components/schemas/Document'
description: OK - the request has succeeded.
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-documents-id400Example:
summary: Default get-documents-id 400 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Bad Request - a problem reading or understanding the request.
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-documents-id401Example:
summary: Default get-documents-id 401 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unauthorized - authentication required.
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-documents-id403Example:
summary: Default get-documents-id 403 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Forbidden - insufficient permissions to process the request.
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-documents-id422Example:
summary: Default get-documents-id 422 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Unprocessable Entity - a request validation error.
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
examples:
get-documents-id500Example:
summary: Default get-documents-id 500 response
x-microcks-default: true
value:
errorCode: CODE123
errorType: standard
message: example_value
pspReference: REF-001
status: 500
description: Internal Server Error - the server could not process the request.
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
patch:
tags:
- Documents
summary: Adyen Update a Document
description: |-
Updates a document.
>You can upload a maximum of 15 pages for photo IDs.
x-addedInVersion: '1'
operationId: patch-documents-id
x-sortIndex: 6
x-methodName: updateDocument
security:
- BasicAuth: []
- ApiKeyAuth: []
requestBody:
content:
application/json:
examples:
updateDocument:
$ref: '#/components/examples/patch-documents-id-updateDocument'
schema:
$ref: '#/components/schemas/Document'
parameters:
- description: The unique identifier of the document to be updated.
name: id
in: path
required: true
schema:
type: string
- description: >-
Use the requested verification code 0_0001 to resolve any suberrors
associated with the document. Requested verification codes can only
be used in your test environment.
example: '0_0001'
name: x-requested-verification-code
in: header
schema:
type: string
responses:
'200':
content:
application/json:
examples:
updateDocument:
$ref: '#/components/examples/patch-documents-id-
# --- truncated at 32 KB (273 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/openapi/legal-entity-openapi-original.yml