curl --request PUT \
--url https://api.example.com/api/auth/seller-profile \
--header 'Content-Type: application/json' \
--data '
{
"identity_document": "<string>",
"selfie_url": "<string>"
}
'{
"400": {},
"401": {},
"403": {},
"500": {},
"success": true,
"message": "<string>",
"user": {
"_id": "<string>",
"email": "<string>",
"role": "<string>",
"full_name": "<string>",
"phone": "<string>",
"seller_profile": {
"identity_document": "<string>",
"selfie_url": "<string>",
"verification_status": "<string>",
"is_verified_badge": true
},
"created_at": "<string>",
"updated_at": "<string>"
}
}Update seller verification documents and initiate verification process
curl --request PUT \
--url https://api.example.com/api/auth/seller-profile \
--header 'Content-Type: application/json' \
--data '
{
"identity_document": "<string>",
"selfie_url": "<string>"
}
'{
"400": {},
"401": {},
"403": {},
"500": {},
"success": true,
"message": "<string>",
"user": {
"_id": "<string>",
"email": "<string>",
"role": "<string>",
"full_name": "<string>",
"phone": "<string>",
"seller_profile": {
"identity_document": "<string>",
"selfie_url": "<string>",
"verification_status": "<string>",
"is_verified_badge": true
},
"created_at": "<string>",
"updated_at": "<string>"
}
}PUT /api/auth/seller-profile
Authorization: Bearer <token>
curl -X PUT https://api.horsetrust.com/api/auth/seller-profile \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"identity_document": "https://storage.example.com/docs/id-987654.pdf",
"selfie_url": "https://storage.example.com/selfies/selfie-987654.jpg"
}'
{
"success": true,
"message": "Seller profile updated. Awaiting verification.",
"user": {
"_id": "507f1f77bcf86cd799439011",
"email": "[email protected]",
"role": "seller",
"full_name": "John Smith",
"phone": "+5491112345678",
"is_email_verified": false,
"is_phone_verified": false,
"seller_profile": {
"identity_document": "https://storage.example.com/docs/id-987654.pdf",
"selfie_url": "https://storage.example.com/selfies/selfie-987654.jpg",
"verification_status": "pending",
"is_verified_badge": false
},
"is_active": true,
"created_at": "2026-03-01T08:00:00.000Z",
"updated_at": "2026-03-05T10:45:00.000Z"
}
}
{
"success": false,
"message": "Valid selfie URL required"
}
{
"success": false,
"message": "Authentication required"
}
{
"success": false,
"message": "Seller role required"
}
{
"success": false,
"message": "Server error"
}
identity_document and selfie_url must be providedselfie_url must be a valid URL formatverification_status is automatically set to “pending”/api/auth/me endpoint or wait for notifications to check verification status