PATCH
/
partners
/
merchants
/
{merchant_id}
/
documents
/
curl --request PATCH \
  --url https://api-staging.eximpe.com/partners/merchants/{merchant_id}/documents/ \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-Client-ID: <api-key>' \
  --header 'X-Client-Secret: <api-key>' \
  --form document_type=INVOICE \
  --form 'file=Screenshot 2025-05-21 at 2.44.41 PM.png'
{
  "success": true,
  "message": "Invoice uploaded successfully",
  "data": {
    "detail": "Invoice uploaded successfully"
  }
}

Authorizations

X-Client-ID
string
header
required

Client app ID. You can find your app id in the merchant dashboard.

X-Client-Secret
string
header
required

Client secret key. You can find your secret in the merchant dashboard.

Path Parameters

merchant_id
string
required

The ID of the merchant to upload the document for.

Body

multipart/form-data

Document upload request. The body must be multipart/form-data.

The body is of type object.

Response

200 - application/json

Document uploaded successfully.

The response is of type object.