> For the complete documentation index, see [llms.txt](https://docs.hotwax.co/adoc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hotwax.co/adoc/flow/carriers/c807.md).

# C807

C807 is a regional carrier that requires precise location mapping and specialized service types for Cash on Delivery (COD) orders.

## Authentication

HotWax Commerce authenticates with C807 using a Bearer token. This token is retrieved dynamically through an OAuth 2.0 (Open Authorization) flow using credentials stored in the `Party Relationship Setting` for the carrier.

## Key logic and transformation

C807 uses specific numeric identifiers for geographic locations. Before creating a label, HotWax performs a lookup to match OMS (Order Management System) state and city names to C807's internal `departmentId` and `municipalityId`.

* **Department lookup:** Uses `get#C807MatchingDepartment` to find the numeric ID based on the state name
* **Municipality lookup:** Uses `get#C807MatchingMunicipality` to find the numeric ID based on the city name and department ID

## Service types

The integration dynamically selects the service type based on the order's payment status:

* **CCE (Cobro Contra Entrega):** Used when the order is marked as COD and payment hasn't been received
* **SER (Servicio Estándar):** Used for prepaid orders
