Create or updates a carrier config within a yard
Create a new billing carrier configuration within the specified yard, or updates it if it already exists. Null fields will be set to null in the final resource
Path parameters
-
The ID of the carrier for which to update a billing configuration
-
The ID of the yard
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
PUT
/api/automated-billing/config/yard/{yardId}/carrier/{carrierId}
curl \
-X PUT https://api-dev.gatego.io/api/automated-billing/config/yard/{yardId}/carrier/{carrierId} \
-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"
}