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

# Send air waybill

POST https://localhost:8000/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/{cargo_on_flight_air_waybill_id}
Content-Type: application/json

Sends an air waybill's FWB and/or the FHL for chosen house air waybills to the airline through CargoAi; the airline answers later. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiSendAirWaybillReq) -> (CargoAiAirWaybillMessage1)

Reference: https://docs.chrt.com/dev/api-reference/api-reference/cargo-on-flight-integrations/cargoai/send-air-waybill-v-1

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://localhost:8000` (Local, default)
- `https://api.dev.chrt.com` (Development)
- `https://api.staging.chrt.com` (Staging)
- `https://api.chrt.com` (Production)

## Request

### Path parameters

- `cargo_on_flight_air_waybill_id` (string, required)

### Body (application/json)

This endpoint expects an object.

- `send_fwb` (boolean, required)
- `cargo_on_flight_house_air_waybill_ids` (list of string, optional)

## Response

### 200

Successful Response

- `_id` (string, required)
- `awb_number` (string, required) — IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'.
- `cargo_on_flight_air_waybill_id` (string, required)
- `cargo_on_flight_booking_id` (string, required)
- `cargo_on_flight_integration` ("cargoai", required)
- `created_at_timestamp` (datetime, required)
- `created_by_org_id` (string, required) — Must be a string starting with `org_`
- `fwb_sent` (boolean, required)
- `request` (CargoAiFwbAndFhlRequest1, required)
- `schema_version` (integer, required)
- `send_status` (enum, required)
  - Allowed values: `pending`, `transmitted`, `refused`, `unanswered`
- `updated_at_timestamp` (datetime, required)
- `cargo_on_flight_house_air_waybill_ids` (list of string, optional)
- `pending_until_timestamp` (datetime, optional, nullable)
- `response_error_message` (string, optional, nullable)
- `response_status_code` (integer, optional, nullable)

## Errors

### 422 Cargoai Send Air Waybill V1request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### CargoAiFwbAndFhlRequest1

- `awb_number` (string, required)
- `awb_status` ("PENDING_DELIVERY", required)
- `consignee` (CargoAiFwbAndFhlParty1, required)
- `shipper` (CargoAiFwbAndFhlParty1, required)
- `userCompanyName` (string, required)
- `userEmail` (string, required)
- `agent` (CargoAiFwbAndFhlAgent1, optional, nullable)
- `chargesDeclaration` (CargoAiFwbAndFhlChargesDeclaration1, optional, nullable)
- `customsOrigin` (string, optional, nullable)
- `execution` (CargoAiFwbAndFhlExecution1, optional, nullable)
- `handling` (CargoAiFwbAndFhlHandling1, optional, nullable)
- `hawbs` (list of CargoAiFwbAndFhlHouse1, optional)
- `isFhlOnly` (boolean, optional, default: false)
- `notify` (CargoAiFwbAndFhlParty1, optional, nullable)
- `oci` (CargoAiFwbAndFhlOci1, optional, nullable)
- `otherCharges` (list of CargoAiFwbAndFhlOtherCharge1, optional)
- `rates` (list of CargoAiFwbAndFhlRate1, optional)
- `routingDetails` (list of CargoAiFwbAndFhlRouting1, optional)

### ValidationError

