Creates a KYC request.
The customer is redirected to the kycGatherer
link.
After the customer completes the KYC process,
they are redirected back to the redirectUrl
link.
Corresponding webhooks, such as: KYC document accepted and KYC document rejected, are sent to the subscribers.
When the complete list of documents is received and accepted, the KYC request fulfilled webhook is sent to subscribers.
If a credit-file-proof
request is successful,
it returns a decision
value of single-source
or dual-source
.
The corresponding identity-proof
and address-proof
documents are not requested.
KYC request resource.
KYC request created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
customerId required | string (CustomerId) <= 50 characters Customer resource ID. | ||||||||||||||||||
required | Array of objects (KycRequestDocuments) Documents to request from the customer. | ||||||||||||||||||
Array
| |||||||||||||||||||
id | string <= 50 characters Unique resource ID. Defaults to UUID v4. | ||||||||||||||||||
status | string Status of the request.
| ||||||||||||||||||
redirectUrl | string <uri> URL where the customer is redirected when a KYC document upload is complete.
When the customer is redirected,
Rebilly appends an
Example: | ||||||||||||||||||
reason | string Reason for uploading. | ||||||||||||||||||
matchLevel | integer [ 1 .. 2 ] Default: 2 Tolerance level setting for document matches.
The value of | ||||||||||||||||||
revision | integer Number of times the KYC request data has been modified. Use this value when analyzing webhook data to determine if a change must take precedence over the current representation. | ||||||||||||||||||
expirationTime | string <date-time> Date and time when the request expires. The default value is one hour in the future. | ||||||||||||||||||
createdTime | string <date-time> (CreatedTime) Date and time which is set automatically when the resource is created. | ||||||||||||||||||
updatedTime | string <date-time> (UpdatedTime) Date and time which updates automatically when the resource is updated. | ||||||||||||||||||
Array of objects Related links. | |||||||||||||||||||
object Embedded objects that are requested by the | |||||||||||||||||||
Unauthorized access. Invalid credentials used.
Access forbidden.
Invalid data sent.
In the sandbox environment, to mark a credit-file-proof
KYC document as accepted
,
pass the customer's first name to the accept
field.
If an incorrect first name is passed, the document is rejected.
{- "customerId": "123_456789",
- "documents": [
- {
- "type": "credit-file-proof",
- "maxAttempts": 1
}, - {
- "type": "identity-proof"
}, - {
- "type": "address-proof"
}
], - "reason": "registration"
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "documents": [
- {
- "type": "identity-proof",
- "subtypes": [
- "passport"
], - "maxAttempts": 3,
- "faceProofRequired": true
}
], - "status": "gathering",
- "reason": "spend limit",
- "matchLevel": 2,
- "revision": 0,
- "expirationTime": "2019-08-24T14:15:22Z",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
], - "_embedded": {
- "documents": [ ]
}
}