# The Partner Network

The Tranztec Platform organises data by **company**. A carrier, a shipper, a broker and a telematics provider are each a company with its own boards of loads, equipment and drivers. Companies share data by forming a **partnership** in the Partner Network. CarrierCloud exposes exactly what those partnerships allow.

## Two companies on every call

Every partner-scoped request involves two companies:

- **Your company**, identified by the API key.
- **The partner**, identified by the `{partnercode}` in the path. This is the company whose data you are reading or writing.

A call succeeds only when the partner's network lists your company with the relationship **approved** and **API enabled**. Those flags are set by the partner, in the platform, when the partnership is accepted. CarrierCloud never widens access: if the platform would not let your company see a board, neither will the API.

:::tip
A company can be your partner for some data and not other data. The boards a partnership shares determine which loads, equipment and drivers you see. If a list looks incomplete, the partnership's board sharing is the first thing to check.
:::

## Finding your partner codes

```bash
curl https://carriercloud.ai/v1/partners \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Each element has a `Code` (the value to put in `{partnercode}`), the partner's `Name`, and `AccessApproved`. Only partners that are approved and API-enabled appear.

## Requesting a new partnership

`POST /v1/partners/request` sends a partnership request to another company. You identify the company by one of:

| `identifier` | `value` |
|---|---|
| `companycode` | The company's platform code |
| `dot` | US DOT number |
| `mcnumber` | MC number |
| `ein` | Employer identification number |
| `scac` | SCAC |
| `bn` | Canadian business number |

The response is plain text: `OK. Request submitted.` on success, `Partner invite request invalid.` when the identifier is not one of the values above or the company could not be matched. The partner then approves the request in the platform; until they do, calls against their code answer `401 Not authorized to partner.`

## The caller's own data

CarrierCloud is built for sharing between companies, so there is no "my company" shortcut in the path. To read your own company's loads you need a partnership that points at yourself, or a technology-partner relationship set up by Tranztec. Ask support if your use case is reading your own data.

## Terms you will meet

| Term | Meaning |
|---|---|
| Board | A collection of cards of one type (loads, trucks, trailers, drivers) owned by a company. Partnerships share boards. |
| Card | One record on a board. API responses that return raw platform data call these card documents. |
| Order | A customer's transportation order. Created by customers and shippers; carriers see it as a load once it is offered to them. |
| Load (segment) | The carrier-side view of an order, with its stops. `loadid` and `segmentid` are the same value. |
| Offer | A load presented to a carrier for acceptance. |

Industry terms (SCAC, DOT number, BOL, accessorials) are defined in the [Tranztec glossary](https://tranztec.com/resources/glossary).
