Skip to main content

Full integration capabilities for Factory Master

An overview of the data fields imported from Factory Master into the CRM as part of the Factory Master integration.

Written by Jason

Important: This reference is provided as a guide and may not reflect every field imported for your specific configuration. Certain import sections, such as User Defined Fields, Price Lists, and Discount matrices, may not be fully represented here. As the integration is updated over time, this document may become out of date. If you notice any missing fields, inaccuracies, or discrepancies between this document and the data in your system, please raise this with our support team so that we can review and update this article accordingly.

Countries

Sourced from Factory Master's Country Codes endpoint.

CRM Field

Factory Master Source

Description

Country Code

CountryCode

Unique identifier for the country, used throughout the CRM for address and tax lookups

Country Name

Description

Human-readable country name displayed to users


VAT Rates

Sourced from Factory Master's Country VAT Codes and Vat Codes endpoints.

CRM Field

Factory Master Source

Description

Tax Code

CountryCode (from Country VAT Codes)

Links the tax rate to the applicable country

Rate

VatRate (from Country VAT Codes)

The actual VAT/tax percentage applied to transactions

Transaction Type

Derived: DefaultRecordSales="Yes" → Sales; DefaultRecordPurchase="Yes" → Purchase; neither → Unspecified

Determines whether the rate applies to sales, purchases, or is unspecified

Country Type

Derived from the home currency's country code

Classifies the rate by country type (e.g. home, EC, export)

Description

Description (from VAT Codes, looked up by VatCode)

Human-readable description of the tax rate


Warehouses

Factory Master does not expose individual warehouse records. The integration creates a single hardcoded "Main Warehouse" to satisfy the CRM's warehouse requirement.


Product Categories

Sourced from Factory Master's Product Groups endpoint.

CRM Field

Factory Master Source

Description

Category ID

ProductGroup

Unique identifier for the product category

Description

Description

Human-readable category name displayed to users

Obsolete

Hardcoded: No

Ensures all imported categories remain active


Currencies

Sourced from Factory Master's Currency endpoint.

CRM Field

Factory Master Source

Description

Currency Code

CurrencyCode

Unique identifier for the currency

Description

Description

Human-readable currency name

Home Currency

HomeCurrency ("Yes" → Yes, otherwise No)

Flags whether this is the base/home currency for the business

Currency Rate

CurrencyRateSales (falls back to 1 if zero)

Exchange rate used for converting sales transactions

Decimals

TotalDecimals

Number of decimal places the currency uses

Obsolete

Hardcoded: No

Ensures all imported currencies remain active


Sales Ledgers (Customers)

Sourced from Factory Master's Customer Accounts and Customer Addresses endpoints. This section also creates Delivery Locations and Contacts.

Customer Account

The default address for a customer is determined by finding the address whose Customer Address Code on the address matches the Sales Ledger ID, falling back to the first address on file.

CRM Field

Factory Master Source

Description

Sales Ledger ID

CustomerAccountCode (Account)

Unique customer identifier in the CRM

Accounts ID

CustomerAccountCode (Account)

Links the customer to the accounts system

Name

CustomerName (Account)

Customer/company name

Display Description

CustomerName (Account)

Name shown in lists and lookups

Email

Email (Default Address)

Customer's primary email

Currency Code

CurrencyCode (Default Address)

Customer's trading currency

Telephone

Telephone (Default Address)

Customer's phone number

Fax

FaxNumber (Default Address)

Customer's fax number

Address Line 1

Address1 (Default Address)

First line of postal address

Address Line 2

Address2 (Default Address)

Second line of postal address

Address Line 3

Address3 (Default Address)

Third line of postal address

Address Line 4

Address4 (Default Address)

Fourth line of postal address

Address Line 5

Address5 (Default Address)

Fifth line of postal address

Postcode

Postcode (Default Address)

Postal/ZIP code

Country Code

CountryCode (Default Address)

Country code for tax and address purposes

Country

Looked up from CRM Countries by CountryCode

Full country name for display

Tax Code

CountryCode (Default Address)

Determines which tax rules apply to this customer

On Stop

OnHold (Account; "Yes" → Yes, otherwise No)

Indicates if the customer account is on hold/stop

