Get Invoice Summaries
Retrieves all generated invoice summaries (main difference is not including individual invoice lines for the visits) that match the yardId, carrierId, and periodCode attributes provided.
Query parameters
-
carrierId integer(int64)
-
periodCode string
Period for which the invoice will be generated. The invoices can be retrieved by period. Currently, only monthly periods in the format
YYYYMM
are supported, but in the future we might support others such as weekly periods in the form of '2025W12' -
yardId integer(int64)
GET
/api/billing/invoice/view/summary
curl \
-X GET https://api-dev.gatego.io/api/billing/invoice/view/summary
Response examples (200)
[
{
"id": 12345,
"yard_id": 67890,
"carrier_id": 11223,
"invoice_number": "IN23456",
"invoice_date": "2022-01-01",
"period_code": "202401",
"period_start": "2022-01-01T00:00:00Z",
"period_end": "2022-01-31T23:59:59Z",
"truck_config": {
"rate_type": "FLAT",
"flat_billing": {
"rate_per_month": "500.00",
"spots": 8,
"overage_rate_per_day_and_spot": "20.00",
"grace_period": "PT1H",
"day_calculation": "MODE_24HOUR_ROUNDING"
},
"daily_billing": {
"rate_per_day": "20.00",
"grace_period": "PT1H",
"day_calculation": "MODE_24HOUR_ROUNDING"
}
},
"trucks_section": {
"daily_billing": {
"billable_days": 165
},
"flat_billing": {
"amount_flat_only": 5000.0,
"overage_days": 62,
"overage_amount": 500.0
},
"amount": 42.0
},
"trailer_config": {
"rate_type": "FLAT",
"flat_billing": {
"rate_per_month": "500.00",
"spots": 8,
"overage_rate_per_day_and_spot": "20.00",
"grace_period": "PT1H",
"day_calculation": "MODE_24HOUR_ROUNDING"
},
"daily_billing": {
"rate_per_day": "20.00",
"grace_period": "PT1H",
"day_calculation": "MODE_24HOUR_ROUNDING"
}
},
"trailers_section": {
"daily_billing": {
"billable_days": 165
},
"flat_billing": {
"amount_flat_only": 5000.0,
"overage_days": 62,
"overage_amount": 500.0
},
"amount": 42.0
},
"adjustments_section": {
"amount": 100.0
},
"total_amount": 42.0,
"currency": "USD"
}
]