Listar gastos
URL de la solicitud
Parámetros de consulta
startDate – Formato «aaaa-mm-dd», por ej. «2015-01-31» significa medianoche del 31 de enero de 2015 en su zona horaria local. Inclusivo.
endDate – Formato «aaaa-mm-dd», por ej. «2015-12-31». Inclusivo.
userEmail – Dirección de correo electrónico de un usuario específico a buscar.
activity – Actividad del viaje, por ej. «Business».
category – Income, Sales, Services, Reimburse, Dividend, Gas, Oil, Tires, Repairs, Insurance, Registration, Garage, Lease, Taxes, Interest, Other, Advertising, BusinessHome, Commissions, Contractors, CostOfGoods, Depletion, Depreciation, EmpBenefit, Gifts, InsuranceBiz, InterestMort, InterestOther, LegalProf, Meals, Office, Pension, RentEquipment, RentOther, RepairsBiz, Supplies, TaxesLicenses, Transporation, TravelBaggage, TravelLodging, TravelMisc, Utilities, Wages, OtherBiz, BankTransfer, etc.
minLastUpdated – La fecha en que se modificó o creó el registro. Formato «aaaa-mm-dd». Inclusivo.
maxLastUpdated – La fecha en que se modificó o creó el registro. Formato «aaaa-mm-dd». Inclusivo.
status – A = Aprobado, U = No enviado, P = Pago programado, S = Enviado, R = Rechazado
Nota
Debe proporcionar al menos uno de los parámetros de consulta en la solicitud.
La fecha y hora devueltas en la respuesta están en la zona horaria UTC, según el estándar JSON.
Ejemplo
Ejemplo de respuesta JSON
{
"message": "OK",
"expenses": [
{
"id": 20001951,
"url": "https://app.triplog.net/web/api/expenses/20001951",
"lastUpdated": "2024-07-05T16:49:34.390Z",
"user": {
"id": 297603,
"url": "https://app.triplog.net/web/api/users/297603",
"email": "bt@bizlog.com",
"display": "Driver, TripLog"
},
"date": "2024-07-03T07:00:00.000Z",
"category": "CC-Purchases",
"subcategory": null,
"vehicle": null,
"odometer": null,
"activity": "Business",
"merchant": "tesco",
"location": null,
"amount": 20.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://app.triplog.net/web/api/expenses/20001951/receipts"
},
{
"id": 20001953,
"url": "https://app.triplog.net/web/api/expenses/20001953",
"lastUpdated": "2024-07-05T16:51:51.456Z",
"user": {
"id": 297603,
"url": "https://app.triplog.net/web/api/users/297603",
"email": "bt@bizlog.com",
"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://app.triplog.net/web/api/expenses/20001953/receipts"
}
]
}