POST
/
api
/
v1
/
utils
/
upload-document
Upload a customer document.
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": {}
}

Authorizations

Authorization
string
header
required

Paste only the token (no "Bearer " prefix).

Body

multipart/form-data
customer_id
string
required

The customer ID.

Example:

"CUST001"

file
file
required

The document file to upload.

document_type_id
integer
required

The document type ID.

Example:

1

Response

200 - application/json
status
string
Example:

"00"

message
string
Example:

"Document uploaded successfully"

data
object