> This page is for version Dev.
> 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.

# Mark accepted

POST https://api.dev.chrt.com/shipping/cargo_on_flight_air_waybills/mark_accepted/v1/{cargo_on_flight_air_waybill_id}
Content-Type: application/json

Marks a sent FWB and/or the FHLs of chosen house air waybills accepted, for an airline that never answered; a later airline answer replaces it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillsMarkAcceptedReq) -> (CargoOnFlightAirWaybillsMarkAcceptedRes)

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

## Authentication

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

## Servers

- `https://api.dev.chrt.com` (Development, default)
- `https://localhost:8000` (Local)
- `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.

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

## Response

### 200

Successful Response

- `cargo_on_flight_air_waybill` (CargoOnFlightAirWaybill1, required)
- `cargo_on_flight_house_air_waybills` (list of CargoOnFlightHouseAirWaybill1, optional)

## Errors

### 422 Cargo on Flight Air Waybills Mark Accepted V1request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### CargoOnFlightAirWaybill1

- `_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` (datetime, 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` (datetime, 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) — Must be a string starting with `user_`
- `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)

### CargoOnFlightHouseAirWaybill1

- `_id` (string, required)
- `cargo_on_flight_air_waybill_id` (string, required)
- `cargo_on_flight_booking_id` (string, required)
- `created_at_timestamp` (datetime, required)
- `created_by_org_id` (string, required) — Must be a string starting with `org_`
- `destination_iata` (string, required)
- `gross_weight_kilograms` (double, required)
- `house_air_waybill_number` (string, required)
- `manifest_description_of_goods` (string, required)
- `number_of_pieces` (integer, required)
- `origin_iata` (string, required)
- `schema_version` (integer, required)
- `task_group_id` (string, required)
- `updated_at_timestamp` (datetime, required)
- `charges_declaration` (CargoOnFlightAirWaybillChargesDeclaration1, optional, nullable) — Currency, payment, and declared values, for the master or a house air waybill.
- `created_by_user_id` (string, optional, nullable) — Must be a string starting with `user_`
- `latest_fhl_message` (CargoOnFlightHouseAirWaybillFhlMessage1, optional, nullable) — The latest send of the house in an FHL, and the airline's answer to it.
- `slac` (integer, optional, nullable)

### ValidationError

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

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

### 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)

### 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` (datetime, 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`

### 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` (datetime, required)
- `status` (enum, required)
  - Allowed values: `sent`, `accepted`, `rejected`
- `airline_response` (string, optional, nullable)
- `responded_at_timestamp` (datetime, optional, nullable)
- `responded_by_user_id` (string, optional, nullable) — Must be a string starting with `user_`
- `response_provenance` (enum, optional, nullable)
  - Allowed values: `airline`, `manual`

### 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)

### CargoOnFlightHouseAirWaybillFhlMessage1

The latest send of the house in an FHL, and the airline's answer to it.

- `cargo_on_flight_integration` (enum, required)
  - Allowed values: `air_canada`, `cargoai`, `manual`
- `sent_at_timestamp` (datetime, required)
- `status` (enum, required)
  - Allowed values: `sent`, `accepted`, `rejected`
- `airline_response` (string, optional, nullable)
- `responded_at_timestamp` (datetime, optional, nullable)
- `responded_by_user_id` (string, optional, nullable) — Must be a string starting with `user_`
- `response_provenance` (enum, optional, nullable)
  - Allowed values: `airline`, `manual`

### LocationItem

- string
- integer

### 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)

## Examples

**Request**

```json
{
  "mark_fwb": true
}
```

**Response**

```json
{
  "cargo_on_flight_air_waybill": {
    "_id": "_id",
    "cargo_on_flight_booking_id": "cargo_on_flight_booking_id",
    "carriers_execution": {
      "authorisation_signature": "authorisation_signature",
      "executed_on_date": "executed_on_date",
      "place": "place"
    },
    "charges_declaration": {
      "charge_code": "CA",
      "currency_code": "currency_code",
      "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": "address_line_1",
      "city_name": "city_name",
      "country_code": "country_code",
      "name": "name",
      "account_number": "account_number",
      "address_line_2": "address_line_2",
      "city_iata": "city_iata",
      "email_address": "email_address",
      "fax_number": "fax_number",
      "phone_number": "phone_number",
      "postal_code": "postal_code",
      "state_province": "state_province"
    },
    "created_at_timestamp": "2024-01-15T09:30:00Z",
    "created_by_org_id": "created_by_org_id",
    "iata_cass_office_id": "iata_cass_office_id",
    "order_id": "order_id",
    "schema_version": 1,
    "shipper": {
      "address_line_1": "address_line_1",
      "city_name": "city_name",
      "country_code": "country_code",
      "name": "name",
      "account_number": "account_number",
      "address_line_2": "address_line_2",
      "city_iata": "city_iata",
      "email_address": "email_address",
      "fax_number": "fax_number",
      "phone_number": "phone_number",
      "postal_code": "postal_code",
      "state_province": "state_province"
    },
    "shippers_certification": "shippers_certification",
    "task_group_id": "task_group_id",
    "updated_at_timestamp": "2024-01-15T09:30:00Z",
    "also_notify": {
      "address_line_1": "address_line_1",
      "city_name": "city_name",
      "country_code": "country_code",
      "name": "name",
      "account_number": "account_number",
      "address_line_2": "address_line_2",
      "city_iata": "city_iata",
      "email_address": "email_address",
      "fax_number": "fax_number",
      "phone_number": "phone_number",
      "postal_code": "postal_code",
      "state_province": "state_province"
    },
    "consignment_security_declaration": {
      "country_code": "country_code",
      "regulated_entity_category": "regulated_agent",
      "regulated_entity_identifier": "regulated_entity_identifier",
      "security_status": "SPX",
      "expiry_mmyy": "expiry_mmyy",
      "screened_at_timestamp": "2024-01-15T09:30:00Z",
      "screener_name": "screener_name",
      "screening_exemption": "SMUS",
      "screening_methods": [
        "PHS"
      ]
    },
    "created_by_user_id": "created_by_user_id",
    "customs_origin_code": "customs_origin_code",
    "issuing_agent_name": "issuing_agent_name",
    "latest_fwb_message": {
      "cargo_on_flight_integration": "air_canada",
      "sent_at_timestamp": "2024-01-15T09:30:00Z",
      "status": "sent",
      "airline_response": "airline_response",
      "responded_at_timestamp": "2024-01-15T09:30:00Z",
      "responded_by_user_id": "responded_by_user_id",
      "response_provenance": "airline"
    },
    "other_charges": [
      {
        "charge_amount": 1.1,
        "entitlement": "due_agent",
        "other_charge_code": "other_charge_code",
        "payment_condition": "prepaid"
      }
    ],
    "other_service_information": "other_service_information",
    "rate_lines": [
      {
        "gross_weight_kilograms": 1.1,
        "nature_and_quantity_of_goods": "nature_and_quantity_of_goods",
        "number_of_pieces": 1,
        "rate_class_code": "B"
      }
    ],
    "special_service_request": "special_service_request"
  },
  "cargo_on_flight_house_air_waybills": [
    {
      "_id": "_id",
      "cargo_on_flight_air_waybill_id": "cargo_on_flight_air_waybill_id",
      "cargo_on_flight_booking_id": "cargo_on_flight_booking_id",
      "created_at_timestamp": "2024-01-15T09:30:00Z",
      "created_by_org_id": "created_by_org_id",
      "destination_iata": "destination_iata",
      "gross_weight_kilograms": 1.1,
      "house_air_waybill_number": "house_air_waybill_number",
      "manifest_description_of_goods": "manifest_description_of_goods",
      "number_of_pieces": 1,
      "origin_iata": "origin_iata",
      "schema_version": 1,
      "task_group_id": "task_group_id",
      "updated_at_timestamp": "2024-01-15T09:30:00Z",
      "charges_declaration": {
        "charge_code": "CA",
        "currency_code": "currency_code"
      },
      "created_by_user_id": "created_by_user_id",
      "latest_fhl_message": {
        "cargo_on_flight_integration": "air_canada",
        "sent_at_timestamp": "2024-01-15T09:30:00Z",
        "status": "sent"
      },
      "slac": 1
    }
  ]
}
```

**SDK Code**

```python
import requests

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

payload = { "mark_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://api.dev.chrt.com/shipping/cargo_on_flight_air_waybills/mark_accepted/v1/cargo_on_flight_air_waybill_id';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"mark_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://api.dev.chrt.com/shipping/cargo_on_flight_air_waybills/mark_accepted/v1/cargo_on_flight_air_waybill_id"

	payload := strings.NewReader("{\n  \"mark_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://api.dev.chrt.com/shipping/cargo_on_flight_air_waybills/mark_accepted/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  \"mark_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://api.dev.chrt.com/shipping/cargo_on_flight_air_waybills/mark_accepted/v1/cargo_on_flight_air_waybill_id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"mark_fwb\": true\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

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

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

```csharp
using RestSharp;

var client = new RestClient("https://api.dev.chrt.com/shipping/cargo_on_flight_air_waybills/mark_accepted/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  \"mark_fwb\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.dev.chrt.com/shipping/cargo_on_flight_air_waybills/mark_accepted/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()
```