VAT Registration Code

VatRegNumber (Account)

Customer's VAT registration number for tax compliance

Default Warehouse

Hardcoded: MAIN

All customers default to the main warehouse

Closed

RedundantRecord (Account; "Yes" → Yes, otherwise No)

Marks the account as closed/inactive if redundant in Factory Master

Credit Limit

CreditLimit (Account)

Maximum credit allowed for the customer

Delivery Locations

All non-default customer addresses are imported as separate delivery locations.

CRM Field

Factory Master Source

Description

Accounts ID

CustomerAddressCode (Address)

Unique identifier for this delivery location

Name

CustomerName (Address)

Name associated with the delivery address

Address Line 1

Address1 (Address)

First line of delivery address

Address Line 2

Address2 (Address)

Second line of delivery address

Address Line 3

Address3 (Address)

Third line of delivery address

Address Line 4

Address4 (Address)

Fourth line of delivery address

Address Line 5

Address5 (Address)

Fifth line of delivery address

Postcode

Postcode (Address)

Delivery address postcode

Country

Looked up from CRM Countries by CountryCode

Full country name for the delivery location

Contacts

Contacts are loaded during the "Missing Customers Import" and linked to their customer account via Sales Ledger ID.

📌 Note: The "Missing Customers" Import will fire after every import, it check if any Sales Ledger exist but are not connected to a company/contact record. If any are found it will create these records. For more details, see the Missing Customer Import.

CRM Field

Factory Master Source

Description

Title

Title

Contact's title (e.g. Mr, Mrs, Dr)

Forename

Forenames

Contact's first name(s)

Surname

Surname

Contact's last name

Salutation

Salutation

Preferred form of address for correspondence

Email

Email

Contact's email address

Phone Number

Telephone

Contact's phone number

Fax

FaxNumber

Contact's fax number

Job Title

JobTitle

Contact's role within the organisation

Status

RedundantRecord ("Yes" → Deleted, otherwise Active)

Marks the contact as inactive if flagged redundant in Factory Master


Product Items

This section creates both the Product Item record and a Stock by Warehouse record for each product.

Product Item

CRM Field

Factory Master Source

Description

SKU

PartNumber

Product SKU / part number identifier

Product Item ID

PartNumber

Unique product identifier in the CRM

Description

ProductDescription

Short product description

Category

ProductGroup (defaults to "NONE" if blank)

Links the product to its product category

Cost Price

StandardCost

Standard cost of the product

Extended Description

ProductComments

Additional detailed product information

Sales Analysis Code

NominalCodeHome

Nominal code for sales reporting and analysis

Obsolete

PartStatus ("Redundant" → Yes, otherwise No)

Marks discontinued products

Accounts ID

PartNumber

Links the product back to the accounts system

Unit Description

StockUOM

Unit of measure (e.g. Each, Kg, Metre)

Quantity Decimals

StockDecimals

Number of decimal places allowed for quantities

Sellable

Hardcoded: Yes

All imported products are sellable

Stocked

Hardcoded: Yes

All imported products are stocked items

Allow Split

Hardcoded: Yes

Permits partial deliveries

Stock by Warehouse

CRM Field

Factory Master Source

Description

Product Item ID

PartNumber

Links stock record to the product

Warehouse Code

Hardcoded: MAIN

All stock is held in the single main warehouse

Free Stock

QuantityInStock minus QuantityAllocated

Available stock that can be sold/dispatched

Physical Stock

QuantityInStock

Total physical stock on hand

Quantity Decimals

StockDecimals

Decimal places for stock quantities

On Order

Hardcoded: 0

Not provided by Factory Master

Sales Orders

Hardcoded: 0

Not provided by Factory Master


Sales Transactions

The CRM expects to receive data structured as sales orders with order lines (i.e. a header with individual line items). However, Factory Master does not provide sales order data directly from their API; it only exposes invoices. A single sales order in Factory Master may result in multiple invoices (e.g. partial shipments invoiced separately), and a single invoice may contain lines from different sales orders.

