# KYC request attempted Endpoint: POST kyc-request-attempted Version: latest Security: SecretApiKey, JWT ## Request fields (application/json): - `customerId` (string) ID of the customer resource. - `kycRequestId` (string) ID of the KYC request. Example: "kyc_req_0YV7JMJ3DBCGRBR7K9D4HVGPP5" - `eventType` (string) Rebilly webhooks event type. Enum: "kyc-request-attempted", "kyc-request-failed", "kyc-request-fulfilled", "kyc-request-partially-fulfilled" - `_embedded` (object) Customer and KYC request data. - `_embedded.customer` (object) Customer information. - `_embedded.customer.websiteId` (string) ID of the website. A website is where an organization obtains a customer. For more information, see [Obtain an organization ID and website ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id). Example: "web_0YV7DE4Z26DQSA1AC92FBJ7SEG" - `_embedded.customer.paymentToken` (string) Write-only payment token. If supplied, the token is converted into a payment instrument and set as the value. If both are supplied, the value of this property overrides the value. The token expires after first use. - `_embedded.customer.defaultPaymentInstrument` (any) - `_embedded.customer.customFields` (object) Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see [Custom fields](https://www.rebilly.com/catalog/all/custom-fields). - `_embedded.customer.primaryAddress` (any) Customer's primary address. - `_embedded.customer.isEddRequired` (boolean) Specifies if Enhanced Due Diligence (EDD) is enabled for this customer. For more information, see [Enhanced Due Diligence](https://www.rebilly.com/docs/kyc-and-aml/edd/). - `_embedded.customer.locale` (string,null) Language locale identifier in [RFC 5646](https://tools.ietf.org/html/rfc5646) format. Example: "fr-FR" - `_embedded.customer.taxNumbers` (array,null) Tax numbers of the customer. - `_embedded.customer.taxNumbers.type` (string, required) Type of the tax number. Enum: "eu-vat", "other" - `_embedded.customer.taxNumbers.value` (string, required) Value of the tax number. Example: "GB980780684" - `_embedded.customer.taxNumbers.isDefault` (boolean) Determines if the tax number is selected as default to display on invoices. Example: true - `_embedded.kycRequest` (object) KYC request information. - `_embedded.kycRequest.documents` (array, required) Documents to request from the customer. - `_embedded.kycRequest.documents.type` (string, required) Type of document to request from the customer. Enum: "identity-proof", "address-proof", "funds-proof", "purchase-proof", "credit-file-proof" - `_embedded.kycRequest.documents.subtypes` (array,null) Permitted document subtype. Enum: "passport", "id-card", "driver-license", "birth-certificate", "utility-bill", "rental-receipt", "lease-agreement", "copy-credit-card", "credit-card-statement", "bank-statement", "inheritance-documentation", "tax-return", "salary-slip", "sale-of-assets", "public-health-card", "proof-of-age-card", "reverse-of-id", "public-service", "ewallet-holder-details", "ewallet-transaction-statement", "marriage-certificate", "firearms-license", "insurance-letter", "income-statement", "debtors-letter", "other", null - `_embedded.kycRequest.documents.maxAttempts` (integer) Total number of allowed document upload attempts. Use to allow unlimited upload attempts. - `_embedded.kycRequest.documents.faceProofRequired` (boolean) Specifies if the customer must upload a photo of their face (selfie) that matches a provided KYC document. - `_embedded.kycRequest.documents.faceLivenessRequired` (boolean) Specifies if the customer must use the face liveness feature when uploading a selfie. For more information, see [Facial recognition and identity verification](https://www.rebilly.com/docs/kyc-and-aml/kyc#facial-recognition-identity-verification). - `_embedded.kycRequest.redirectUrl` (string,null) URL where the customer is redirected when a KYC document upload is complete. When the customer is redirected, Rebilly appends an query parameter that has one of the following values: - : Customer clicked the link. - : Customer's token expired. - : Customer uploaded KYC documents that have been analyzed. - : Customer uploaded KYC documents that require a manual review. This is because the analyzer rejected the documents or could not process them. - : Some of the customer's KYC documents have been analyzed, but other documents have not. For example, this may occur when a proof of address document is analyzed but proof of ID is not. Example: . - `_embedded.kycRequest.reason` (string,null) Reason for uploading. Example: "spend limit" - `_embedded.kycRequest.matchLevel` (integer) Document verification level. Enum: 1, 2, 3 - `_embedded.kycRequest.expirationTime` (string) Date and time when the request expires. The default value is one hour in the future. - `_links` (array) Related links. - `_links.href` (string) Link URL. - `_links.rel` (string) Type of link. Enum: "customer", "kycRequest"