> For the complete documentation index, see [llms.txt](https://docs.sensepass.com/sensepay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sensepass.com/sensepay/platforms/netsuite-erp.md).

# NetSuite ERP

Install and use the SensePass Payment Gateway bundle in NetSuite.

The SensePass Payment Gateway bundle adds SensePass payments to NetSuite: payment links for sales orders and invoices, saved cards (payment tokens) on customer records, card payments, authorizations and captures on sales orders, refunds on credit memos, and in-person payments with EMV pinpads or SensePass tags.

Each flow below shows the steps, the result, the NetSuite records that are created or updated, and where to find them.

### Install the bundle

1. In NetSuite, go to **Customization** > **SuiteBundler** > **Search & Install Bundles**.
2. Search for bundle **598038**.
3. Click **SensePass Payment Gateway (ERP)**, then click **Install**. The bundle listing shows version 2.9.0, published by SensePass Ltd.
4. Go to the **Payment Methods** page and click **New**.
5. Add a payment method named **Sensepass** with the type **Offline**.
6. Click **Save**.

![Search & Install Bundles: bundle 598038](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FDn82i5ROgpXQAz1Y0feE%2Fnetsuite-rev11-i-005-010.jpg?alt=media)

![Payment Method Sensepass, type Offline](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2F0boBiEvCBXsJVvDnRzuk%2Fnetsuite-rev11-i-005-011.jpg?alt=media)

### Connect NetSuite to SensePass (API keys)

#### Create an API key in SensePass Partners

1. Sign in to SensePass Partners.
2. Go to **Developer** > **Branch API** and click **New**.
3. Select the **Location**, set **POS Vendor** to **NetSuite**, and select **Commit not required**.
4. Click **Save** and copy the API key.

#### Add the API key to NetSuite

1. In NetSuite, go to **Setup** > **Company** > **API Secrets** and click **Create New**.
2. Enter:
   * **Name**: SensePass ERP
   * **ID**: \_sensepass\_erp
   * **Password**: the API key you copied
   * **Restrictions**: allow for all scripts and allow for all domains
3. Save and copy the API secret name.
4. Go to **Customization** > **Lists, Records & Fields** > **Record Types**.
5. Search for **Sensepass Bank Account API** and click **New Sensepass Bank Account**.
6. Select the **Subsidiary** and the **Account**, and in **Name** enter the ID of the API secret (for example custsecret\_subsidiary1).

### Optional: EMV pinpads

To take card payments on a pinpad from NetSuite:

1. In SensePass Partners (Sandbox: <https://partner.sandbox.sensepass.com>, Production: <https://partner.sensepass.com>), go to **POS / Register** and click **Create POS / Register**.
2. Enter a **POS Name**, set **Pairing Mode** to **QR** and type the tag pairing code (XXX-XXX-XXX), set **Type** to **POS Paired**, and click **Save**.
3. Copy the **Device Identifier** of the new register with the copy icon.
4. Go to **Management** > **EMV Terminals** and click **New**. Enter a **Name**, select the **Device** you created and the pinpad **Type**, and save.
5. In NetSuite, type **SensePass employee** in the search bar and select **New SensePass - Employee to Device ID**.
6. Paste the Device ID into **SensePass Device ID**, select the NetSuite user and click **Save**.

![SensePass Partners: Create POS / Register](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FvqMUUTuiEImi1sTtpNoX%2Fnetsuite-rev11-i-008-018.jpg?alt=media)

![Copy the Device Identifier](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2Fu8WqULRqzFAswvVB9wR4%2Fnetsuite-rev11-i-009-021.jpg?alt=media)

![SensePass Partners: Management > EMV Terminals > New](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FKtX1T9aHr0tjGfm1oNfk%2Fnetsuite-rev11-i-010-024.jpg?alt=media)

![NetSuite search: New SensePass - Employee to Device ID](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FXdkbHCIra9bBj9LG5q0F%2Fnetsuite-rev11-i-010-025.jpg?alt=media)

To use EMV terminals, install the **SensePass Terminal Agent** on the computer.

### SensePass records in NetSuite

The bundle saves payment data in SensePass records and in the standard NetSuite transactions. Each SensePass record links to the customer and to the transaction it belongs to.

| Record                          | Created when                                                                                                 | What it holds                                                                                                                                                                                                                                                                                                        | Where to find it                                                                                                                                                                    |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **SensePass Payment Token**     | A card or bank account is saved: manual entry, a tokenization link, or a card payment through a payment link | Name (for example VISA - 1111), payment method, last four digits, expiration date, cardholder name, brand, **Memo** (how the token was created), **Default Card**                                                                                                                                                    | Customer > **Financial** tab > **SensePass Payment Token**                                                                                                                          |
| **SensePass Payment Event**     | Every transaction sent to SensePass, approved or declined                                                    | **Event** (Authorize, Capture, Sale, Refund, Void, Tokenize), result, reason, amount, full confirmation code, SensePass transaction ID, token used, card mask, card brand, last 4 digits, payment method, AVS and CVV results, service fee, surcharge amount, original invoices, related transaction, customer, user | The transaction > **Payment Method** subtab (payment, customer deposit) or **Billing** subtab (sales order) > **SensePass Payment Event**. Click the **ID** to open the full record |
| **SensePass Links**             | A payment link or a tokenization link is created                                                             | Link URL, **Status** (Pending, Completed, Cancelled), how it was sent (Copy Link, SMS, Email), sent to, description, **Link Type** (Payment or Token), expiration date, related transaction, customer                                                                                                                | Sales order or invoice > **Billing** subtab > **SensePass Links**. Customer > **Financial** tab > **SensePass Links**                                                               |
| **SensePass Transaction Log**   | A sales order is paid with Pay Now                                                                           | Amount, status, customer, sales order, transaction record, SensePass transaction number, transaction type, payment method, confirmation number, provider ID                                                                                                                                                          | Record customrecord\_ag\_sensepass\_paylog                                                                                                                                          |
| **Payment** (NetSuite)          | A payment is taken from the customer (Accept Payment) or an invoice payment link is paid                     | Payment method Sensepass, the card used, the invoices and the amount applied to each                                                                                                                                                                                                                                 | Invoice > **Related Records** subtab > **Payments**                                                                                                                                 |
| **Customer Deposit** (NetSuite) | A sales order is paid or captured (Capture Payment, payment link, Pay Now)                                   | Sales order, payment amount, payment method (card brand)                                                                                                                                                                                                                                                             | Sales order > **Related Records** subtab, or the link in the **Payment Records Created** message                                                                                    |

The **Payment Events** subtab (standard NetSuite) shows one short line per event. Use the **SensePass Payment Event** subtab for the full details.

### Save a payment method for a customer

1. Open the customer and click **Add Payment Method (CC / SMS / Email)**.
2. Choose how to collect the details:
   * **Manual Card Entry**: the **Save Credit Card Details** window opens. Enter the card number, month / year and CVV/CVC, and click **Save**. For Sandbox test cards, see [Testing](https://docs.sensepass.com/sensepay/developers/transaction-api/testing).
   * **Send link via SMS**: select the mobile number or select **Type Manually**. To customize the message, drag these tags into it: **Merchant Name**, **Location Name**, **Payment Link** and **Expiration Date**.
   * **Send link via Email**: enter the address and subject. Pick one of your NetSuite email templates, or write the message in the editor with NetSuite variables. The link is added at the bottom of the email.
3. Click **Continue**.

![Customer record: Add Payment Method (CC / SMS / Email)](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2Fdz3H4AsGTvZ9xbCokmdI%2Fnetsuite-rev11-i-025-073.jpg?alt=media)

![Manual Card Entry: Save Credit Card Details](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2Fz4P0LpMYNQ8kYdDw0ukQ%2Fnetsuite-rev11-i-025-074.jpg?alt=media)

![Send link via SMS](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FfFKB9xC5WUQWlrUDd0BH%2Fnetsuite-rev11-i-033-098.jpg?alt=media)

![Send link via Email](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FUmTED0tqwfjmfbcQUERt%2Fnetsuite-rev11-i-034-101.jpg?alt=media)

The customer can save a card or a bank account (ACH).

**Result**: for manual entry, NetSuite shows **New token generated, refreshing page in 3 seconds...** and reloads the customer. For a link, the payment method is saved when the customer completes the page.

**Records created or updated**

| Record                  | What changes                                                                                                                            |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| SensePass Payment Token | New token. **Memo** shows how it was created, for example "Created by a Token Link" or "Created by Payment Link (Capture+Tokenize)"     |
| SensePass Links         | For SMS or email: a new link with **Link Type** Token. **Status** is Pending, then Completed when the customer saves the payment method |

**Where to find it**: Customer > **Financial** tab > **SensePass Payment Token**. Links sent by SMS or email are on Customer > **Financial** tab > **SensePass Links**.

![Customer > Financial > SensePass Links: tokenization links and their status](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FZP7e3t4FYjfGxrsaQBxD%2Fnetsuite-rev11-i-035-104.jpg?alt=media)

![Customer > Financial > SensePass Payment Token: saved cards with Memo and Default Card](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FsYyfZ66KvvJUSk24VJ2K%2Fnetsuite-01_token_list.jpg?alt=media)

To change the default card, click **Edit** on the card and select **Default Card**. To delete a card, click **Remove**.

### Charge open invoices from the customer

1. On the customer record, click **Accept Payment**. A new payment opens.
2. On the **Apply** subtab, select the invoices to pay and enter the amount for each one. You can pay part of an invoice.
3. On the **Payment Method** subtab, set **Payment Method** to **Sensepass** and select the card in **SensePass Payment Method Select**.
4. Click **Save**.

**Result**: if the payment is approved, NetSuite shows **Confirmation: Transaction successfully Saved** and the payment record opens. If the payment is declined, NetSuite shows a warning such as "Payment was not processed. Reason: ..." with the reason from the processor, and no payment is saved.

![Example of a declined payment warning](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FwlHNrG6VEVYfp89fncaV%2Fnetsuite-rev11-i-038-114.jpg?alt=media)

**Records created or updated**

| Record                  | What changes                                                                                                                                                      |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Payment                 | New. The amount applied to each invoice, payment method Sensepass and the card used. The status is Deposited or Not Deposited, according to the deposit account   |
| Invoices                | **Amount Due** goes down by the amount applied. After a partial payment the invoice stays **Open**; when it is fully paid, the status changes to **Paid In Full** |
| SensePass Payment Event | New, with Event **Capture**, the result, the amount, the invoices paid and the card used                                                                          |

**Where to find it**: payment > **Payment Method** subtab > **Payment Events** (summary) or **SensePass Payment Event** > click the **ID** for the full details, including AVS, CVV and surcharge.

![Payment saved: Payment Method subtab > SensePass Payment Event](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FqcL7zHD4rUKnK47fkR0l%2Fnetsuite-02_payment_saved.jpg?alt=media)

![SensePass Payment Event record: event, result, invoices, token, card, AVS, CVV and surcharge fields](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FCCJxVw0eWKIfcCRrd7HV%2Fnetsuite-02b_payment_event_detail.jpg?alt=media)

### Sales orders

#### Authorize a sales order

1. Create a sales order and add the items.
2. On the **Billing** subtab > **Payment**, set **Payment Method** to **Sensepass**, set **SensePass Action** to **Authorize**, and select the card in **SensePass Payment Method Select**. To enter a new card, select **- New -** and **Add Payment Method**.
3. Click **Save**. The order is **Pending Approval**.
4. Click **Approve**. The order is **Pending Fulfillment**.

![Sales order > Billing > Payment: Sensepass, SensePass Payment Method Select and SensePass Action Authorize](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FPfnd3XajHchy2OQkUYuf%2Fnetsuite-rev11-i-041-127.jpg?alt=media)

![Add a new card from the sales order](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FQxdBs499HMOuN6fUTCRT%2Fnetsuite-rev11-i-041-128.jpg?alt=media)

If you later change the order amount, the authorization amount is adjusted.

**Result**: the order is saved with an approved authorization. No money is captured yet.

**Records created or updated**

| Record                  | What changes                                                              |
| ----------------------- | ------------------------------------------------------------------------- |
| Sales order             | Payment method, SensePass action and card saved on the **Billing** subtab |
| SensePass Payment Event | New, with Event **Authorize** and the order amount                        |

**Where to find it**: sales order > **Billing** subtab > **SensePass Payment Event**.

![Sales order > Billing > Payment: SensePass Action Authorize and the Authorize event](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FYqB9bNZMLu1jd7rYt34h%2Fnetsuite-03_so_authorize_event.jpg?alt=media)

#### Capture an authorized sales order

Open the approved sales order and click **Capture Payment**. NetSuite shows **Processing Payment: Capturing payment...** and reloads the order.

You can also capture by clicking **Bill Remaining**. Saving the cash sale captures the payment.

**Records created or updated**

| Record                  | What changes                                                                                                      |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Customer Deposit        | New, linked to the sales order, for the captured amount                                                           |
| SensePass Payment Event | New on the customer deposit, with Event **Capture**                                                               |
| Sales order             | **Current Deposits Made** goes up by the captured amount. The deposit is listed on the **Related Records** subtab |

**Where to find it**: sales order > **Related Records** subtab > click the date of the customer deposit. Then customer deposit > **Payment Method** subtab > **SensePass Payment Event**.

![Customer deposit created by Capture Payment, with the Capture event](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2Fi7HUcSvHZBYlQpegYsXD%2Fnetsuite-04_customer_deposit_capture.jpg?alt=media)

#### Capture at once

Create a sales order, select **Sensepass**, set **SensePass Action** to **Capture**, select the card in **SensePass Payment Method Select** and click **Save**.

![SensePass Action Capture on the sales order](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FmB9kAHr3QbfNVQOVHzJT%2Fnetsuite-rev11-i-042-131.jpg?alt=media)

#### Pay now (pinpad or tag)

1. Create the sales order and click **Approve**.
2. Click **Pay Now**.
3. Click **Continue** for the full amount, or enter a partial amount.
4. Choose how the customer pays: on the pinpad, with the SensePass tag, or by card entry. The customer completes the payment.

![Sales order: Pay Now](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FfNiNQBUy52lq1TEWakBJ%2Fnetsuite-rev11-i-040-121.jpg?alt=media)

![SensePass Payment: enter the amount and click Continue](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FHPQwlHQ6PZw5KUf5mVuG%2Fnetsuite-rev11-i-040-122.jpg?alt=media)

![Payment Records Created with a link to the customer deposit](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FWZN52Tm8pqqB7P0pkCG2%2Fnetsuite-rev11-i-040-123.jpg?alt=media)

**Result**: NetSuite shows **Payment Records Created** with a link to the new customer deposit.

**Records created or updated**

| Record                    | What changes                                                                               |
| ------------------------- | ------------------------------------------------------------------------------------------ |
| Customer Deposit          | New, linked to the sales order                                                             |
| SensePass Payment Event   | New on the customer deposit, with Event **Capture**                                        |
| SensePass Transaction Log | New, with the amount, status, sales order, transaction number and confirmation number      |
| Sales order               | **Current Deposits Made** goes up. The deposit is listed on the **Related Records** subtab |

**Where to find it**: click the link in the **Payment Records Created** message, or sales order > **Related Records** subtab.

![SensePass Transaction Log record](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2F0Xwr9DL1eMiNXgP7B0N3%2Fnetsuite-rev11-i-041-126.jpg?alt=media)

![Pay Now result: Payment Records Created with a link to the customer deposit](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FPdmbznVi0kRfLxjwWGtd%2Fnetsuite-06_pay_now_records_created.jpg?alt=media)

### Payment links

#### Send a payment link for a sales order

1. Create the sales order without payment details, save it and click **Approve**.
2. Click **Create Payment Link**.
3. In **Link Expiration**, select when the link expires, in days or hours. In **Payment Amount**, keep the full amount or enter part of it.
4. Select **Copy Link**, **Send via SMS** or **Send via Email**. The SMS and email options work the same way as for tokenization links.
5. Click **Create Payment Link**.
6. The customer opens the link, selects a payment method and pays.
7. Refresh the sales order to see the payment.

![Sales order: Create Payment Link](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FUBJp0Jjkj6i0D68QrZDS%2Fnetsuite-rev11-i-027-079.jpg?alt=media)

![Create Payment Link: Copy Link](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2Fj3M4rTDwPk8sAWJoBwU0%2Fnetsuite-rev11-i-027-080.jpg?alt=media)

![Create Payment Link: Send via SMS](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2F8TyRAuxcnAuTPoK770Vb%2Fnetsuite-rev11-i-028-083.jpg?alt=media)

![Create Payment Link: Send via Email](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FPwZ2PLOoecWT01V0CbIn%2Fnetsuite-rev11-i-029-086.jpg?alt=media)

A surcharge is added to card payments when the location has surcharge enabled. A service fee is added when one is set for the location in SensePass Partners > Location Settings.

![Payment page: surcharge shown before the customer pays](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2F1dh4DrLDWWtXv7pC4h2A%2Fnetsuite-05a_pay_page_surcharge.jpg?alt=media)

**Records created or updated**

| Record                  | What changes                                                                                                                             |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| SensePass Links         | New when you create the link, with **Link Type** Payment and **Status** Pending. The status changes to Completed after the customer pays |
| Customer Deposit        | New, linked to the sales order, for the amount the customer paid, including surcharge and service fee                                    |
| SensePass Payment Event | New on the customer deposit, with Event **Capture**                                                                                      |
| Sales order             | **Surcharge Amount** and **Current Deposits Made** are updated                                                                           |
| SensePass Payment Token | When the customer pays by card, the card is also saved to the customer, with Memo "Created by Payment Link (Capture+Tokenize)"           |

**Where to find it**: sales order > **Billing** subtab > **SensePass Links** for the link and its status. Sales order > **Related Records** subtab for the customer deposit.

![Sales order > Billing > SensePass Links: a Completed link and a Pending link](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FwwzSrnC5COQq1QctiDhE%2Fnetsuite-05b_so_links_subtab.jpg?alt=media)

![Sales order > Related Records: the customer deposit created by the link](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2F8nZfqOGH7AAif0Z6GmeJ%2Fnetsuite-05d_so_related_deposit.jpg?alt=media)

#### Send a payment link for an invoice

1. Create an invoice for the customer. Select the **Location** (required) and the items.
2. Click **Save** without payment details. The invoice is **Open**.
3. Click **Create Payment Link** and send the link as for a sales order.
4. After the customer pays, refresh the invoice.

**Result**: the invoice status changes from **Open** to **Paid In Full**.

**Records created or updated**

| Record                  | What changes                                                              |
| ----------------------- | ------------------------------------------------------------------------- |
| Invoice                 | Status **Paid In Full**                                                   |
| SensePass Links         | Status Pending, then Completed                                            |
| Payment                 | New, applied to the invoice. The memo shows the invoice number and amount |
| SensePass Payment Event | New on the payment, with Event **Capture** and the amount paid            |
| SensePass Payment Token | When the customer pays by card, the card is also saved to the customer    |

**Where to find it**: invoice > **Billing** subtab > **SensePass Links**. Invoice > **Related Records** subtab > **Payments** > click the date. Then payment > **Payment Method** subtab > **SensePass Payment Event**.

![Invoice > Billing > SensePass Links: link Completed](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2F8CZEIPXdXWiYooiBoVR1%2Fnetsuite-07a_invoice_links_completed.jpg?alt=media)

![Invoice > Related Records > Payments: the payment created by the link](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2F2Igcp8fvRaP7YFycH51Y%2Fnetsuite-07b_invoice_related_payment.jpg?alt=media)

![Payment record with the Capture event](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FlqgkCrJ2yg83EsvSnneK%2Fnetsuite-07c_invoice_payment_record.jpg?alt=media)

#### Cancel a payment link

On the **Billing** subtab > **SensePass Links**, click the link's date to open its record, then click **Cancel Link**. NetSuite shows **Cancelling Link** and the link status changes to **Cancelled**.

![Sales order > Billing > SensePass Links](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FwDeLe10NKLmHJGpCiF4Q%2Fnetsuite-rev11-i-030-089.jpg?alt=media)

![SensePass Links record: Cancel Link](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FRYBysWpFZ0Yfb3VqiXeA%2Fnetsuite-rev11-i-030-090.jpg?alt=media)

![SensePass Links record after Cancel Link: status Cancelled](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FGppTyi2sBTQ7E7DrkAGc%2Fnetsuite-05c_link_cancelled.jpg?alt=media)

### Refunds (credit memo)

1. On the credit memo, click **Refund**.
2. On the **Refund Method** subtab, select **SensePass**.
3. In **SensePass Token Select**, select the card.
4. Click **Save**.

![Customer refund: Refund Method SensePass and the card](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FayDM4aWwtcdUSl16JMaP%2Fnetsuite-rev11-i-046-143.jpg?alt=media)

If the refund is approved, the customer refund record opens and shows the credit memo it was applied to. If the processor declines the refund, NetSuite shows "Refund was not processed. Refund transaction was voided. Reason: ...".

![Refund approved: customer refund applied to the credit memo](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FSgY6im9tucsJNPG3FiaS%2Fnetsuite-rev11-i-047-147.jpg?alt=media)

![Example of a declined refund warning](https://3556089516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbqMA3Kf8t2xEX9F6y9%2Fuploads%2FogZP02TJAsIvBqLQ7N83%2Fnetsuite-rev11-i-046-144.jpg?alt=media)

### Test in Sandbox

Use the official test cards in [Testing](https://docs.sensepass.com/sensepay/developers/transaction-api/testing) in the Developers section.

Questions? Contact <support@sensepass.com> or your SensePass account manager.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sensepass.com/sensepay/platforms/netsuite-erp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
