> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Coupa in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/coupa
Last updated: 2026-11-24

Share Coupa with your team in Claude, ChatGPT and Cursor through Metorial: OAuth 2.0 client credentials or API key sign-in, 26 tools (13 read-only).

---

To give your team Coupa in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Coupa integration in a Metorial portal, and each person connects with OAuth 2.0 client credentials. Agents can query procurement records, read exact documents, create supported drafts and reference records, update supported fields, and process pending approvals. The integration has 26 tools, 13 read-only and 13 write, plus 6 triggers.

**What you will learn**

- How an admin shares Coupa in a portal and how each person connects
- What Coupa asks for when you connect, and where to find it
- How to keep the 13 read-only tools and reject the other 13

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- OAuth 2.0 client credentials from Coupa for each person, or one set for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **OAuth 2.0 Client Credentials** (default) | Custom credentials | `instanceUrl`, `clientId`, `clientSecret` and `scopes` |
| **API Key (Deprecated)** | API token | `instanceUrl` and `apiKey` |

The portal and `metorial setup` use **OAuth 2.0 Client Credentials** unless someone picks another method.

### OAuth 2.0 Client Credentials

To connect, a person enters these values:

- `instanceUrl`: Your Coupa instance URL, e.g. https://mycompany.coupahost.com
- `clientId`: OAuth2 Client Identifier from Coupa
- `clientSecret`: OAuth2 Client Secret from Coupa
- `scopes`: Space-separated list of scopes, e.g. "core.accounting.read core.purchase_order.read"

### API Key (Deprecated)

To connect, a person enters these values:

- `instanceUrl`: Your Coupa instance URL, e.g. https://mycompany.coupahost.com
- `apiKey`: 40-character Coupa API key

### Setup settings

Whichever method you pick, setup also asks for:

- `instanceUrl`: Your Coupa instance URL, e.g. https://mycompany.coupahost.com or https://mycompany.coupacloud.com

## Admin: share Coupa in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Coupa. Under **Auth Method**, keep **OAuth 2.0 Client Credentials** or pick another. For how members connect, choose **Each person connects** so everyone enters their own OAuth 2.0 client credentials, or **Shared connection** to enter the OAuth 2.0 client credentials once for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Coupa.

4. **Choose who gets it**

   Add the access groups that should see Coupa. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Coupa integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search coupa
```

## Employee: connect Coupa

### In the portal

1. **Open Coupa in the catalog**

   Sign in to your portal and open Coupa. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your OAuth 2.0 client credentials (instanceUrl, clientId, clientSecret and scopes).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search coupa
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **OAuth 2.0 Client Credentials**. To connect with **API Key (Deprecated)** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Coupa connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list coupa
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 13 read-only tools, such as `get_invoice` and `get_resource`, and lose the 13 write tools, such as `create_user` or `update_user`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list coupa
metorial tools <integration-id>
metorial call <integration-id> search_users -d '{}'
```

`metorial tools` lists the 26 tools, minus any you rejected. `search_users` takes no input. It searches and list users in Coupa.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (13)

- `search_accounts`: Search and list accounts in Coupa.
- `get_purchase_order`: Retrieve a single purchase order by its ID, including all header fields, order lines, supplier info, and accounting details. Needs `purchaseOrderId`.
- `search_suppliers`: Search and list suppliers in Coupa.
- `search_purchase_orders`: Search and list purchase orders in Coupa.
- `search_receipts`: Search and list receipts in Coupa.
- `search_expense_reports`: Search and list expense reports in Coupa.
- `search_requisitions`: Search and list purchase requisitions in Coupa.
- `search_users`: Search and list users in Coupa.
- `search_contracts`: Search and list contracts in Coupa.
- `get_invoice`: Retrieve a single invoice by its ID, including header fields, invoice lines, supplier info, and payment details. Needs `invoiceId`.
- `search_approvals`: Search and list approvals in Coupa.
- `search_invoices`: Search and list invoices in Coupa.
- `get_resource`: Read one exact supplier, requisition, expense report, contract, approval, user, account or receiving receipt.

### Write tools (13)

- `process_approval`: Approve or reject a pending approval in Coupa. Needs `approvalId` and `action`.
- `create_receipt`: Create a receipt to record goods received against a purchase order line. Needs `purchaseOrderLineId` and `quantity`.
- `create_account`: Create a new account in Coupa to represent an item in your chart of accounts. Needs `code` and `name`.
- `create_invoice`: Create a new invoice in Coupa. Needs `invoiceNumber`, `invoiceDate`, `supplier` and `invoiceLines`.
- `create_contract`: Create a new contract in Coupa with header details, supplier association, and date range. Needs `name`.
- `create_user`: Create a user in Coupa with login name, email, profile and role assignments. Needs `login`, `email`, `firstName` and `lastName`.
- `update_user`: Update an existing user in Coupa. Needs `userId`.
- `create_purchase_order`: Create an external purchase order in Coupa with header information and order lines. Needs `supplier` and `orderLines`.
- `create_supplier`: Create a new supplier record in Coupa with name, address, contact information, and payment details. Needs `name`.
- `create_expense_report`: Create a new expense report in Coupa with expense line items. Needs `title` and `expenseLines`.
- `update_supplier`: Update an existing supplier record in Coupa. Needs `supplierId`.
- `update_purchase_order`: Update an existing purchase order in Coupa. Needs `purchaseOrderId`.
- `create_requisition`: Create a new purchase requisition in Coupa with line items. Needs `requisitionLines`.

## Triggers

Coupa has 6 triggers, which fire on events in Coupa:

- `purchase_order_changes`: Triggers when purchase orders are created or updated in Coupa.
- `invoice_changes`: Triggers when invoices are created, approved, disputed, or otherwise updated in Coupa.
- `inbound_webhook`
- `expense_report_changes`: Triggers when expense reports are created, submitted, approved, or otherwise updated in Coupa.
- `requisition_changes`: Triggers when purchase requisitions are created, submitted, approved, or otherwise updated in Coupa.
- `supplier_changes`: Triggers when supplier records are created or updated in Coupa.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Coupa there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Coupa on metorial.com](https://metorial.com/integrations/coupa): the integration overview