- `loc` (list of LocationItem, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (map from string to any, optional)
- `input` (any, optional)

### CargoAiFwbAndFhlParty1

- `address` (CargoAiFwbAndFhlAddress1, required)
- `name` (string, required)
- `account_number` (string, optional, nullable)
- `email` (string, optional, nullable)
- `fax` (string, optional, nullable)
- `phone` (string, optional, nullable)

### CargoAiFwbAndFhlAgent1

- `iata` (string, required)
- `name` (string, required)
- `place` (string, required)
- `accountNumber` (string, optional, nullable)
- `cass` (string, optional, nullable)

### CargoAiFwbAndFhlChargesDeclaration1

- `charge_code` (string, required)
- `currency_code` (string, required)
- `values_for_carriage` (double, optional, nullable)
- `values_for_custom` (double, optional, nullable)
- `values_for_insurance` (double, optional, nullable)
- `weight_or_valuation` (enum, optional, nullable)
  - Allowed values: `P`, `C`

### CargoAiFwbAndFhlExecution1

- `carrier_signature` (string, required)
- `date` (string, required)
- `place` (string, required)
- `shipper_signature` (string, required)

### CargoAiFwbAndFhlHandling1

- `otherServiceInformation` (string, optional, nullable)
- `specialHandling` (list of CargoAiFwbAndFhlCode1, optional)
- `specialServiceInformation` (string, optional, nullable)

### CargoAiFwbAndFhlHouse1

- `gross_weight` (CargoAiFwbAndFhlWeightOrVolume1, required)
- `hawb_number` (string, required)
- `locations` (CargoAiFwbAndFhlHouseLocations1, required)
- `mawbNumber` (string, required)
- `number_of_pieces` (integer, required)
- `charge_code` (string, optional, nullable)
- `commodity` (string, optional, nullable)
- `currency_code` (string, optional, nullable)
- `other` (enum, optional, nullable)
  - Allowed values: `P`, `C`
- `slac` (integer, optional, nullable)
- `values_for_carriage` (double, optional, nullable)
- `values_for_custom` (double, optional, nullable)
- `values_for_insurance` (double, optional, nullable)

### CargoAiFwbAndFhlOci1

- `origin_country_code` (string, required)
- `security` (CargoAiFwbAndFhlOciSecurity1, optional, nullable)

### CargoAiFwbAndFhlOtherCharge1

- `charge_amount` (double, required)
- `charge_code` (string, required)
- `entitlement_code` (enum, required)
  - Allowed values: `A`, `C`
- `pc_indicator` (enum, required)
  - Allowed values: `P`, `C`

### CargoAiFwbAndFhlRate1

- `gross_weight` (CargoAiFwbAndFhlWeightOrVolume1, required)
- `number_of_pieces` (integer, required)
- `rate_class_code` (string, required)
- `charge_amount` (double, optional, nullable)
- `chargeable_weight` (double, optional, nullable)
- `commodity_item_number` (string, optional, nullable)
- `dims` (list of CargoAiFwbAndFhlDimension1, optional)
- `hsc` (list of integer, optional)
- `nature_and_quantity_of_goods` (string, optional, nullable)
- `rate_or_charge` (double, optional, nullable)
- `slac` (integer, optional, nullable)
- `uld` (list of CargoAiFwbAndFhlUld1, optional)
- `volume` (CargoAiFwbAndFhlWeightOrVolume1, optional, nullable)

### CargoAiFwbAndFhlRouting1

- `carrier_code` (string, required)
- `from_airport_code` (string, required)
- `to_airport_code` (string, required)
- `flight_number` (string, optional, nullable)

### LocationItem

### CargoAiFwbAndFhlAddress1

- `country` (CargoAiFwbAndFhlCountry1, required)
- `line1` (string, required)
- `city` (CargoAiFwbAndFhlCity1, optional, nullable)
- `line2` (string, optional, nullable)
- `place` (string, optional, nullable)
- `postal_code` (string, optional, nullable)
- `state_province` (string, optional, nullable)

### CargoAiFwbAndFhlCode1

- `code` (string, required)

### CargoAiFwbAndFhlWeightOrVolume1

- `uom` (enum, required)
  - Allowed values: `K`, `L`, `MC`, `CF`
- `value` (double, required)

### CargoAiFwbAndFhlHouseLocations1

- `port_of_destination` (CargoAiFwbAndFhlCode1, required)
- `port_of_origin` (CargoAiFwbAndFhlCode1, required)

### CargoAiFwbAndFhlOciSecurity1

- `issuer_type` (enum, required)
  - Allowed values: `RA`, `KC`, `AC`, `RC`
- `regulated_agent` (string, required)
- `security_status` (string, required)
- `exemption_code` (string, optional, nullable)
- `expiry_date` (string, optional, nullable)
- `screener_name` (string, optional, nullable)
- `screening_datetime` (string, optional, nullable)
- `screening_methods` (list of string, optional)

### CargoAiFwbAndFhlDimension1

- `height` (double, required)
- `length` (double, required)
- `pcs` (integer, required)
- `uom` (enum, required)
  - Allowed values: `K`, `L`, `MC`, `CF`
- `width` (double, required)

### CargoAiFwbAndFhlUld1

- `number` (string, required)

### CargoAiFwbAndFhlCountry1

- `code` (string, required)
- `name` (string, optional, nullable)

### CargoAiFwbAndFhlCity1

- `code` (string, optional, nullable)
- `name` (string, optional, nullable)

## Examples

**Request**

```json
{
  "send_fwb": true
}
```

**Response**

```json
{
  "_id": "_id",
  "awb_number": "awb_number",
  "cargo_on_flight_air_waybill_id": "cargo_on_flight_air_waybill_id",
  "cargo_on_flight_booking_id": "cargo_on_flight_booking_id",
  "cargo_on_flight_integration": "cargoai",
  "created_at_timestamp": "2024-01-15T09:30:00Z",
  "created_by_org_id": "created_by_org_id",
  "fwb_sent": true,
  "request": {
    "awb_number": "awb_number",
    "awb_status": "PENDING_DELIVERY",
    "consignee": {
      "address": {
        "country": {
          "code": "code"
        },
        "line1": "line1"
      },
      "name": "name",
      "account_number": "account_number",
      "email": "email",
      "fax": "fax",
      "phone": "phone"
    },
    "shipper": {
      "address": {
        "country": {
          "code": "code"
        },
        "line1": "line1"
      },
      "name": "name",
      "account_number": "account_number",
      "email": "email",
      "fax": "fax",
      "phone": "phone"
    },
    "userCompanyName": "userCompanyName",
    "userEmail": "userEmail",
    "agent": {
      "iata": "iata",
      "name": "name",
      "place": "place",
      "accountNumber": "accountNumber",
      "cass": "cass"
    },
    "chargesDeclaration": {
      "charge_code": "charge_code",
      "currency_code": "currency_code",
      "values_for_carriage": 1.1,
      "values_for_custom": 1.1,
      "values_for_insurance": 1.1,
      "weight_or_valuation": "P"
    },
    "customsOrigin": "customsOrigin",
    "execution": {
      "carrier_signature": "carrier_signature",
      "date": "date",
      "place": "place",
      "shipper_signature": "shipper_signature"
    },
    "handling": {
      "otherServiceInformation": "otherServiceInformation",
      "specialHandling": [
        {
          "code": "code"
        }
      ],
      "specialServiceInformation": "specialServiceInformation"
    },
    "hawbs": [
      {
        "gross_weight": {
          "uom": "K",
          "value": 1.1
        },
        "hawb_number": "hawb_number",
        "locations": {
          "port_of_destination": {
            "code": "code"
          },
          "port_of_origin": {
            "code": "code"
          }
        },
        "mawbNumber": "mawbNumber",
        "number_of_pieces": 1
      }
    ],
    "isFhlOnly": true,
    "notify": {
      "address": {
        "country": {
          "code": "code"
        },
        "line1": "line1"
      },
      "name": "name",
      "account_number": "account_number",
      "email": "email",
      "fax": "fax",
      "phone": "phone"
    },
    "oci": {
      "origin_country_code": "origin_country_code",
      "security": {
        "issuer_type": "RA",
        "regulated_agent": "regulated_agent",
        "security_status": "security_status"
      }
    },
    "otherCharges": [
      {
        "charge_amount": 1.1,
        "charge_code": "charge_code",
        "entitlement_code": "A",
        "pc_indicator": "P"
      }
    ],
    "rates": [
      {
        "gross_weight": {
          "uom": "K",
          "value": 1.1
        },
        "number_of_pieces": 1,
        "rate_class_code": "rate_class_code"
      }
    ],
    "routingDetails": [
      {
        "carrier_code": "carrier_code",
        "from_airport_code": "from_airport_code",
        "to_airport_code": "to_airport_code"
      }
    ]
  },
  "schema_version": 1,
  "send_status": "pending",
  "updated_at_timestamp": "2024-01-15T09:30:00Z",
  "cargo_on_flight_house_air_waybill_ids": [
    "cargo_on_flight_house_air_waybill_ids"
  ],
  "pending_until_timestamp": "2024-01-15T09:30:00Z",
  "response_error_message": "response_error_message",
  "response_status_code": 1
}
```

**SDK Code**

```python
import requests

url = "https://localhost:8000/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/cargo_on_flight_air_waybill_id"

payload = { "send_fwb": True }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://localhost:8000/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/cargo_on_flight_air_waybill_id';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"send_fwb":true}'
};

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

```go
package main

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

func main() {

	url := "https://localhost:8000/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/cargo_on_flight_air_waybill_id"

	payload := strings.NewReader("{\n  \"send_fwb\": true\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

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

url = URI("https://localhost:8000/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/cargo_on_flight_air_waybill_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"send_fwb\": true\n}"

response = http.request(request)
puts response.read_body
```

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

HttpResponse<String> response = Unirest.post("https://localhost:8000/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/cargo_on_flight_air_waybill_id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"send_fwb\": true\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://localhost:8000/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/cargo_on_flight_air_waybill_id', [
  'body' => '{
  "send_fwb": true
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://localhost:8000/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/cargo_on_flight_air_waybill_id");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"send_fwb\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["send_fwb": true] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://localhost:8000/cargo_on_flight_integrations/cargoai/air_waybills/send/v1/cargo_on_flight_air_waybill_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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