Skip to main content
Web API – Receipts
Updated over a week ago

List Receipts from Single Trip or Expense

Request URL

Query parameters

None

Example

Search Receipts

Request URL

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

JSON Response

{
"message": "OK",
"receipts": [
{
"id": 3310213,
"url": "https://triplog-virginia.s3.amazonaws.com/receipts/RECEIPTNAME.jpg",
"lastUpdated": "2024-07-05T16:51:52.419Z",
"expense": {
"id": 20001953,
"url": "https://www.triplogmileage.com/web/api/expenses/20001953",
"lastUpdated": "2024-07-05T16:51:51.456Z",
"user": {
"id": 297603,
"url": "https://www.triplogmileage.com/web/api/users/297603",
"email": "[email protected]",
"display": "Driver, TripLog"
},
"date": "2024-07-04T07:00:00.000Z",
"category": "CC-Purchases",
"subcategory": null,
"vehicle": null,
"odometer": null,
"activity": "Business",
"merchant": "MagRonalds",
"location": null,
"amount": 40.0,
"tax": 0.0,
"tags": null,
"notes": null,
"status": "Not Submitted",
"statusUpdateTime": null,
"statusUpdatedBy": null,
"reminder": false,
"reminderNumIntervals": null,
"reminderInterval": null,
"reminderMileage": null,
"receipts": "https://www.triplogmileage.com/web/api/expenses/20001953/receipts"
},
"trip": null,
"dateUploaded": "2024-07-05T16:51:52.000Z",
"idx": 0,
"thumbnailUrl": null,
"timeEntry": null
}
]
}

Did this answer your question?