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

Attach Expense Receipt

Developing
POST
/api/v0/partner/expense/upload
Uploads a receipt and attaches it to the card expense whose paymentIdentifier equals transactionId. A later call appends another receipt and does not replace earlier ones.
Authority: CREATE_EXPENSE.
Call this after Create Card Expense using the same transactionId.
Content-Type is multipart/form-data. Allowed file types: pdf, jpg, jpeg, png.
422 Invalid paymentIdentifier when no expense exists for the transactionId.

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=TXN123456' \
--header 'Authorization: Bearer <token>' \
--header 'Accept: application/json' \
--form 'files=@""'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
      "response_code": 0,
        "response_message": "Expense Receipt has been successfully uploaded.",
          "payload": [
              "https://files.enkash.in/EXPENSE/receipt-001.pdf"
                ]
                }
}
Modified at 2026-10-06 09:28:55
Previous
Create Card Expense
Built with