> This page is for version Prod (default).
> For other versions, use one of these documentation indexes:
> - Prod (default): https://docs.chrt.com/prod/llms.txt
> - Staging: https://docs.chrt.com/staging/llms.txt
> - Dev: https://docs.chrt.com/dev/llms.txt

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

# Update

PATCH https://api.chrt.com/shipping/cargo_on_flight_air_waybills/update/v1/{cargo_on_flight_air_waybill_id}
Content-Type: application/json

Updates an air waybill; an FWB already sent is replaced at the airline only when it is sent again. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillClientUpdate1) -> (CargoOnFlightAirWaybill1)

Reference: https://docs.chrt.com/api-reference/api-reference/shipping/cargo-on-flight-air-waybills/update-v-1

## Authentication

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

## Servers

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

## Request

### Path parameters

- `cargo_on_flight_air_waybill_id` (string, required)

### Body (application/json)

This endpoint expects a CargoOnFlightAirWaybillClientUpdate1.

- `also_notify` (CargoOnFlightAirWaybillParty1, optional, nullable) — A shipper, consignee, or also-notify party.
- `also_notify__set_to_None` (boolean, optional, default: false)
- `carriers_execution` (CargoOnFlightAirWaybillCarriersExecution1, optional, nullable) — When, where, and by whom the AWB was executed for the carrier (usually the agent).
- `charges_declaration` (CargoOnFlightAirWaybillChargesDeclaration1, optional, nullable) — Currency, payment, and declared values, for the master or a house air waybill.
- `consignee` (CargoOnFlightAirWaybillParty1, optional, nullable) — A shipper, consignee, or also-notify party.
- `consignment_security_declaration` (CargoOnFlightAirWaybillConsignmentSecurityDeclaration1, optional, nullable) — The OCI consignment security declaration (e-CSD).
- `consignment_security_declaration__set_to_None` (boolean, optional, default: false)
- `customs_origin_code` (string, optional, nullable)
- `customs_origin_code__set_to_None` (boolean, optional, default: false)
- `issuing_agent_name` (string, optional, nullable)
- `issuing_agent_name__set_to_None` (boolean, optional, default: false)
- `other_charges` (list of CargoOnFlightAirWaybillOtherCharge1, optional)
- `other_service_information` (string, optional, nullable)
- `other_service_information__set_to_None` (boolean, optional, default: false)
- `rate_lines` (list of CargoOnFlightAirWaybillRateLine1, optional)
- `shipper` (CargoOnFlightAirWaybillParty1, optional, nullable) — A shipper, consignee, or also-notify party.
- `shippers_certification` (string, optional, nullable)
- `special_service_request` (string, optional, nullable)
- `special_service_request__set_to_None` (boolean, optional, default: false)

## Response

### 200

Successful Response

- `_id` (string, required)
- `cargo_on_flight_booking_id` (string, required)
- `carriers_execution` (CargoOnFlightAirWaybillCarriersExecution1, required) — When, where, and by whom the AWB was executed for the carrier (usually the agent).
- `charges_declaration` (CargoOnFlightAirWaybillChargesDeclaration1, required) — Currency, payment, and declared values, for the master or a house air waybill.
- `consignee` (CargoOnFlightAirWaybillParty1, required) — A shipper, consignee, or also-notify party.
- `created_at_timestamp` (string, required)
- `created_by_org_id` (string, required) — Must be a string starting with `org_`
- `iata_cass_office_id` (string, required)
- `order_id` (string, required)
- `schema_version` (integer, required)
- `shipper` (CargoOnFlightAirWaybillParty1, required) — A shipper, consignee, or also-notify party.
- `shippers_certification` (string, required)
- `task_group_id` (string, required)
- `updated_at_timestamp` (string, required)
- `also_notify` (CargoOnFlightAirWaybillParty1, optional, nullable) — A shipper, consignee, or also-notify party.
- `consignment_security_declaration` (CargoOnFlightAirWaybillConsignmentSecurityDeclaration1, optional, nullable) — The OCI consignment security declaration (e-CSD).
- `created_by_user_id` (string, optional, nullable)
- `customs_origin_code` (string, optional, nullable)
- `issuing_agent_name` (string, optional, nullable)
- `latest_fwb_message` (CargoOnFlightAirWaybillFwbMessage1, optional, nullable) — The latest send of the FWB, and the airline's answer to it.
- `other_charges` (list of CargoOnFlightAirWaybillOtherCharge1, optional)
- `other_service_information` (string, optional, nullable)
- `rate_lines` (list of CargoOnFlightAirWaybillRateLine1, optional)
- `special_service_request` (string, optional, nullable)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### CargoOnFlightAirWaybillParty1

A shipper, consignee, or also-notify party.

