> ## 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.

# Netsuite TBA

> Integrate your application with the Netsuite TBA API

## 🚀 Quickstart

Connect to Netsuite TBA 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* -> *Netsuite TBA*.

**2. Authorize Netsuite TBA**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then complete the Netsuite TBA authentication. Later, you'll let your users do the same directly from your app.

> [!NOTE]
>
> Netsuite requires a user-specific account ID to run OAuth. You'll need to provide this along with your OAuth credentials.

**3. Call the Netsuite TBA API**

Let's make your first request to the Netsuite API. 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):

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/record/v1/customer" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [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.get({
>     endpoint: '/record/v1/customer',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>'
> });
>
> 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 [Auth implementation guide](https://nango.dev/docs/guides/primitives/auth.md) to integrate Nango in your app.

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

## 📚 Netsuite TBA Integration Guides

Nango maintained guides for common use cases.

* [How to set up Netsuite TBA with Nango](https://nango.dev/docs/api-integrations/netsuite-tba/how-to-set-up-netsuite-tba-with-nango)\
  Configure token-based authentication with Netsuite and connect it to Nango

Official docs: [Netsuite REST API documentation](https://system.netsuite.com/help/helpcenter/en_US/APIs/REST_API_Browser/record/v1/2023.1/index.html)

## 🧩 Pre-built syncs & tools for Netsuite TBA

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

### Credit Notes

| Function name | Description | Type |
| - | - | - |
| `credit-notes` | Fetches all credit notes in Netsuite | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Customers

| Function name | Description | Type |
| - | - | - |
| `customers` | Fetches all customers in Netsuite | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Invoices

| Function name | Description | Type |
| - | - | - |
| `invoices` | Fetches all invoices in Netsuite | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Payments

| Function name | Description | Type |
| - | - | - |
| `payments` | Fetches all payments received from customers in Netsuite | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

### Others

| Function name | Description | Type |
| - | - | - |
| `bill-create` | Creates a vendor bill in Netsuite. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `bill-update` | Updates an existing vendor bill in Netsuite. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `credit-note-create` | Creates a credit note in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `credit-note-update` | Updates a credit note in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `customer-create` | Creates a customer in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `customer-update` | Updates a customer in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `fetch-fields` | Fetches all fields in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `invoice-create` | Creates an invoice in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `invoice-update` | Updates an invoice in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `payment-create` | Creates a payment in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `payment-update` | Updates a payment in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `purchase-order-create` | Creates a purchase order in Netsuite | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `purchase-order-update` | Updates an existing purchase order in Netsuite. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `general-ledger` | Fetches all JournalEntries in Netsuite | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `locations` | Fetches all locations in Netsuite | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

***


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