# Turn Trek B2B into an API

> Check availability, read your backorders and get the Shipped, Estimated or Promise date of every order line on Trek B2B with one API call each. A workflow can check your backorders each morning and email you the promise dates that moved.

Page: https://fous.com/automate/trek-b2b
Updated: 2026-11-12

Works with your own Trek B2B account. Fous is an independent product.

## What you can build on Trek B2B

### Check product availability

Checks a list of products against Trek B2B for one order type, Bikes or P&A, and reads whether each can be ordered from your primary warehouse or backordered.

- Takes: Order type (Bikes or P&A), product numbers, quantities
- Returns: Product number, description, quantity requested, available at primary warehouse, available from another warehouse, can be backordered

### Get backorders

Reads the products you have ordered from Trek that were not in stock when you ordered, with the order they belong to and the date Trek gives for each line.

- Takes: Order type (optional)
- Returns: Order number, PO number, product number, description, quantity, Estimated or Promise date

### Get order status and ship dates

Reads one Trek order or your recent orders and returns each line with its Shipped, Estimated or Promise date and the serial numbers of shipped bikes.

- Takes: Order number or PO number (optional), placed since (optional)
- Returns: Order number, PO number, order type, product number, quantity, Shipped, Estimated or Promise date, serial numbers

### Start a warranty claim

Opens RETAILER SERVICES, Service/Warranty Claim, selects Start Warranty Claim, fills in the form with the serial number, uploads the photos and submits it.

- Takes: Serial number, product, problem description, photos of the damage and the serial number
- Returns: Claim Number, serial number, submitted date

## Automate Trek B2B with a workflow

A [workflow](/product/workflows) runs your methods as one process, with nobody at the screen. A schedule or a call from your own system starts it, the steps run in order, and the result arrives in your inbox or in the systems you already use.

### Backorder promise dates that moved, every morning

Starts: Every weekday at 7:00

1. Get your backorders from Trek B2B, Bikes and P&A.
2. Keep the lines whose Estimated or Promise date changed since the last run, and the lines that are new.
3. Email you the list with order number, PO number, product, quantity and the new date.

### Shipped lines and serial numbers, to your shop system

Starts: Every day at 17:00

1. Get your Trek orders placed in the last 60 days, with each line's date and serial numbers.
2. Keep the lines that are Shipped now and were not Shipped on the last run.
3. Post order number, PO number, product, quantity, shipped date and serial numbers to your system's webhook.

### Availability check before you place an order

Starts: When your system calls the workflow's webhook with product numbers and quantities

1. Check availability on Trek B2B for the products and quantities your system sent.
2. Keep the products that your primary warehouse cannot fill.
3. Post each product, with whether another warehouse has it or it can be backordered, back to your webhook.

You can run a workflow by hand on every plan, Free included. Schedules and webhook triggers come with the paid plans, from $29 a month.

## Once built, one call from your code

Once you have built a [method](/product/methods), it is one POST to /v1/runs from your backend, or a tool an AI agent calls over MCP. This is what “Check product availability” would look like.

Example request:

```
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "trekbikes.com/check_product_availability",
    "input": {
      "order_type": "P&A",
      "items": [
        {
          "product_number": "584120",
          "quantity": 6
        },
        {
          "product_number": "591377",
          "quantity": 2
        }
      ]
    }
  }'
```

Example response:

```
{
  "status": "completed",
  "data": {
    "order_type": "P&A",
    "items": [
      {
        "product_number": "584120",
        "description": "Tubeless rim tape, 25 mm",
        "quantity_requested": 6,
        "available_primary_warehouse": true,
        "available_other_warehouse": true,
        "can_backorder": false
      }
    ],
    "count": 1
  }
}
```

An example with invented data, not a ready-made endpoint. The method exists in your organization once you build it, and its name, inputs and fields follow your request.

## Trek B2B’s own options

Trek's help pages describe no developer API for the B2B site. Shops on Ascend, a retail system for bike shops, can check availability, submit orders and sync them with Trek B2B from Ascend, but backorders and warranty claims still happen on Trek B2B itself.

| Option | What it covers | What it takes |
| --- | --- | --- |
| Ascend's Trek integration | Availability checks, Trek vendor orders, order status sync, Shipped, Estimated or Promise dates, and serial numbers when receiving. Not backorders. | Ascend as your shop's retail system, and your Trek B2B Account Number, User name and Password entered in Ascend's Trek vendor record. |
| Trek B2B by hand | Orders, backorders, warranty claims under RETAILER SERVICES, and your store's users under My Company. | A Trek dealer account on trekbikes.com, with a user set up by your store administrator. |

