PATCH
/
partners
/
merchants
/
{merchant_id}
/
documents
/
Upload Merchant Document
curl --request PATCH \
  --url https://api-pacb-uat.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=@example-file
{
  "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.

file
file
required

The file to upload.

document_type
string
required

Type of document (INVOICE). Only invoice is supported currently.

Response

200 - application/json

Document uploaded successfully.

success
boolean
message
string
data
object