> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CDW

> Integrate your application with the CDW API

> [!NOTE]
>
> CDW's API access is self-serve through their [developer portal](https://portal.apiconnect.cdw.com/): anyone can sign up, subscribe to a product, and generate a subscription key — see the [setup guide](https://nango.dev/docs/api-integrations/cdw/connect) below.

## 🚀 Quickstart

Connect to CDW with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *CDW*.

**2. Authorize CDW**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then enter your subscription key (leave **Environment** on production unless you subscribed via CDW's PreProd sandbox). Later, you'll let your users do the same directly from your app.

**3. Call the CDW API**

Let's make your first request to the CDW API. This example creates a customer order (`POST /v1/customers/orders`) — swap in the endpoint for the product(s) you subscribed to if different. Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

> [!WARNING]
>
> This creates a real order if `customerId` matches a customer registered in your CDW account and CDW's schema validation accepts the rest of the payload — the placeholders below are rejected before that happens, but don't swap in real values here. For a safe test, connect to CDW's PreProd sandbox (pick **Environment** on the Connect form) or use a `customerId` your account team set up specifically for testing.

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/v1/customers/orders" \
>   -X POST \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>" \
>   -H "Content-Type: application/json" \
>   -d '{ "orderHeader": { "customerId": "...", "orderId": "...", "orderDate": "2026-01-01", "orderAmount": "1.00", "currency": "USD" }, "orderLines": [] }'
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.post({
>     endpoint: '/v1/customers/orders',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>',
>     data: {
>         orderHeader: { customerId: '...', orderId: '...', orderDate: '2026-01-01', orderAmount: '1.00', currency: 'USD' },
>         orderLines: []
>     }
> });
>
> console.log(res.data);
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [quickstart](https://nango.dev/docs/getting-started/quickstart.md) to integrate Nango in your app.

To obtain your own credentials, follow the setup guide linked below.

## 📚 CDW Integration Guides

Nango maintained guides for common use cases.

* [How do I link my CDW account?](https://nango.dev/docs/api-integrations/cdw/connect)
  Sign up on the CDW developer portal, subscribe to a product, and connect your subscription key to Nango

Official docs: [CDW API Management developer portal](https://portal.apiconnect.cdw.com/)

## 🧩 Pre-built syncs & tools for CDW

Explore Nango-provided tools in your dashboard. [Extend and customize them](https://nango.dev/docs/implementation-guides/platform/functions/customize-template.md) to fit your needs.

*No pre-built syncs or tools available yet.*

> [!TIP]
>
> Not seeing the integration you need? [Build your own](https://nango.dev/docs/guides/functions/functions-guide.md) independently.

## API gotchas

* CDW's gateway (Azure API Management) automatically rotates subscription keys every 30 days. If requests start failing with an authentication error, generate a new subscription key from the [developer portal](https://portal.apiconnect.cdw.com/) and update your Nango connection.
* Available products/endpoints depend on what you subscribed to in the developer portal (for example, the **Customers** product exposes the Customer Order API at `/v1/customers/orders`). CDW also runs a separate PreProd sandbox (`apiconnect.preprod.cdw.com`) with its own products and subscription keys — pick **Environment** on the Connect form (or set `baseUrl` in the connection config) to switch between production and PreProd.
* Creating a real order additionally requires a `customerId` that CDW's account team has registered for you — an unrecognized `customerId` is rejected with `"statusCode": "REJECTED"` before anything is processed.

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.