Update an existing carrier config within a yard by its unique id
Update the billing configuration for a carrier within the specified yard by its id (which is equivalent to using the pair yardId-carrierId). If a field is null in the request, it will be ignored and the existing value will be kept.
Path parameters
-
The ID of the yard-carrier configuration
Body
-
trailer_config object
Configuration for a billable item (currently a vehicle) within a specific Carrier in a Yard
Additional properties are allowed.
-
truck_config object
Configuration for a billable item (currently a vehicle) within a specific Carrier in a Yard
Additional properties are allowed.
-
emails array[string]
List of emails to send invoices to
PATCH
/api/automated-billing/config/yard-carrier/{yardCarrierConfigId}
curl \
-X PATCH https://api-dev.gatego.io/api/automated-billing/config/yard-carrier/{yardCarrierConfigId} \
-H "Content-Type: application/json" \
-d '{"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"]}'
Request examples
{
"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"
]
}
Response examples (200)
{
"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"
}