# Railbed Reporting for ChatGPT and Codex

> Ask your assistant about payments, summarize paid amounts, check order states and investigate webhook deliveries in your Railbed business.

Source: https://railbed.com/docs/openai-plugin/ · Updated: 2026-11-18 · Railbed developer docs

For AI assistants: the index of every docs page, with the rules for an integration, is https://railbed.com/docs/llms.txt

## What you can do

Railbed Reporting lets ChatGPT and Codex read the records in your business. Ask about a payment, summarize paid payments for a period, check recent orders or investigate a failed webhook delivery. It only reads records and cannot prepare changes.

You sign in with your Railbed account and approve one business and mode. There is no secret key to create or paste. Public reporting and webhook documentation works without signing in.

Example: Railbed Reporting server URL

```text
https://openai-mcp.railbed.io/mcp
```

## Connect your business

An owner or developer of the business must approve the connection. Choose the setup for your assistant, then [approve your business](#approve-your-business).

### ChatGPT

1. In ChatGPT on the web, open [Plugins](https://chatgpt.com/plugins), select **+**, then **Add custom MCP server**.
2. Name it **Railbed**, enter the Reporting server URL above and choose **OAuth**.
3. Select **I understand and want to continue**, then **Create as a plugin**.
4. Install **Railbed** from your personal plugins and sign in to Railbed when ChatGPT asks. In a Business or Enterprise workspace, an admin may need to allow custom MCP servers first.
5. Start a new chat, type **@Railbed**, choose **Railbed** and ask it to connect to your business.

### Codex

Run this in your terminal. It adds Railbed Reporting for the Codex CLI, the IDE extension and the ChatGPT desktop app, then opens your browser so you can sign in.

Example: Terminal

```bash
codex mcp add railbed-reporting --url https://openai-mcp.railbed.io/mcp
```

Skip this command if `codex mcp list` already shows `railbed-reporting`, including when an installed package supplies it. If `codex mcp list` doesn't show OAuth for railbed-reporting afterwards, run `codex mcp login railbed-reporting` in your terminal. If the tools still don't appear, restart Codex; in the terminal, `codex resume --last` reopens your chat.

### Approve your business

1. Ask your assistant to connect to your Railbed business. It gives you an approval link to open in the dashboard.
2. Open the link and check the business. **Live** is selected so your assistant reports on your real records. To use simulated records instead, open **Options** and choose **Test**. Reporting access is always read only.
3. Choose the connect button, which names your client, such as **Connect Codex**. Return to your assistant and ask it to check the connection.

Your assistant should name the business and mode before reading its records. For help with sign-in and managing a connection, see [the MCP guide](https://railbed.com/docs/mcp.md).

## Ask for a report

Example: Things to ask

```text
Find the payment with reference INV-0042 and explain its stored status.

Summarize yesterday's paid payments in America/New_York.
Keep currencies separate and identify missing settlement amounts.

Show my latest five orders and their payment and fulfilment states.

Explain my latest failed webhook delivery.
```

Reports include payment amounts and states, order numbers and totals, and webhook delivery outcomes. Buyer contact details, the pages buyers pay on, payout destinations and webhook receiver addresses are kept out. Invoices aren't part of Reporting: to work with them, connect the [full MCP server](https://railbed.com/docs/mcp.md#invoices). Lists show a page of records; ask for a paid-payment summary when you need totals for a period.

## Understand the figures

Paid-payment summaries use each payment's stored paid time. Give a timezone and the period you want. The start is included and the end is excluded. A period can span at most 31 days; if more than 10,000 paid attempts match, ask for shorter periods. The server returns no partial total.

Order amounts stay separate for each currency. Reported token receipts are grouped by payment method, network and coin, with missing amounts counted. Summaries count payment attempts, and Test figures are simulated. Reading a record does not refresh its settlement status.

A successful webhook response shows that the request was received. Payment settlement comes from Railbed's payment checks. Your assistant can explain verification and retries from [the webhook reference](https://railbed.com/docs/webhooks.md).

## Tools and access

Railbed Reporting has twelve tools:

| Purpose | Tools |
| --- | --- |
| Public reporting and webhook documentation | `railbed_docs_search`, `railbed_docs_read` |
| Sign-in and business approval | `railbed_get_profile`, `railbed_get_connection`, `railbed_connect`, `railbed_get_account` |
| Payments and paid-payment summaries | `railbed_list_payments`, `railbed_get_payment`, `railbed_get_payment_summary` |
| Order states and totals | `railbed_list_orders` |
| Webhook delivery outcomes | `railbed_list_webhooks`, `railbed_list_webhook_deliveries` |

Each account request uses the business and mode you approved and checks your current role. To use another business or mode, disconnect and approve a new connection.

## Disconnect and get help

In [Developers](https://app.railbed.io/developers#mcp), find the connection under **AI assistants** and choose **Disconnect**. Your assistant's next account request is refused. You can also remove the plugin in your assistant's settings.

Contact [support](https://railbed.com/contact/) for help with a connection or report. See the [privacy policy](https://railbed.com/privacy/) for data and retention, and the [terms](https://railbed.com/terms/) for the integration. Keep passwords and other credentials out of support messages and assistant conversations.
