> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.milenow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.milenow.com/_mcp/server.

# Get FTL options

GET https://lastmile.milenow.com/index.php/api/v1/partners/shipments/options

Company token. Valid values for a new FTL: payment terms, shipping lines, shipping methods, container categories with their products, container sizes, document types, vendors and countries. Send a name or its id in the FTL. See [reference data](/ftl-trips/guides/reference-data).

Reference: https://docs.milenow.com/ftl-trips/api-reference/ftl/get-ftl-options

## Authentication

- `Authorization` header (bearer token, required) — Send `Authorization: Bearer <token>`. Company endpoints take the company API token from `POST /api/v1/partners/login`. `/transporters` endpoints take the transporter token from `POST /api/v1/partners/transporters/login`. You can also send the token as an `access_token` query parameter or body field.

## Response

### 200

Success

- `status` (integer, required)
- `msg` (string, required)
- `msgs` (list of string, required)
- `data` (FtlOptions, required)

## Errors

### 401 Unauthorized Error

Missing, invalid or expired token.

- `status` (integer, required) — Same as the HTTP status code.
- `msg` (string, required) — Summary of the problem. When there are several problems it says how many.
- `msgs` (list of string, required) — Every problem found. Validation lists all problems at once, so fix them all before you retry.
- `data` (list of any, required) — Always an empty list on errors.

### 429 Too Many Requests Error

Rate limit reached. Wait `Retry-After` seconds.

- `status` (integer, required) — Same as the HTTP status code.
- `msg` (string, required) — Summary of the problem. When there are several problems it says how many.
- `msgs` (list of string, required) — Every problem found. Validation lists all problems at once, so fix them all before you retry.
- `data` (list of any, required) — Always an empty list on errors.

## Types

### FtlOptions

- `payment_terms` (list of IdName, optional)
- `shipping_lines` (list of IdName, optional)
- `shipping_methods` (list of IdName, optional)
- `categories` (list of FtlOptionsCategoriesItems, optional)
- `container_sizes` (list of string, optional)
- `document_types` (list of IdName, optional)
- `vendor_required` (boolean, optional) — When `true`, every new FTL needs `vendor`.
- `vendors` (list of IdName, optional) — Empty unless `vendor_required` is `true`.
- `vendor_categories` (list of IdName, optional)
- `countries` (list of FtlOptionsCountriesItems, optional)

### IdName

- `id` (integer, optional)
- `name` (string, optional)

### FtlOptionsCategoriesItems

- `id` (integer, optional)
- `name` (string, optional)
- `products` (list of IdName, optional) — Container products in this category.

### FtlOptionsCountriesItems

- `id` (integer, optional)
- `name` (string, optional)
- `short_name` (string, optional)

## Examples

**Response**

```json
{
  "status": 200,
  "msg": "Shipment options fetched successfully",
  "msgs": [],
  "data": {
    "payment_terms": [
      {
        "id": 32,
        "name": "Company Credit"
      }
    ],
    "shipping_lines": [
      {
        "id": 10,
        "name": "MAERSK"
      },
      {
        "id": 11,
        "name": "MSC"
      }
    ],
    "shipping_methods": [
      {
        "id": 3,
        "name": "land"
      }
    ],
    "categories": [
      {
        "id": 702810,
        "name": "Containers",
        "products": [
          {
            "id": 875776,
            "name": "20ft GP Container - Full"
          },
          {
            "id": 875777,
            "name": "40ft GP Container - Full"
          },
          {
            "id": 875789,
            "name": "40ft Container - Empty"
          }
        ]
      }
    ],
    "container_sizes": [
      "20ft",
      "40ft",
      "40ft HC",
      "45ft HC"
    ],
    "document_types": [
      {
        "id": 1,
        "name": "Bill of Landing"
      }
    ],
    "vendor_required": false,
    "vendors": [],
    "vendor_categories": [],
    "countries": [
      {
        "id": 194,
        "name": "Saudi Arabia",
        "short_name": "SA"
      }
    ]
  }
}
```

**SDK Code**

```python Example
import requests

url = "https://lastmile.milenow.com/index.php/api/v1/partners/shipments/options"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Example
const url = 'https://lastmile.milenow.com/index.php/api/v1/partners/shipments/options';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://lastmile.milenow.com/index.php/api/v1/partners/shipments/options"

	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(res)
	fmt.Println(string(body))

}
```

```ruby Example
require 'uri'
require 'net/http'

url = URI("https://lastmile.milenow.com/index.php/api/v1/partners/shipments/options")

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
```

```java Example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://lastmile.milenow.com/index.php/api/v1/partners/shipments/options")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://lastmile.milenow.com/index.php/api/v1/partners/shipments/options', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Example
using RestSharp;

var client = new RestClient("https://lastmile.milenow.com/index.php/api/v1/partners/shipments/options");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://lastmile.milenow.com/index.php/api/v1/partners/shipments/options")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```