Update a document

patch/documents/{id}

Updates a document.

You can upload a maximum of 15 pages for photo IDs.

Endpoint destination URL
https://kyc-test.adyen.com/lem/v3/documents/{id}
Click to copy

Header Parameters

x-requested-verification-codestring

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.

Path Parameters

idstringRequired

The unique identifier of the document to be updated.

Request Parameters

attachmentobjectDeprecated in version 1

Use the attachments array instead.

Object that contains the document.

attachmentsarray[object]

Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document.

descriptionstringRequired

Your description for the document.

expiryDatestringDeprecated in version 1

The expiry date of the document, in YYYY-MM-DD format.

fileNamestring

The filename of the document.

issuerCountrystringDeprecated in version 1

The two-character ISO 3166-1 alpha-2 country code where the document was issued. For example, US.

issuerStatestringDeprecated in version 1

The state or province where the document was issued (AU only).

numberstring

The number in the document.

ownerobject

Contains information about the resource that owns the document.

typestringRequired

Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type.

  • For organization, the type values can be proofOfAddress, registrationDocument, vatDocument, proofOfOrganizationTaxInfo, proofOfOwnership, proofOfIndustry, proofOfSignatory, or proofOfFundingOrWealthSource.

  • For individual, the type values can be identityCard, driversLicense, passport, liveSelfie, proofOfNationalIdNumber, proofOfResidency, proofOfIndustry, proofOfIndividualTaxId, proofOfFundingOrWealthSource or proofOfRelationship.

  • For soleProprietorship, the type values can be constitutionalDocument, proofOfAddress, or proofOfIndustry.

  • For trust, the type value is constitutionalDocument.

  • For unincorporatedPartnership, the type value is constitutionalDocument.

  • Use bankStatement to upload documents for a transfer instrument.

Response parameters

After submitting a call, you receive a response message to inform you that your request was received and processed.

Depending on the HTTP status code of the response message, it is helpful to build some logic to handle any errors that a request or the system may return.

HTTP Responses

  • 200 - OK

    The request has succeeded.

    Show moreShow less
  • 400 - Bad Request

    A problem reading or understanding the request.

    Show moreShow less
  • 401 - Unauthorized

    Authentication required.

    Show moreShow less
  • 403 - Forbidden

    Insufficient permissions to process the request.

    Show moreShow less
  • 422 - Unprocessable Entity

    A request validation error.

    Show moreShow less
  • 500 - Internal Server Error

    The server could not process the request.

    Show moreShow less