Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request PUT \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{id}/documents/{document_id} \
--header 'Content-Type: multipart/form-data' \
--form 'document_number=<string>' \
--form 'kyc_document_id=<string>' \
--form 'note=<string>' \
--form 'modified_reason=<string>'
{
"message": "<string>",
"success": true,
"content": {
"document": {
"id": "<string>",
"document_number": "<string>",
"note": "<string>",
"status": "submitted",
"title": "<string>",
"file_url": "<string>",
"verification_type": "automatic",
"is_verified": true,
"verified_at": "2023-11-07T05:31:56Z",
"created_by": "customer",
"created_at": "2023-11-07T05:31:56Z",
"modified_by": "customer",
"modified_at": "2023-11-07T05:31:56Z",
"modified_reason": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}
Update document detail
curl --request PUT \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{id}/documents/{document_id} \
--header 'Content-Type: multipart/form-data' \
--form 'document_number=<string>' \
--form 'kyc_document_id=<string>' \
--form 'note=<string>' \
--form 'modified_reason=<string>'
{
"message": "<string>",
"success": true,
"content": {
"document": {
"id": "<string>",
"document_number": "<string>",
"note": "<string>",
"status": "submitted",
"title": "<string>",
"file_url": "<string>",
"verification_type": "automatic",
"is_verified": true,
"verified_at": "2023-11-07T05:31:56Z",
"created_by": "customer",
"created_at": "2023-11-07T05:31:56Z",
"modified_by": "customer",
"modified_at": "2023-11-07T05:31:56Z",
"modified_reason": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}
OK
The response is of type object
.