Get the config for the requested yard including carrier configs
Retrieve the billing configuration for a specific yard including the full configuration of all its configured carriers.
Path parameters
-
The ID of the yard for which to retrieve the billing configuration
GET
/api/automated-billing/config/yard/{yardId}/view/carrierConfigs
curl \
-X GET https://api-dev.gatego.io/api/automated-billing/config/yard/{yardId}/view/carrierConfigs
Response examples (200)
{
"id": 1,
"yard_id": 100,
"enabled": true,
"carrier_configs": [
{
"id": 1,
"yard_id": 100,
"carrier_id": 200,
"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"
}
},
"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"
}
},
"emails": [
"contact1@carrier.com",
"contact2@carrier.com"
],
"last_modified_at": "2023-04-06T11:25:42Z",
"last_modified_by": "355c30f0-96d2-4dbe-bfe8-f8dd9eb7f778"
}
],
"last_modified_at": "2023-04-06T11:25:42Z",
"last_modified_by": "355c30f0-96d2-4dbe-bfe8-f8dd9eb7f778"
}