- `address_line_1` (string, required)
- `city_name` (string, required)
- `country_code` (string, required)
- `name` (string, required)
- `account_number` (string, optional, nullable)
- `address_line_2` (string, optional, nullable)
- `city_iata` (string, optional, nullable)
- `email_address` (string, optional, nullable)
- `fax_number` (string, optional, nullable)
- `phone_number` (string, optional, nullable)
- `postal_code` (string, optional, nullable)
- `state_province` (string, optional, nullable)

### CargoOnFlightAirWaybillCarriersExecution1

When, where, and by whom the AWB was executed for the carrier (usually the agent).

- `authorisation_signature` (string, required)
- `executed_on_date` (string, required)
- `place` (string, required)

### CargoOnFlightAirWaybillChargesDeclaration1

Currency, payment, and declared values, for the master or a house air waybill.

- `charge_code` (enum, required) — IATA Cargo-IMP method of payment codes, e.g. PP all charges prepaid, CC all charges collect.
  - Allowed values: `CA`, `CB`, `CC`, `CE`, `CG`, `CH`, `CM`, `CP`, `CX`, `CZ`, `NC`, `NG`, `NP`, `NT`, `NX`, `NZ`, `PC`, `PD`, `PE`, `PF`, `PG`, `PH`, `PP`, `PX`, `PZ`
- `currency_code` (string, required)
- `declared_value_for_carriage` (double, optional, nullable)
- `declared_value_for_customs` (double, optional, nullable)
- `declared_value_for_insurance` (double, optional, nullable)
- `payment_other_charges` (enum, optional, nullable)
  - Allowed values: `prepaid`, `collect`
- `payment_weight_valuation` (enum, optional, nullable)
  - Allowed values: `prepaid`, `collect`

### CargoOnFlightAirWaybillConsignmentSecurityDeclaration1

The OCI consignment security declaration (e-CSD).

- `country_code` (string, required)
- `regulated_entity_category` (enum, required)
  - Allowed values: `regulated_agent`, `known_consignor`, `account_consignor`, `regulated_carrier`
- `regulated_entity_identifier` (string, required)
- `security_status` (enum, required)
  - Allowed values: `SPX`, `SCO`, `SHR`, `NSC`
- `expiry_mmyy` (string, optional, nullable)
- `screened_at_timestamp` (string, optional, nullable)
- `screener_name` (string, optional, nullable)
- `screening_exemption` (enum, optional, nullable)
  - Allowed values: `SMUS`, `MAIL`, `BIOM`, `DIPL`, `LFSM`, `NUCL`, `TRNS`
- `screening_methods` (list of enum, optional)
  - Allowed values: `PHS`, `VCK`, `XRY`, `EDS`, `RES`, `FRD`, `VPT`, `PRT`, `MDE`, `SIM`, `AOM`

### CargoOnFlightAirWaybillOtherCharge1

An other charge, e.g. AW (air waybill fee) due agent.

- `charge_amount` (double, required)
- `entitlement` (enum, required)
  - Allowed values: `due_agent`, `due_carrier`
- `other_charge_code` (string, required)
- `payment_condition` (enum, required)
  - Allowed values: `prepaid`, `collect`

### CargoOnFlightAirWaybillRateLine1

One rated line of the tendered goods.

- `gross_weight_kilograms` (double, required)
- `nature_and_quantity_of_goods` (string, required)
- `number_of_pieces` (integer, required)
- `rate_class_code` (enum, required) — IATA rate class codes, e.g. M minimum, N normal, Q quantity, C specific commodity.
  - Allowed values: `B`, `C`, `E`, `K`, `M`, `N`, `P`, `Q`, `R`, `S`, `U`, `X`, `Y`
- `chargeable_weight_kilograms` (double, optional, nullable)
- `commodity_item_number` (string, optional, nullable)
- `dimensions` (list of CargoOnFlightAirWaybillDimension1, optional)
- `harmonized_commodity_codes` (list of string, optional)
- `rate_or_charge` (double, optional, nullable)
- `total_charge_amount` (double, optional, nullable)
- `uld_numbers` (list of string, optional)
- `volume_cubic_meters` (double, optional, nullable)

### CargoOnFlightAirWaybillFwbMessage1

The latest send of the FWB, and the airline's answer to it.

- `cargo_on_flight_integration` (enum, required)
  - Allowed values: `air_canada`, `cargoai`, `manual`
- `sent_at_timestamp` (string, required)
- `status` (enum, required)
  - Allowed values: `sent`, `accepted`, `rejected`
- `airline_response` (string, optional, nullable)
- `responded_at_timestamp` (string, optional, nullable)
- `responded_by_user_id` (string, optional, nullable)
- `response_provenance` (enum, optional, nullable)
  - Allowed values: `airline`, `manual`

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### CargoOnFlightAirWaybillDimension1

`number_of_pieces` pieces, each of these dimensions.

