Zum Hauptinhalt springen

Web API – Ausgaben

Web API-Dokumentation für Ausgabendatensätze

Ausgaben auflisten

Anfrage-URL

Abfrageparameter

  • startDate – Format „yyyy-mm-dd”, z. B. bedeutet „2015-01-31” Mitternacht des 31. Januar 2015 in Ihrer Zeitzone. Einschließlich.

  • endDate – Format „yyyy-mm-dd”, z. B. „2015-12-31”. Einschließlich.

  • userEmail – E-Mail-Adresse eines bestimmten Benutzers, nach dem gesucht werden soll.

  • activity – Fahrtaktivität, z. B. „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 – Datum, an dem der Datensatz geändert oder erstellt wurde. Format „yyyy-mm-dd”. Einschließlich.

  • maxLastUpdated – Datum, an dem der Datensatz geändert oder erstellt wurde. Format „yyyy-mm-dd”. Einschließlich.

  • status – A = Approved, U = Unsubmitted, P = Pay Scheduled, S = Submitted, R = Rejected

Hinweis

Sie müssen in der Anfrage mindestens einen der Abfrageparameter angeben.
Das in der Antwort zurückgegebene Datum/Uhrzeit ist gemäß dem JSON-Standard in der UTC-Zeitzone angegeben.

Beispiel

Beispiel für eine JSON-Antwort

{
"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"
}
]
}
Hat dies deine Frage beantwortet?