To bridge this gap, the integration performs the following grouping/reconstruction process:

  1. Fetch invoice headers.

  2. Fetch invoice details and build an invoice-to-order map. Each invoice's detail lines contain a "Sales Order Number", which is used to trace the invoice back to its originating sales order.

  3. Retrieve all invoice detail lines for those sales orders . This gathers the complete picture of every line associated with each sales order, across all invoices.

  4. Group by sales order line number, where multiple invoice detail records exist for the same order line (e.g. from partial deliveries), their quantities and values are summed/aggregated into a single line.

  5. Emit one Sales Order Header per order, and one Sales Transaction line per aggregated order line.

This means the CRM receives a reconstructed view of the original sales order, built from invoice data, with quantities and values aggregated to the order-line level.

Sales Order Header

CRM Field

Factory Master Source

Description

Order Number

SalesOrderNumber (from Invoice Detail)

Unique sales order identifier, traced back from invoice details

Sales Ledger ID

CustomerAccountCode (Invoice Header)

Links the order to the customer

Base Gross Value

InvoiceTotalGrossHome (Invoice Header)

Total gross value in the home currency

Gross Value

InvoiceTotalGross (Invoice Header)

Total gross value in the transaction currency

Base Net Value

InvoiceTotalNetHome (Invoice Header)

Net value in the home currency

Base Tax Value

TotalVatHome (Invoice Header)

VAT/tax in the home currency

Net Value

InvoiceTotalNet (Invoice Header)

Net value in the transaction currency

Order Date

PostedDateTime (falls back to InvoiceDate) (Invoice Header)

Date the order/invoice was posted

Tax Value

TotalVat (Invoice Header)

VAT/tax in the transaction currency

Accounts ID

InvoiceNumber (Invoice Header)

Links the order header back to the invoice in the accounts system

Currency Code

CurrencyCode (Invoice Header)

Currency the order was transacted in

Platform

Hardcoded: FactoryMaster

Identifies the source system for this order

Status

Cancelled (Invoice Header; "Yes" → Deleted, otherwise Active)

Marks cancelled invoices as deleted in the CRM

Sales Transaction Lines

CRM Field

Factory Master Source

Description

Document ID

SalesOrderNumber (Invoice Detail)

Links the line to its parent sales order

Line Number

SalesOrderItem (Invoice Detail)

Position of the line within the order

Invoice Number

InvoiceNumber (Invoice Detail)

Associated invoice reference

Order Number

SalesOrderNumber (Invoice Detail)

Parent sales order number

Product Item ID

PartNumber (Invoice Detail)

Product on this order line

Product Description

ProductDescription (Invoice Detail)

Description of the product

Unit Price

UnitNetPrice (Invoice Detail)

Net price per unit

Order Quantity

Quantity (Invoice Detail, aggregated)

Total quantity ordered (summed across partial invoices)

Line Value

TotalPrice (Invoice Detail, aggregated)

Total net value for this line (summed)

Invoice Date

InvoiceDate (Invoice Detail)

Date of the invoice

Account

CustomerAccountCode (Invoice Detail)

Customer account reference

Ledger

CustomerAccountCode (Invoice Detail)

Ledger account reference

Transaction Type

InvoiceOrCredit (Invoice Detail)

Indicates whether this is an invoice or credit

Gross Value

TotalPrice + TotalVat (Invoice Detail, aggregated)

Total value including VAT

Currency Code

CurrencyCode (Invoice Header)

Transaction currency

Base Value

TotalPriceHome (Invoice Detail, aggregated)

Net value in home currency

Base Gross Value

TotalPriceHome + TotalVatHome (Invoice Detail, aggregated)

Gross value in home currency

Order Date

PostedDateTime (falls back to InvoiceDate) (Invoice Header)

Date the order was placed/posted

Payment Due Date

PaymentDueDate (Invoice Header)

Date payment is due

Status

Cancelled (Invoice Header; "Yes" → Deleted, otherwise Active)

Active or deleted status

Accounts ID

SalesOrderNumber (Invoice Detail)

Links line back to the accounts system

Warehouse Code

Hardcoded: MAIN

All transactions assigned to the main warehouse

Invoice Quantity

Quantity (Invoice Detail, aggregated)

Quantity invoiced

Quantity Delivered

Quantity (Invoice Detail, aggregated)

Quantity delivered (set equal to invoiced quantity)

Did this answer your question?