- `height_inches` (double, required)
- `length_inches` (double, required)
- `number_of_pieces` (integer, required)
- `width_inches` (double, required)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "_id": "string",
  "cargo_on_flight_booking_id": "string",
  "carriers_execution": {
    "authorisation_signature": "string",
    "executed_on_date": "2023-01-15",
    "place": "string"
  },
  "charges_declaration": {
    "charge_code": "CA",
    "currency_code": "string",
    "declared_value_for_carriage": 1.1,
    "declared_value_for_customs": 1.1,
    "declared_value_for_insurance": 1.1,
    "payment_other_charges": "prepaid",
    "payment_weight_valuation": "prepaid"
  },
  "consignee": {
    "address_line_1": "string",
    "city_name": "string",
    "country_code": "string",
    "name": "string",
    "account_number": "string",
    "address_line_2": "string",
    "city_iata": "string",
    "email_address": "string",
    "fax_number": "string",
    "phone_number": "string",
    "postal_code": "string",
    "state_province": "string"
  },
  "created_at_timestamp": "2024-01-15T09:30:00Z",
  "created_by_org_id": "string",
  "iata_cass_office_id": "string",
  "order_id": "string",
  "schema_version": 1,
  "shipper": {
    "address_line_1": "string",
    "city_name": "string",
    "country_code": "string",
    "name": "string",
    "account_number": "string",
    "address_line_2": "string",
    "city_iata": "string",
    "email_address": "string",
    "fax_number": "string",
    "phone_number": "string",
    "postal_code": "string",
    "state_province": "string"
  },
  "shippers_certification": "string",
  "task_group_id": "string",
  "updated_at_timestamp": "2024-01-15T09:30:00Z",
  "also_notify": {
    "address_line_1": "string",
    "city_name": "string",
    "country_code": "string",
    "name": "string",
    "account_number": "string",
    "address_line_2": "string",
    "city_iata": "string",
    "email_address": "string",
    "fax_number": "string",
    "phone_number": "string",
    "postal_code": "string",
    "state_province": "string"
  },
  "consignment_security_declaration": {
    "country_code": "string",
    "regulated_entity_category": "regulated_agent",
    "regulated_entity_identifier": "string",
    "security_status": "SPX",
    "expiry_mmyy": "string",
    "screened_at_timestamp": "2024-01-15T09:30:00Z",
    "screener_name": "string",
    "screening_exemption": "SMUS",
    "screening_methods": [
      "PHS"
    ]
  },
  "created_by_user_id": "string",
  "customs_origin_code": "string",
  "issuing_agent_name": "string",
  "latest_fwb_message": {
    "cargo_on_flight_integration": "air_canada",
    "sent_at_timestamp": "2024-01-15T09:30:00Z",
    "status": "sent",
    "airline_response": "string",
    "responded_at_timestamp": "2024-01-15T09:30:00Z",
    "responded_by_user_id": "string",
    "response_provenance": "airline"
  },
  "other_charges": [
    {
      "charge_amount": 1.1,
      "entitlement": "due_agent",
      "other_charge_code": "string",
      "payment_condition": "prepaid"
    }
  ],
  "other_service_information": "string",
  "rate_lines": [
    {
      "gross_weight_kilograms": 1.1,
      "nature_and_quantity_of_goods": "string",
      "number_of_pieces": 1,
      "rate_class_code": "B",
      "chargeable_weight_kilograms": 1.1,
      "commodity_item_number": "string",
      "dimensions": [
        {
          "height_inches": 1.1,
          "length_inches": 1.1,
          "number_of_pieces": 1,
          "width_inches": 1.1
        }
      ],
      "harmonized_commodity_codes": [
        "string"
      ],
      "rate_or_charge": 1.1,
      "total_charge_amount": 1.1,
      "uld_numbers": [
        "string"
      ],
      "volume_cubic_meters": 1.1
    }
  ],
  "special_service_request": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.chrt.com/shipping/cargo_on_flight_air_waybills/update/v1/cargo_on_flight_air_waybill_id"

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

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

print(response.json())
```

```javascript
const url = 'https://api.chrt.com/shipping/cargo_on_flight_air_waybills/update/v1/cargo_on_flight_air_waybill_id';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

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://api.chrt.com/shipping/cargo_on_flight_air_waybills/update/v1/cargo_on_flight_air_waybill_id"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("PATCH", 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://api.chrt.com/shipping/cargo_on_flight_air_waybills/update/v1/cargo_on_flight_air_waybill_id")

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

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

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.patch("https://api.chrt.com/shipping/cargo_on_flight_air_waybills/update/v1/cargo_on_flight_air_waybill_id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.chrt.com/shipping/cargo_on_flight_air_waybills/update/v1/cargo_on_flight_air_waybill_id', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.chrt.com/shipping/cargo_on_flight_air_waybills/update/v1/cargo_on_flight_air_waybill_id");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.chrt.com/shipping/cargo_on_flight_air_waybills/update/v1/cargo_on_flight_air_waybill_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()
```