{
  "opencollection": "1.0.0",
  "info": {
    "name": "Horizon API V1 AccountExternalTruckIdentifier AddOns API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "AddOns",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve AutoAddOns for an Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/accounts/:account-id/auto_add_ons",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "page[limit]",
                "value": "",
                "type": "query",
                "description": "The maximum number of paginated results to return"
              },
              {
                "name": "page[after]",
                "value": "",
                "type": "query",
                "description": "The cursor to start paginating after"
              },
              {
                "name": "page[before]",
                "value": "",
                "type": "query",
                "description": "The cursor to stop paginating at"
              },
              {
                "name": "filter[account_type]",
                "value": "",
                "type": "query",
                "description": "AccountType filter. See `AccountType` enum for accepted values."
              }
            ]
          },
          "docs": "Retrieve `AutoAddOns` for an `Account`"
        },
        {
          "info": {
            "name": "Delete AutoAddOn for a Customer Account",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.tread-horizon.com/v1/accounts/:account-id/auto_add_ons/:auto-add-on-id/customer_add_on",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "auto-add-on-id",
                "value": "",
                "type": "path",
                "description": "AddOn ID"
              }
            ]
          },
          "docs": "Delete `AutoAddOn` for a `Customer Account`"
        },
        {
          "info": {
            "name": "Delete AutoAddOn for a Vendor Account",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.tread-horizon.com/v1/accounts/:account-id/auto_add_ons/:auto-add-on-id/vendor_add_on",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "account-id",
                "value": "",
                "type": "path",
                "description": "Account ID"
              },
              {
                "name": "auto-add-on-id",
                "value": "",
                "type": "path",
                "description": "AddOn ID"
              }
            ]
          },
          "docs": "Delete `AutoAddOn` for a `Vendor Account`"
        },
        {
          "info": {
            "name": "Retrieve AddOns visible to the current Company",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/add_ons",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "page[limit]",
                "value": "",
                "type": "query",
                "description": "The maximum number of paginated results to return"
              },
              {
                "name": "page[after]",
                "value": "",
                "type": "query",
                "description": "The cursor to start paginating after"
              },
              {
                "name": "page[before]",
                "value": "",
                "type": "query",
                "description": "The cursor to stop paginating at"
              }
            ]
          },
          "docs": "Retrieve `AddOns` visible to the current authenticated `Company`."
        },
        {
          "info": {
            "name": "Create an AddOn",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.tread-horizon.com/v1/add_ons",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an `AddOn`"
        },
        {
          "info": {
            "name": "Retrieve a single AddOn",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/add_ons/:id",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "AddOn ID"
              }
            ]
          },
          "docs": "Retrieve `AddOn` by ID"
        },
        {
          "info": {
            "name": "Update an AddOn",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.tread-horizon.com/v1/add_ons/:id",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "AddOn ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an `AddOn` by ID."
        },
        {
          "info": {
            "name": "Retrieve AddOns that belong to a Company",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/companies/:company-id/add_ons",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "company-id",
                "value": "",
                "type": "path",
                "description": "Company ID"
              }
            ]
          },
          "docs": "Retrieve `AddOns` that belong to a `Company`."
        },
        {
          "info": {
            "name": "Create an AddOn for a Company",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.tread-horizon.com/v1/companies/:company-id/add_ons",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "company-id",
                "value": "",
                "type": "path",
                "description": "Company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an `AddOn` for a `Company`"
        },
        {
          "info": {
            "name": "Retrieve fuel surcharge rate for an AddOn",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/companies/:company-id/add_ons/:id/fuel_surcharge_rate",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "company-id",
                "value": "",
                "type": "path",
                "description": "Company ID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "AddOn ID"
              },
              {
                "name": "filter[date]",
                "value": "",
                "type": "query",
                "description": "Date to fetch the fuel surcharge rate for. Defaults to current date if not provided."
              }
            ]
          },
          "docs": "Retrieve fuel surcharge rate for a FuelSurcharge type AddOn for a given date. The AddOn must have `add_on_rate_type` of `FuelSurcharge` and have an associated `fuel_surcharge_schedule`."
        },
        {
          "info": {
            "name": "Retrieve AutoAddOns for a Driver",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/drivers/:driver-id/auto_add_ons",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "driver-id",
                "value": "",
                "type": "path",
                "description": "Driver ID"
              },
              {
                "name": "page[limit]",
                "value": "",
                "type": "query",
                "description": "The maximum number of paginated results to return"
              },
              {
                "name": "page[after]",
                "value": "",
                "type": "query",
                "description": "The cursor to start paginating after"
              },
              {
                "name": "page[before]",
                "value": "",
                "type": "query",
                "description": "The cursor to stop paginating at"
              }
            ]
          },
          "docs": "Retrieve `AutoAddOns` for a `Driver`"
        },
        {
          "info": {
            "name": "Delete AutoAddOn for a Driver",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.tread-horizon.com/v1/drivers/:driver-id/auto_add_ons/:id",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "driver-id",
                "value": "",
                "type": "path",
                "description": "Driver ID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "AddOn ID"
              }
            ]
          },
          "docs": "Delete `AutoAddOn` for a `Driver`"
        }
      ]
    }
  ],
  "bundled": true
}