Get all yards configs including carrier configs

GET /api/automated-billing/config/yard/view/carrierConfigs

Retrieve the billing configurations for all yards in the organization including the full configuration of all their configured carriers

Responses

  • default application/json

    List of yard configurations with the list of configured carrierIds

    Hide response attributes Show response attributes object
    • id integer(int64)

      Unique identifier of the yard configuration

    • yard_id integer(int64)

      Identifier of the yard

    • enabled boolean

      Indicates if the yard configuration is enabled

    • carrier_configs array[object]

      List of carrier configurations associated with the yard

      Carrier configuration within a yard

      Hide carrier_configs attributes Show carrier_configs attributes object
      • id integer(int64)

        Unique identifier of the yard-carrier configuration

      • yard_id integer(int64)

        Identifier of the yard associated with this configuration

      • carrier_id integer(int64)

        Identifier of the carrier associated with this configuration

      • trailer_config object

        Configuration for a billable item (currently a vehicle) within a specific Carrier in a Yard

        Additional properties are allowed.

        Hide trailer_config attributes Show trailer_config attributes object
        • rate_type Required

          Type of rate applied to the carrier configuration

        • flat_billing object

          Billing options for rate type FLAT. (It will be ignored if the rate type is not FLAT)

          Additional properties are allowed.

          Hide flat_billing attributes Show flat_billing attributes object
          • rate_per_month string Required

            Rate charged per month. Json type must be string and not number to prevent rounding errors when there are decimals

          • spots integer(int32)

            The number of spots included in the flat rate before overage charges apply

          • overage_rate_per_day_and_spot string

            Overage rate charged per day for each spot beyond the included number of spots. Json type must be string and not number to prevent rounding errors when there are decimals

          • grace_period string

            ISO8606 Duration (eg. 30 minutes='PT30M', 1 hour='PT1H'). Set to null for no grace period

          • day_calculation

            Day calculation mode

        • daily_billing object

          Billing options for rate type DAILY (It will be ignored if the rate type is not DAILY)

          Additional properties are allowed.

          Hide daily_billing attributes Show daily_billing attributes object
          • rate_per_day string Required

            Rate charged per day. Json type must be string and not number to prevent rounding errors when there are decimals

          • grace_period string

            ISO8606 Duration (eg. 30 minutes='PT30M', 1 hour='PT1H'). Set to null for no grace period

          • day_calculation

            Day calculation mode

      • truck_config object

        Configuration for a billable item (currently a vehicle) within a specific Carrier in a Yard

        Additional properties are allowed.

        Hide truck_config attributes Show truck_config attributes object
        • rate_type Required

          Type of rate applied to the carrier configuration

        • flat_billing object

          Billing options for rate type FLAT. (It will be ignored if the rate type is not FLAT)

          Additional properties are allowed.

          Hide flat_billing attributes Show flat_billing attributes object
          • rate_per_month string Required

            Rate charged per month. Json type must be string and not number to prevent rounding errors when there are decimals

          • spots integer(int32)

            The number of spots included in the flat rate before overage charges apply

          • overage_rate_per_day_and_spot string

            Overage rate charged per day for each spot beyond the included number of spots. Json type must be string and not number to prevent rounding errors when there are decimals

          • grace_period string

            ISO8606 Duration (eg. 30 minutes='PT30M', 1 hour='PT1H'). Set to null for no grace period

          • day_calculation

            Day calculation mode

        • daily_billing object

          Billing options for rate type DAILY (It will be ignored if the rate type is not DAILY)

          Additional properties are allowed.

          Hide daily_billing attributes Show daily_billing attributes object
          • rate_per_day string Required

            Rate charged per day. Json type must be string and not number to prevent rounding errors when there are decimals

          • grace_period string

            ISO8606 Duration (eg. 30 minutes='PT30M', 1 hour='PT1H'). Set to null for no grace period

          • day_calculation

            Day calculation mode

      • emails array[string]

        List of emails to send invoices to

      • last_modified_at

        Timestamp when the configuration was last modified

      • last_modified_by string

        Username of the last modifier of this configuration

    • last_modified_at

      Timestamp when the configuration was last modified

    • last_modified_by string

      Username of the last modifier of this configuration

  • 401

    Not Authorized

  • 403

    Not Allowed

GET /api/automated-billing/config/yard/view/carrierConfigs
curl \
 --request GET 'https://api-dev.gatego.io/api/automated-billing/config/yard/view/carrierConfigs'
Response examples (default)
[
  {
    "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"
  }
]