EnKash Developer Portal
Home
Home
Login
  1. Home
  • Back to home
  • APIs - Expense
  • Token API
    POST
  • Account Transaction
    POST
  • Search expenses
    POST
  • Create Card Expense
    POST
  • Attach Expense Receipt
    POST
  • Create Travel Request
    POST
  1. Home

Attach Expense Receipt

POST
/api/v0/partner/expense/upload
Attaches a receipt to the expense created with this transaction id.
A later call adds another file. It does not remove files already attached.
Allowed types are pdf, jpg, jpeg, and png.
The first file is read, and merchant, date, amount, invoice number, and tax are filled on the expense when they can be read.
If the file cannot be read, it is still attached.

Request

Query Params

Header Params

Body Params multipart/form-dataRequired

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://ekpayout-uat.enkash.in/api/v0/partner/expense/upload?transactionId=' \
--header 'Authorization;' \
--header 'Accept;' \
--form 'files=""'

Responses

🟢200Success
application/json
Receipt stored and attached. Payload is the URL(s) from this call only (not the full existing list).
Bodyapplication/json

Example
{
    "response_code": 0,
    "response_message": "Expense Receipt has been successfully uploaded.",
    "payload": [
        "https://files.enkash.in/EXPENSE/receipt-001.pdf"
    ]
}
🟠400
🟠401
🟠403
🟠422
Modified at 2026-11-02 19:46:09
Previous
Create Card Expense
Next
Create Travel Request
Built with