Read on November 12, 2026: [Ascend: Trek integration in Vendor Orders](https://help.ascendrms.com/en_US/ordering/trek-integration-in-vendor-orders), [Ascend: Process Trek warranties](https://help.ascendrms.com/en_US/service/process-trek-warranties), [Trek Help Center: Assigning DST permissions via B2B](https://help.trekbikes.com/en_US/installation_login/assigning-dst-permissions-via-b2b).

## Signing in to Trek B2B

Trek B2B uses the trekbikes.com sign-in: an email address and password, or Continue with Google or Continue with Apple. The same Trek account works on TrekBikes.com, Ride Club and Trek Central. With Fous you sign in once there with your own account: the login is sealed with AES-256, and an expired session is signed back in.

## Worth knowing

- **Bikes and P&A are separate orders**: Bikes and P&A (parts and accessories) are submitted to Trek as separate orders, so the availability and backorder methods you build take the order type as an input.
- **Backorders live only on Trek B2B**: Ascend's integration cannot manage backorders: you log in to Trek B2B to manage them. Trek also keeps a backorder spreadsheet that your Trek representative reviews with you.
- **Warranty claims within 60 days**: Submit a claim within 60 days of completing the work order, with photos of all damage and of the serial number. Trek reimburses the shop as a credit to its Trek account, not a check.
- **Your store administrator manages users**: Users are added and edited under My Company, Edit users, by the store administrator, who also sets per-user permissions such as Trek DST Permission. A method can do only what its user can.

## More in Distribution: specialty wholesale and B2B marketplaces

- [Tradeplace](https://fous.com/automate/tradeplace.md)
- [Alibaba.com supplier back end](https://fous.com/automate/alibaba-com-supplier-back-end.md)
- [IndiaMART Seller Panel](https://fous.com/automate/indiamart-seller-panel.md)
- [JOOR](https://fous.com/automate/joor.md)
- [NuORDER](https://fous.com/automate/nuorder.md)
- [Ingram iPage](https://fous.com/automate/ingram-ipage.md)
- [1688](https://fous.com/automate/1688.md)
- [FTD Mercury](https://fous.com/automate/ftd-mercury.md)
- [Covetrus](https://fous.com/automate/covetrus.md)
- [MWI Animal Health](https://fous.com/automate/mwi-animal-health.md)
- [Patterson Veterinary](https://fous.com/automate/patterson-veterinary.md)
- [SanMar](https://fous.com/automate/sanmar.md)
- [Faire](https://fous.com/automate/faire.md)

Other industries: [楽天市場 RMS](/automate/rakuten-rms), [Edexcel Online](/automate/edexcel-online), [Eversource online account](/automate/eversource-online-account), [Sligro](/automate/sligro), [BancaNet Empresarial](/automate/bancanet-empresarial), [WEX Online](/automate/wex-online).

## Frequently asked questions

### Does Trek B2B have an API?

No. Trek's help pages describe no developer API for the B2B site. Shops on Ascend can check availability, submit orders and sync them with Trek B2B from there, but backorders and warranty claims are handled on Trek B2B itself.

### Where do I manage Trek backorders?

On Trek B2B. Ascend's documentation says backorders, products you ordered that were not in stock, cannot be managed in Ascend. You can build a Fous method that reads your backorders with their Estimated or Promise dates, and a workflow that emails you the dates that changed.

### How do I submit a Trek warranty claim?

In Trek B2B, go to RETAILER SERVICES, Service/Warranty Claim, Start Warranty Claim, complete the form, upload photos of the damage and the serial number, and submit. Note the Claim Number. Submit within 60 days of completing the work order.

### What do the availability colors in Ascend mean?

They come from an availability check against Trek B2B. Black can be backordered. Green cannot be backordered but the quantity is available. Yellow cannot be backordered and you ordered more than is available. Purple means the product was not found in B2B.

### Is Fous affiliated with Trek Bicycle?

No. Fous is an independent product. You use it with your own Trek B2B account, and a method reads and does only what that account can.

Fous is an independent product: it is not affiliated with, endorsed by or sponsored by the operator of Trek B2B (Trek Bicycle). The name is used only to say which system this page is about. Something here wrong or out of date? Write to legal@fous.com.
