Sync invoices, payments, shipments and credit memos with NetSuite

Settings for syncing invoices, payments, item fulfillments and credit memos between Zoey and NetSuite in both directions.

Invoices

Zoey Payments

👍

Payments are imported from NetSuite and applied to Zoey Invoices.

Settings available to create Invoices and accept payments in Zoey, and then send it to NetSuite are also available.

Syncing Payments

When a payment is applied to an invoice in NetSuite, that payment will automatically sync to the matching Zoey invoice. A payment made towards a Zoey Invoice will also sync to NetSuite. The systems try to maintain equal payment totals and try to prevent you from duplicating payments.

For example:

  1. A $100 Order is synced from Zoey to NetSuite.
  2. A $100 Invoice is synced from NetSuite back into Zoey.
  3. You apply a $25 Payment to the Invoice in NetSuite.
  4. That $25 Payment will automatically be applied to the Zoey Invoice (synced every 20 minutes).
  5. You apply another $25 Payment to the Invoice in Zoey.
  6. That $25 Payment get's sent to NetSuite and linked to that Invoice.
  7. Once the remaining $50 Payment is applied both systems will get it and the Invoices will be marked Paid.

Manually Reconcile NetSuite Payments

Click here to see how to manually sync a Payment to NetSuite.


Zoey Invoices and Payments Settings

  • Import Zoey Invoices & Payments From NetSuite When set to Yes, Zoey imports NetSuite Invoices (and Cash Sales, if Create Zoey Payments from Cash Sales is on) as Zoey Invoices and Payments on the linked order.

    📘

    Invoice item prices

    Each Invoice line uses the price from the corresponding Zoey Order item. NetSuite invoice line-item prices do not overwrite the Zoey Order item price.

    The configured Shipping Cost Field and NetSuite Tax Amount Field control the shipping and tax amounts separately.

    • Enable Automatic Payments Import When enabled Payments will be synced from NetSuite to Zoey every 20 minutes.
    • Replace Zoey Invoice # with NetSuite Transaction ID When set to Yes, Zoey Invoice Numbers will be replaced by the NetSuite Invoice Transaction ID.
    • NetSuite Invoices Statuses (one per line) Zoey Payments will be created when NetSuite Invoices are set to one of the following statuses. (one per line). Sales Orders with these statuses are expected to have been paid in NetSuite so that payment details can be attached to the Order in Zoey.
  • Void Open Zoey Invoices when importing unlinked NetSuite Invoice When set to Yes, any Open Bills that are not associated to a NetSuite Invoice will be Voided when a NetSuite Invoice is imported.

    🚧

    This will Void ALL Open Bills on the Order.

  • Only Create Zoey Payments if Zoey Order has Shipped When set to Yes, Payments will be created in Zoey only if the order has been shipped.

  • Send Payment Receipt Email When set to Yes, a receipt email will be sent from Zoey for the payment.

  • Shipping Cost Field This is NetSuite Invoice field used to set the Shipping Amount on the Zoey Payment. When the field specified here is given a value on the Cash Sale or Invoice in NetSuite, that amount will sync to the Zoey Invoice and be captured by the Payment.

  • Include Only Linked Tracking Numbers When set to Yes, if Tracking Numbers are enabled to be rendered in the Payment PDF, only Tracking Numbers on the NetSuite Invoice Linked Tracking Numbers field will appear.

  • NetSuite Tax Amount Field This is NetSuite Invoice field used to set the Tax Amount on the Zoey Invoice/Payment. This amount will be captured by prior credit card authorizations like "Shipping Cost Field". When set to "None" the Tax Amount is automatically calculated from the Zoey Order Tax Amount

  • Create Invoice for Specific Payment Methods

    📘

    When set to Yes, instead of creating a Zoey Payment, a Zoey Invoice will be created.

    • Create Invoice Payment Methods List Payment Methods that will create a Zoey Invoice.
    • Send Invoice Email to Customer When set to Yes, the Invoice email will be sent to the Customer.
  • Apply Partial Payments to Zoey Invoices When set to Yes, a partial payment on a NetSuite Invoice is applied to its matching Zoey Invoice.

  • Mark Zoey Invoices as Paid if NetSuite Invoice Paid in Full When set to Yes, an Open Zoey Invoice will be marked as paid if its associated NetSuite Invoice has been Paid in Full.

  • Add NetSuite Location from Zoey Account (under NetSuite Payments) When set to Yes, the NetSuite Location on the Payment is set to the NetSuite Location assigned to the Zoey Account (the Sales Order Location field on the Account's NetSuite tab).

  • Apply Payments to linked NetSuite Invoices when Zoey Invoices are Paid by Customer (under NetSuite Payments) When set to Yes, when a customer pays an invoice and there is an associated NetSuite Invoice a payment will be applied in NetSuite.

    📘

    This setting controls whether a Zoey payment syncs to NetSuite to apply a payment to the associated NetSuite Invoice.

    • Send Invoice NetSuite Invoice Statuses (one per line) An Invoice will be sent for NetSuite Invoices with the following statuses (one per line). Sales Orders with a status listed here will create an open Zoey Invoice.
  • Create Zoey Payments from Cash Sales When set to Yes, Cash Sales records will be checked in addition to NetSuite Invoice records to create Zoey Payments.

    • Cash Sale Statuses (one per line) A Zoey Payment will be created for NetSuite Cash Sales with the following statuses (one per line)
🚧

How are Credit Card payments handled in Zoey?

Click here to learn about CC Authorization and Capture of payment.

Sales Orders Payment Settings

In the Sales Orders section there is the Payment Source setting which lets you choose between:

  • Payment Method
  • Payment Option

Payment Source determines whether a NetSuite Payment Method or Payment Option is being mapped to your NetSuite Sales Order or Deposit record.

Payment Method is the standard and can be mapped normally through the Payment Mapping section.

Payment Option

To map and set a Payment Option on your NetSuite Sales Orders or Deposits, go to Payment Mapping inside the Zoey NetSuite Integration.

Find Credit Card or any other Zoey Payment Methods which need to get mapped to a specific NetSuite Payment Option.

Set the NetSuite Payment Method to User Defined value enter the Method ID from NetSuite for the mapping. Then enter the Method Label for the Payment Option being mapped.

Getting Method ID in NetSuite

Here's how to find the Method ID:

  1. Find a NetSuite Payment with the ACH Payment Option set. The URL will look similar to this: app/accounting/transactions/custpymt.nl?whence=&id=29633

  2. Append onto that URL the following: &xml=t so you end up with something like: app/accounting/transactions/custpymt.nl?whence=&id=29633&xml=t

  3. Open that URL to see the XML data of the Payment.

  4. Find <paymentoption> which will have the Method ID we need to enter in Zoey. Shown in screenshot below.

  5. Take that and paste it into the Method ID section in the Zoey NetSuite Integration > Payment Mapping It should then be able to successfully sync over the Payment record to NetSuite and set that Payment Option.


NetSuite Invoices

  • Create NetSuite Invoices for Zoey Invoices When set to Yes, Zoey creates a NetSuite Invoice for each Zoey Invoice.
    • Create NetSuite Invoice for Zoey Invoice States Open: the NetSuite Invoice is created as soon as the Zoey Invoice is created. Paid: only once the Zoey Invoice is fully paid.
  • Order must be Fulfilled before Invoiced Set this to Yes if your NetSuite rules require that Sales Orders be fulfilled before being Invoiced.
  • Apply Payment to NetSuite Invoices When set to Yes, a Customer Payment will be applied to a NetSuite Invoices when a Zoey Payment is created.
    • Apply Payment to Invoice Payment Methods Select the Payment Methods that should apply the payment to NetSuite Invoices.
  • Sync Invoice Discounts On Choose how discounts are sent on NetSuite Invoices. Invoice (default) sends one discount for the whole Invoice, using the Add Discount as Line Item settings below. Item puts each item's discount on a discount line right after that item, so each item's gross profit in NetSuite is correct.

    📘

    Item requires Sales Orders synced per item

    Item uses the discount lines NetSuite copies from the Sales Order, so the Sales Order must have been synced with Sync Discounts On set to Item. Any discount that can't be placed under its item, such as a shipping discount, goes on the Invoice header instead. When Item is selected, Add Discount as Line Item and Discount Line Item is Taxable are not used. This applies to Invoices created after the change.

  • Add Discount as Line Item When set to Yes, any Discount on a Zoey Payment will be added as a separate Line Item on the NetSuite Invoice.
    • Discount Line Item ID The NetSuite Item ID to use for the Discount Line Item.
    • Discount Line Item is Taxable When set to Yes, the Discount Line item will be flagged as taxable.

Invoice Field Mapping

  • Invoice Field Mapping (Paid Zoey Invoices) and Invoice Field Mapping (Open Zoey Invoices) map Zoey invoice fields, such as the invoice number, to NetSuite Invoice fields. They show when Create NetSuite Invoices for Zoey Invoices is Yes.

Shipments

Zoey Shipments

📘

Press the Import Shipments button to begin importing Shipments from NetSuite to Zoey based on the settings below.

  • Import Zoey Shipments From NetSuite When enabled, Item Fulfillments created in NetSuite will create Shipments in Zoey.

    • Enable Automatic Shipment Import When enabled Item Fulfillments will be synced from NetSuite to Zoey every 20 minutes.
  • Tracking Number(s) Source
    When set to Default Package List, the regular tracking number will be imported from the NS Item Fulfillment.

    👍

    Set it to NetSuite Record Custom Field and enter the custom field code to import Tracking Number(s) from a custom field on the NS Item Fulfillment.

  • Shipping Method Title Field This setting allows users to choose where to pull the Shipping Method Title from. By default it is set to shipMethod (RecordRef). That can be changed to pull the title from a "NetSuite Record Custom Field" on the Item Fulfillment. The custom field ID must then be provided. Users can optionally map values from the NetSuite custom field to a more user-friendly label, such as FDXGND -> FedEx Ground.

  • Send Shipment Email When set to Yes, a New Shipment Email will be sent to the Customer from Zoey.

  • Only Import Shipped Fulfillments When set to Yes, only NetSuite fulfillments with a status of 'Shipped' will be imported. Otherwise all fulfillments on the Sales Order will be imported.

  • Invoice and Pay in Zoey when Shipment Created When set to Yes, a Zoey Invoice will be created and Marked Paid when a shipment is imported from NetSuite. Depending on your Payment settings, this may also create an payment in NetSuite.

    • Send Payment Receipt Email When set to Yes, the invoice email will be sent when an invoice is created when a shipment is created. This is a separate setting from Send Invoice Email in the Invoices section above.
  • Limit Invoice and Pay on Shipment to Specific Payment Methods When set to Yes, a Zoey Invoice and Payment will be created when a shipment is imported from NetSuite only for the specified payment methods.

    • Invoice and Pay on Shipment Payment Methods The payment methods that get an Invoice and Payment when a shipment is imported.
  • Skip Shipment Import Order Statuses Orders with the following Status(es) will be skipped when importing Item Fulfillments into Zoey. If an Order with a status in this list is skipped and the Order Status is removed from this list, the Order will remain flagged to skip. To add an Order to be checked again, use the Order History grid on this page, click the Order you wish to un-skip and set Skip Shipment Import to No. If no Order Statuses are defined here, then all Order Statuses will be checked.

Failed Invoice and Shipment Imports

When NetSuite invoices or item fulfillments for an order can't be imported into Zoey, the order page tells you why, and you can retry that one order after fixing the cause.

How automatic retries work

The automatic invoice import and shipment import retry a failed order on a slowing schedule:

Failed attemptsNext automatic try
1 to 3Every automatic import run
4 to 6At most once an hour
7 to 9At most once every 6 hours
10Automatic retries stop for that order

That's about 27 hours from the first failure to the stop. When an order reaches 10 failures, Zoey adds one order comment, for example: NetSuite shipment import has reached the error limit of 10. This Order will no longer automatically attempt to import NetSuite Item Fulfillments. Last error: .... Failures before that add no order comment. When an import succeeds, the count starts over.

The Import Invoices & Payments and Import Shipments buttons on the NetSuite settings page retry waiting orders right away, but still leave out orders that stopped at 10 failures or are set to skip the import.

On the order page

In the Zoey Admin, open the order. On the Information tab, above the order totals, a message shows when an import is failing, for example:

  • NetSuite invoice import failed 2 times. It will try again automatically. Last error: ...
  • NetSuite invoice import failed 10 times, so automatic retries have stopped. Last error: ...
  • Automatic NetSuite shipment import is turned off for this order. Reason: ...

The Last error is the newest import error for this order from the NetSuite Error Log, now with NetSuite's actual message (for example data_invalid: Cannot create an empty shipment.) instead of Click here to view more information about this error.

Retry one order

  1. Fix the cause in NetSuite or Zoey (for example, give the product its NetSuite item ID).
  2. In the Zoey Admin, open the order.
  3. At the top of the order, click the ⋮ (more actions) menu to the right of the order's buttons (Ship, Invoice, Credit Memo and so on).
  4. Click Import NetSuite Invoice or Import NetSuite Shipments. The import runs right away; there's no confirmation step.
The order's more actions menu with Import NetSuite Shipments

Zoey clears that order's failure count and skip flag, imports right away and shows the result in a message above the order totals: the invoices, payments or shipments created, the error, or that NetSuite has nothing new.

Message above the order totals after Import NetSuite Shipments: NetSuite has no new item fulfillments for this Order

An order comment records which admin ran the import and the outcome. If the import fails again, automatic retries start over with a fresh count of 10. Other orders aren't affected.

The buttons show only for an order with a NetSuite Sales Order: Import NetSuite Invoice while the order isn't paid from NetSuite yet and can still be invoiced in Zoey, Import NetSuite Shipments while it can still ship.

Find stuck orders

In the Zoey Admin, go to Orders. Next to Not Synced to NetSuite, two tabs list the orders whose import stopped (10 failures or set to skip):

  • NetSuite Invoice Import Stuck (shown when the invoice import is on)
  • NetSuite Shipment Import Stuck (shown when the shipment import is on)

If the tabs aren't in the row, click the ⋮ at the end of the tabs to find them.

Orders grid tabs: Not Synced to NetSuite, NetSuite Invoice Import Stuck and NetSuite Shipment Import Stuck

Orders turned off for NetSuite sync and orders with a status in Skip Shipment Import Order Statuses aren't listed.

NetSuite Item Fulfillments

  • Create NetSuite Item Fulfillments When set to Yes, an Item Fulfillment will be created on NetSuite Sales Orders when a Zoey Shipment is created.

Item Fulfillment Field Mapping

  • Item Fulfillment Field Mapping allows you to sync a Zoey Shipment Field to a NetSuite Item Fulfillment Field.

Credit Memos

Zoey Credit Memos

  • Import Zoey Credit Memos From NetSuite When set to Yes, Credit Memos will be imported to the Zoey Order.
    • Send Credit Memo Email When set to Yes, the Credit Memo email will be sent from Zoey.
  • Import from Return Authorizations When set to Yes, Zoey will attempt to create Credit Memos from NetSuite Credit Memos that are created from NetSuite Return Authorizations. Return Authorizations must have been created from a NetSuite Invoice to have its associated Credit Memos imported.
📘

The key requirement for the Credit Memo import is that Zoey must be able to trace the NetSuite Credit Memo back to a NetSuite Invoice that corresponds to the Zoey order.

Meaning that the Return Authorizations in NetSuite must be created from the Invoice, or linked with an invoice. An RA created directly from a Sales Order that isn't linked to an invoice won't get imported.

NetSuite Credit Memos

  • Create NetSuite Credit Memos When set to Yes, a Credit Memo will be created on NetSuite Sales Order Payments when a Zoey Credit Memo is created for a Zoey Payment.
  • Adjustment Item ID Required to sync a credit memo's Adjustment amount. The NetSuite Item to use for the line that represents the Adjustment. The line's amount has the same sign as the Adjustment (positive or negative).
  • Add Adjustment Refund Line Item When set to Yes, the Adjustment Refund from a Zoey Credit Memo will be added as a Line Item to the NetSuite Credit Memo.
    • Adjustment Refund Line Item ID The NetSuite Item ID to use for the Adjustment Refund Line Item.
  • Add Adjustment Fee Line Item When set to Yes, the Adjustment Fee from a Zoey Credit Memo will be added as a Line Item to the NetSuite Credit Memo
    • Adjustment Fee Line Item ID The NetSuite Item ID to use for the Adjustment Fee Line Item.
  • Create for Partial Refunds When set to Yes, a Credit Memo will be created using a placeholder NetSuite item when a Zoey Credit Memo is created with a partial refund that does not contain any items.
    • Partial Refund Item ID The NetSuite Item ID to use for Credit Memos that do not contain items.
  • Refund NetSuite Credit Memos When set to Yes, a refund will be applied to the NetSuite Credit Memo when it is created.
    • Credit Memo Refund Account Select the Refund Account from the dropdown menu.
    • Credit Memo Payment Method Select allowed payment method for NetSuite Credit Memo.

Credit Memo Field Mapping

  • Zoey Field Select the field in Zoey you want to sync with a field in NetSuite.
  • NetSuite Field Enter the field from NetSuite to map to the field you selected for the Zoey Field.
  • Add Field (Button) Add as many additional field mappings as needed.

Did this page help you?