---
updatedAt: 2025-01-29T19:40:45.000Z
agentTools:
  projectIndex: https://developer.truckstop.com/llms.txt
---

# Contribute rates data

Submit an array of rated loads to contribute to the accuracy of the predictive model that powers Rate Insights.

<TutorialTile emoji="🦉" slug="submit-booked-rates-via-csv-file" title="Submit booked rates via CSV file" />

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Rate Insights",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.truckstop.com",
      "description": "Production Environment"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "Currency": {
        "type": "object",
        "properties": {
          "CurrencyCode": {
            "type": "string",
            "example": "USD"
          },
          "Amount": {
            "type": "number",
            "example": 123.45
          },
          "Type": {
            "type": "string",
            "example": "Flat"
          }
        }
      },
      "RateEvent": {
        "type": "object",
        "properties": {
          "LoadNumber": {
            "type": "string",
            "example": "LD1334"
          },
          "Workflow": {
            "type": "string",
            "example": "TenderedRate"
          },
          "PickupDateTime": {
            "type": "string",
            "example": "2024-10-01T00:00:00.000Z"
          },
          "DeliveryDateTime": {
            "type": "string",
            "example": "2024-10-01T00:00:00.000Z"
          },
          "BookedDateTime": {
            "type": "string",
            "example": "2024-10-01T00:00:00.000Z"
          },
          "ContractType": {
            "type": "string",
            "example": "Spot"
          },
          "Rate": {
            "$ref": "#/components/schemas/Currency"
          },
          "Fuel": {
            "$ref": "#/components/schemas/Currency"
          },
          "Origin": {
            "$ref": "#/components/schemas/Location"
          },
          "Destination": {
            "$ref": "#/components/schemas/Location"
          },
          "AdditionalStops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Location"
            }
          },
          "Weight": {
            "type": "object",
            "properties": {
              "Quantity": {
                "type": "number",
                "example": 23000
              },
              "Unit": {
                "type": "string",
                "example": "LBS"
              }
            }
          },
          "Length": {
            "type": "object",
            "properties": {
              "Quantity": {
                "type": "number",
                "example": 53
              },
              "Unit": {
                "type": "string",
                "example": "feet"
              }
            }
          },
          "Width": {
            "type": "object",
            "properties": {
              "Quantity": {
                "type": "number",
                "example": 10
              },
              "Unit": {
                "type": "string",
                "example": "feet"
              }
            }
          },
          "Density": {
            "type": "object",
            "properties": {
              "Quantity": {
                "type": "number",
                "example": 530
              },
              "Unit": {
                "type": "string",
                "example": "CubicFeet"
              }
            }
          },
          "Distance": {
            "type": "object",
            "properties": {
              "Quantity": {
                "type": "number",
                "example": 950
              },
              "Unit": {
                "type": "string",
                "example": "Miles"
              }
            }
          },
          "TransportationMode": {
            "type": "string",
            "example": "TL"
          },
          "FreightClassID": {
            "type": "number",
            "example": 50
          },
          "EquipmentCode": {
            "type": "string",
            "example": "V"
          },
          "CommodityId": {
            "type": "number",
            "example": 40
          },
          "Carrier": {
            "type": "object",
            "properties": {
              "Name": {
                "type": "string",
                "example": "Snowman Trucking"
              },
              "MotorCarrierNumber": {
                "type": "string",
                "example": 12345
              },
              "UsDotNumber": {
                "type": "string",
                "example": 12345
              },
              "ContactInfo": {
                "type": "object",
                "properties": {
                  "Name": {
                    "type": "string",
                    "example": "Mary Jones"
                  },
                  "PhoneNumber": {
                    "type": "string",
                    "example": "123-456-7890"
                  },
                  "EmailAddress": {
                    "type": "string",
                    "example": "MaryJ@ABCCo.com"
                  }
                }
              }
            }
          },
          "Customer": {
            "type": "object",
            "properties": {
              "Name": {
                "type": "string",
                "example": "ABC Warehouse"
              },
              "ContactInfo": {
                "type": "object",
                "properties": {
                  "Name": {
                    "type": "string",
                    "example": "Mary Jones"
                  },
                  "PhoneNumber": {
                    "type": "string",
                    "example": "123-456-7890"
                  },
                  "EmailAddress": {
                    "type": "string",
                    "example": "MaryJ@ABCCo.com"
                  }
                }
              }
            }
          },
          "EquipmentOptions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "X",
              "T"
            ]
          },
          "LoadCount": {
            "type": "number",
            "example": 1
          }
        }
      },
      "Location": {
        "type": "object",
        "properties": {
          "Address": {
            "type": "string",
            "example": "123 Main St."
          },
          "City": {
            "type": "string",
            "example": "Chicago"
          },
          "StateCode": {
            "type": "string",
            "example": "IL"
          },
          "ZipCode": {
            "type": "string",
            "example": 60007
          },
          "Latitude": {
            "type": "number",
            "example": 41.8781
          },
          "Longitude": {
            "type": "number",
            "example": 87.6298
          }
        }
      }
    }
  },
  "paths": {
    "/ratecrowdsourcing/v2/rates": {
      "post": {
        "tags": [
          "Rate Crowd Sourcing"
        ],
        "summary": "Contribute rates data",
        "description": "Submit an array of rated loads to contribute to the accuracy of the predictive model that powers Rate Insights.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RateEvents": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/RateEvent"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  }
}
```