My bids and their status
curl --request GET \
--url https://agent.lanesurf.com/v1/carrier/bids \
--header 'Authorization: Bearer <token>'import requests
url = "https://agent.lanesurf.com/v1/carrier/bids"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agent.lanesurf.com/v1/carrier/bids', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agent.lanesurf.com/v1/carrier/bids",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://agent.lanesurf.com/v1/carrier/bids"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://agent.lanesurf.com/v1/carrier/bids")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.lanesurf.com/v1/carrier/bids")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"bids": [
{
"bid_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"load_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "submitted",
"created_at": "2023-11-07T05:31:56Z",
"rate": 123,
"truck_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"note": "<string>",
"action": "created"
}
]
}{
"error": "invalid API key",
"code": "invalid_api_key"
}{
"error": "this API key can't use broker routes",
"code": "wrong_role"
}{
"error": "too many requests for this API key; slow down",
"code": "rate_limited"
}{
"error": "invalid API key",
"code": "invalid_api_key",
"missing": [
"<string>"
],
"next_step": "<string>",
"current_rate": 123,
"request_id": "req_0192f3a4-7b1c-7d2e-9f00-1a2b3c4d5e6f"
}{
"error": "a Lanesurf system behind the API failed; try again later",
"code": "upstream_error"
}{
"error": "invalid API key",
"code": "invalid_api_key",
"missing": [
"<string>"
],
"next_step": "<string>",
"current_rate": 123,
"request_id": "req_0192f3a4-7b1c-7d2e-9f00-1a2b3c4d5e6f"
}Loads and bids API
My bids
Your bids and where each one stands.
GET
/
v1
/
carrier
/
bids
My bids and their status
curl --request GET \
--url https://agent.lanesurf.com/v1/carrier/bids \
--header 'Authorization: Bearer <token>'import requests
url = "https://agent.lanesurf.com/v1/carrier/bids"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agent.lanesurf.com/v1/carrier/bids', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://agent.lanesurf.com/v1/carrier/bids",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://agent.lanesurf.com/v1/carrier/bids"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://agent.lanesurf.com/v1/carrier/bids")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.lanesurf.com/v1/carrier/bids")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"bids": [
{
"bid_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"load_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "submitted",
"created_at": "2023-11-07T05:31:56Z",
"rate": 123,
"truck_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"note": "<string>",
"action": "created"
}
]
}{
"error": "invalid API key",
"code": "invalid_api_key"
}{
"error": "this API key can't use broker routes",
"code": "wrong_role"
}{
"error": "too many requests for this API key; slow down",
"code": "rate_limited"
}{
"error": "invalid API key",
"code": "invalid_api_key",
"missing": [
"<string>"
],
"next_step": "<string>",
"current_rate": 123,
"request_id": "req_0192f3a4-7b1c-7d2e-9f00-1a2b3c4d5e6f"
}{
"error": "a Lanesurf system behind the API failed; try again later",
"code": "upstream_error"
}{
"error": "invalid API key",
"code": "invalid_api_key",
"missing": [
"<string>"
],
"next_step": "<string>",
"current_rate": 123,
"request_id": "req_0192f3a4-7b1c-7d2e-9f00-1a2b3c4d5e6f"
}This carrier’s bids (from any of its keys), newest first (up to 200). This is how a carrier learns the outcome: poll it.
Keys under review (
The broker’s choice wins: an
needs_review) can call this too.
status | Meaning |
|---|---|
submitted | The broker has it. The load is still open |
accepted | The broker accepted this bid |
declined | The broker passed on this bid. Send it again with a new rate to reopen it |
load_closed | The load was covered some other way, closed, or booked to someone else, and the broker made no choice on this bid |
incomplete | The bid was recorded but never reached the broker (a failure mid-bid). POST it again to finish it (see Bidding) |
accepted or declined bid keeps that status after the load closes.