cURL
curl --request POST \ --url https://demoapi.saasphereltd.com/api/v1/utils/upload-document \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form customer_id=CUST001 \ --form document_type_id=1 \ --form file='@example-file'
{ "status": "00", "message": "Document uploaded successfully", "data": {} }
Paste only the token (no "Bearer " prefix).
The customer ID.
"CUST001"
The document file to upload.
The document type ID.
1
"00"
"Document uploaded successfully"