Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{id}/documents \
--header 'Content-Type: multipart/form-data' \
--form 'document_number=<string>' \
--form 'kyc_document_id=<string>' \
--form 'note=<string>' \
--form file=@example-file
{
"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"
}
}
}
Create document
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{id}/documents \
--header 'Content-Type: multipart/form-data' \
--form 'document_number=<string>' \
--form 'kyc_document_id=<string>' \
--form 'note=<string>' \
--form file=@example-file
{
"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"
}
}
}
customer id
OK
The response is of type object
.
Was this page helpful?