Skip to main content
POST
https://api.sandbox.wepayout.com.br
/
v1
/
kyc
/
documents
/
{documentId}
/
update
Submit Document For KYC
curl --request POST \
  --url https://api.sandbox.wepayout.com.br/v1/kyc/documents/{documentId}/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": "<string>"
}
'
{
  "id": 5891,
  "status_id": 2,
  "status_name": "Waiting Approval Documents",
  "document_id": 35,
  "document_name": "kyc/qsa",
  "collection_name": null,
  "collection_id": null,
  "value_field": "https://s3.amazonaws.com/bucket-name/path/to/file",
  "rejection_reason": null,
  "label": "KYC/QSA",
  "type_field": "file",
  "required_field": true,
  "expires_at": null,
  "automaticatic_validation": 0
}

Submit Document For KYC

This route is used to submit documents for a pending KYC. There are two types of documents that can be submitted:
  • Text-type documents
  • File-type documents
Only one document can be updated at a time.
Attention point: Supported extensions for file-type documents: jpg, jpeg, gif, png and pdf

Path Parameters

documentId
integer
required
The ID of the document to update

Body

value
string
required
The value to submit for the document. For file-type documents, provide the file URL. For text-type documents, provide the text value.

Response

id
integer
Unique identifier for the uploaded document record.
status_id
integer
Identifier of the current validation status of the document.
status_name
string
Name of the document’s validation status.
document_id
integer
Identifier of the document.
document_name
string
Name of the document type uploaded.
collection_name
string
Name of the document collection or group.
collection_id
integer
Identifier of the document collection.
value_field
string
URL for downloading the uploaded document file.
rejection_reason
string
Reason for rejection if the document was not approved.
label
string
Label or description used to identify the document field.
type_field
string
Type of input expected for this field.Example: file or text
required_field
boolean
Indicates whether this field is mandatory for completing the KYC process.
expires_at
string
Expiration date of the document, if applicable.Format: <date-time>
automaticatic_validation
integer
Indicates whether the document is eligible for automatic validation.Example: 1 = yes, 0 = no

Request Example

curl --request POST \
  --url https://api.sandbox.wepayout.com.br/v1/kyc/documents/{documentId}/update \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer 123' \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "string"
}'
{
  "id": 5891,
  "status_id": 2,
  "status_name": "Waiting Approval Documents",
  "document_id": 35,
  "document_name": "kyc/qsa",
  "collection_name": null,
  "collection_id": null,
  "value_field": "https://s3.amazonaws.com/bucket-name/path/to/file",
  "rejection_reason": null,
  "label": "KYC/QSA",
  "type_field": "file",
  "required_field": true,
  "expires_at": null,
  "automaticatic_validation": 0
}

Best Practices

One Document at a Time: Only one document can be updated per request. To submit multiple documents, make separate API calls for each.
File Extensions: Ensure file-type documents use only supported extensions: jpg, jpeg, gif, png, or pdf.
Document Status: After submission, the document status will typically change to “Waiting Approval Documents” (status_id: 2).