Table of Contents

    List Receipts from Single Trip or Expense

    Request URL

    GET https://triplogmileage.com/web/api/trips/[trip_id]/receipts

    GET https://triplogmileage.com/web/api/expenses/[expense_id]/receipts

    Query parameters

    None

    Example

    GET https://triplogmileage.com/web/api/expenses/456623/receipts

    Search Receipts

    Request URL

    GET https://triplogmileage.com/web/api/receipts

    Query parameters

    • type – must be ‘trip’ or ‘expense’, required.
    • startDate – Format ‘yyyy-mm-dd’, e.g. ‘2015-01-31’ means midnight Jan 31, 2015 at your local timezone. Inclusive.
    • endDate – Format ‘yyyy-mm-dd’, e.g. ‘2015-12-31’. Inclusive.
    • userEmail – Email address of a particular user to search for.
    • activity – Trip activity, e.g. ‘Business’.
    • status – Approval status. Valid options are: ‘U’ – not submitted, ‘S’ – submitted, ‘A’ – approved, ‘R’ – rejected, ‘P’ – pay scheduled.

    Example

    GET https://triplogmileage.com/web/api/receipts?type=trip&startDate=2015-12-31&[email protected]&activity=Business&status=A