EnKash Developer Portal
Home
Home
Login
  1. APIs - Expense
  • Explore Our Product Suite
  • Payment Gateway
    • Set Up Payment Gateway
    • Payment Options
    • Easy API Setup
    • APIs - Payment Gateway
  • Payouts
    • Set Up Payouts
    • APIs - Payout
  • Prepaid Cards
    • Key Capabilities
    • Set Up Prepaid Cards
    • KYC Status Handling Guide
    • T&C Acceptance Flow
    • Card Design & Branding Compliance Guide
    • APIs - Prepaid Card
  • Wallet
    • APIs - Wallet
  • Bharat Connect (BBPS)
    • APIs - BBPS
  • Accounts Payable
    • APIs - Accounts Payable
  • Account Receivable
    • Accounts Receivable Overview
    • APIs - Account Receivable
  • Expense ERP Integration
    • About Authorization
    • APIs - Expense
    • Partner Integration
    • APIs - Expense
      • Update user
        PATCH
      • Create user
        POST
      • List employees
        GET
      • Get employee
        GET
      • Create department
        POST
      • List departments
        GET
      • Get department
        GET
      • Update department
        PATCH
      • Create grade
        POST
      • List grades
        GET
      • Get grade
        GET
      • Create designation
        POST
      • List designations
        GET
      • Get designation
        GET
      • List designations in a department
        GET
      • List categories
        GET
      • Get category
        GET
      • Create expense policy
        POST
      • List policies
        GET
      • Get policy
        GET
      • Create expense
        POST
      • Update expense fare, tax, invoice, or receipt
        PATCH
      • Cancel an expense and keep the record
        POST
      • Get expense
        GET
      • Approve, reject, or hold expense
        POST
      • Receipt OCR
        POST
      • Update grade
        PATCH
      • Update grade status
        PATCH
      • Update designation status
        PATCH
      • Update designation
        PATCH
      • Update department status
        PATCH
      • Update policy status
        PATCH
      • Update policy
        PATCH
      • Fetch Mileage Based Expense Cost
        POST
  • Rewards & Incentives
    • About Rewards
    • Getting Started
    • Encryption & Decryption Guide
    • Reward Allocation
    • Incentive Allocation
    • APIs - Reward
  • Petty Cash
    • Request Encryption Using AES
    • API - Petty Cash
  • Verification Suite
    • Verification Suite Overview
    • APIs - Verification Suite
    • Create expense category
  • Schemas
    • CardExpenseSuccessResponse
    • PartnerExpense
    • OcrDataSuccessResponse
    • PartnerDesignationUpdateRequest
    • MileageRequest
    • AttachReceiptSuccessResponse
    • PartnerExpenseCreateRequest
    • PartnerGradeUpdateRequest
    • TravelType
    • PartnerPolicy
    • PartnerExpenseUpdateRequest
    • PartnerUserUpdateRequest
    • SplitExpenseCreateRequest
    • MileageDistance
    • PartnerPolicySuccessResponse
    • ExpenseSearchRequest
    • SplitType
    • MileageDistanceResponse
    • PartnerUser
    • PartnerDesignation
    • ExpenseSearchItem
    • PartnerPolicyUpdateRequest
    • MileageDistanceSuccessResponse
    • ErrorResponse
    • PartnerGrade
    • PartnerExpenseSuccessResponse
    • ExpenseSearchResponse
    • SplitExpenseResponse
    • PartnerUserRequest
    • PartnerUserListResponse
    • PartnerDepartmentCreateRequest
    • PartnerDesignationSuccessResponse
    • PartnerDepartment
    • PartnerGradeSuccessResponse
    • PartnerUserSuccessResponse
    • PartnerDepartmentSuccessResponse
    • PartnerDepartmentListResponse
    • EmptySuccessResponse
    • PartnerGradeCreateRequest
    • PartnerCodeName
    • PartnerGradeListResponse
    • PartnerDesignationCreateRequest
    • PartnerDesignationListResponse
    • PartnerCategoryCreateRequest
    • PartnerCategory
    • PartnerCategorySuccessResponse
    • PartnerCategoryListResponse
    • PartnerPolicyCreateRequest
    • PartnerPolicyListResponse
    • PartnerExpenseCancelRequest
    • PartnerExpenseStatusRequest
    • PartnerExpenseStatusItem
    • PartnerExpenseStatusResponse
    • ExpenseHistoryItem
    • ExpensePaymentMode
    • ExpensePayload
    • AccountType
    • TripRequestSuccessResponse
    • TripRequestCreateRequest
    • TripRequestPayload
    • FlightEntries
    • FlightSegment
    • BusAndTrainEntry
    • CarRentalEntry
    • HotelEntry
    • AdvanceCreateRequest
    • TripRequestHistoryItem
    • TripType
    • RequestFormStatus
  1. APIs - Expense

Fetch Mileage Based Expense Cost

POST
/api/v0/partner/mileage
Returns road distance and reimbursement amount for the token user.
The rate comes from the user's job role and allowance level for travelMode.
sourcePlaceId and destinationPlaceId are Google place ids.
Send dualTrip: true to also price the return leg. The return uses the same places in reverse.
Same source and destination returns distance 0 and amount 0.

Request

Header Params

Body Params application/jsonRequired

Example
{
    "travelMode": "FOUR_WHEELER",
    "sourcePlaceId": "ChIJL_P_CXMEDTkRw0ZdG-0GVvw",
    "destinationPlaceId": "ChIJv01O2gUDDTkRGqG4m3tP1w0",
    "dualTrip": false
}

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/mileage' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{
    "travelMode": "FOUR_WHEELER",
    "sourcePlaceId": "ChIJL_P_CXMEDTkRw0ZdG-0GVvw",
    "destinationPlaceId": "ChIJv01O2gUDDTkRGqG4m3tP1w0",
    "dualTrip": false
}'

Responses

🟢200
application/json
Distance and amount calculated.
Bodyapplication/json

Example
{
    "response_code": 0,
    "response_message": "Success",
    "payload": {
        "sourceToDestination": {
            "distanceValue": "12.4",
            "distanceUnit": "KM",
            "totalAmount": 148.8,
            "perUnitAmount": "12.00",
            "currency": "INR"
        },
        "destinationToSource": null
    }
}
đźź 400
đźź 401
đźź 403
đź”´500
Modified at 2026-11-23 08:40:01
Previous
Update policy
Next
About Rewards
Built with