SG - Xero Integration Setup Download PDF
SETUP GUIDE

Xero Integration

Setup Guide

Document Details

Document #: 160_XOSG_250509

System Requirements

QR code — scan to download the latest version of this guide
Download the latest version of this document here: https://links.crunchtime.com/SG-XeroIntegrationSetup

… or scan the QR code to the left.

Screen NameControl NameDescription
CompanyAdd/Delete/SaveAdd information to the Company detail screen, delete non-required information, and make changes to the screen.
Location DetailsAdd/Delete/SaveAdd or delete a location record, make and save changes to location details.
Vendor DetailsAdd/Delete/SaveAdd information to the Vendor Details screen, delete non-required information, and make changes to the screen.
General LedgerAdd/Delete/SaveAdd or delete General Ledger accounts, make and save changes to the list.

Integration

Xero Integration

Introduction

Overview

Crunchtime has developed API Integration between the Crunchtime platform and the Xero application. This integration will push Accounts Payable (invoices/vendors), Inventory changes, and Sales summary data into the Xero application.

Use Cases & Data Flow

Prerequisites

The following information must be configured in the Crunchtime and Xero applications before you begin integration setup:

Process

This guide will cover the following steps needed to set up the Xero integration.

  1. 1
    Configure the User Defined Attributes in Crunchtime.
  2. 2
    Match Locations between Crunchtime and Xero.
  3. 3
    Match Vendors between Crunchtime and Xero.
  4. 4
    Match GL Codes between Crunchtime and Xero.

Configure User Defined Attributes

Overview

A User Defined Attribute (UDA) is a manually entered value used to configure attributes that don’t exist natively within the Crunchtime application but may need to be referenced for your integration with the Xero application. These settings are first configured at the Company level and then may be further configured at the Vendor and/or Location level if necessary.

Company UDAs

  1. 1
    From the Corporate menu, select Company.
Enterprise Manager > Corporate: Company > User Defined Attributes
Screenshot: Enterprise Manager > Corporate: Company > User Defined Attributes
2

Choose the User Defined Attributes tab.

3

From the Group drop-down, select ‘XERO’. This will filter the list of UDAs to include only attributes related to the Xero integration. (You can also filter for “Code” = ‘XERO’.)

4

The following UDAs (highlighted above) must be obtained from Xero. The values for these UDAs are crucial for the integration between Crunchtime and Xero to function. • XERO_CLIENT_ID – Indicates the Client ID needed to access Xero.
• XERO_CLIENT_SECRET– Indicates the Client Secret ID needed to access Xero.
• XERO_TENANT_ID – Indicates the Xero organization ID.

4

The following UDAs (highlighted above) must be obtained from Xero. The values for these UDAs are crucial for the integration between Crunchtime and Xero to function. • XERO_CLIENT_ID – Indicates the Client ID needed to access Xero.
• XERO_CLIENT_SECRET– Indicates the Client Secret ID needed to access Xero.
• XERO_TENANT_ID – Indicates the Xero organization ID.

4

The following UDAs (highlighted above) must be obtained from Xero. The values for these UDAs are crucial for the integration between Crunchtime and Xero to function. • XERO_CLIENT_ID – Indicates the Client ID needed to access Xero.
• XERO_CLIENT_SECRET– Indicates the Client Secret ID needed to access Xero.
• XERO_TENANT_ID – Indicates the Xero organization ID.

  1. 2
    Choose the User Defined Attributes tab.
  2. 3
    From the Group drop-down, select ‘XERO’. This will filter the list of UDAs to include only attributes related to the Xero integration. (You can also filter for “Code” = ‘XERO’.)
  3. 4
    The following UDAs (highlighted above) must be obtained from Xero. The values for these UDAs are crucial for the integration between Crunchtime and Xero to function.
    • XERO_CLIENT_ID – Indicates the Client ID needed to access Xero.
    • XERO_CLIENT_SECRET– Indicates the Client Secret ID needed to access Xero.
    • XERO_TENANT_ID – Indicates the Xero organization ID.

Master Data Setup

Locations, Vendors, and GL Codes need to be configured in Crunchtime and matched against corresponding entries in Xero before running any integration processes.

Match Locations

  1. 1
    From the Corporate menu, select Locations.
Enterprise Manager > Corporate: Locations
Screenshot: Enterprise Manager > Corporate: Locations
2

Verify the Name of the locations in Crunchtime match those entered in Xero.

  1. 2
    Verify the Name of the locations in Crunchtime match those entered in Xero.

Match Vendors

  1. 1
    From the Purchasing menu, select Vendors.
Enterprise Manager > Purchasing: Vendors
Screenshot: Enterprise Manager > Purchasing: Vendors
2

Verify that the Name of the vendors in Crunchtime match those entered in Xero.

  1. 2
    Verify that the Name of the vendors in Crunchtime match those entered in Xero.

Match GL Codes

  1. 1
    From the Corporate menu, select General Ledger.
Enterprise Manager > Corporate: General Ledger
Screenshot: Enterprise Manager > Corporate: General Ledger
2

Verify that the GL Number of the accounts in Crunchtime match those entered in Xero.

  1. 2
    Verify that the GL Number of the accounts in Crunchtime match those entered in Xero.

GL Setup – Sales Prerequisites

There are two fundamental prerequisites for Sales exports:

Sales Export Preferences

Overview

The Export Mappings screen allows corporate users to define the Export Preferences for all of the available sales exports. Mapping for the Xero Sales export will be visible only when the Company User Defined Attribute for XERO_INTEGRATION_ENABLED = ‘true’. This mapping can only be edited by a corporate user associated with a User Group that has the “Export Mapping: Sales Edit” control enabled.

Export Mapping – Xero Sales

The following preferences can be defined for the Xero Sales export:

Enterprise Manager > Interfaces: Export Mapping > Xero Sales
Screenshot: Enterprise Manager > Interfaces: Export Mapping > Xero Sales
A

Export Sales Start Date – Select/enter the first date that should be included in the first export.

B

Delay Sales Days – Enter the number of days (0-6) that sales from the end of each period should be delayed from the period's export. The sales for those days will be included in the next period export. This helps ensure sales for each period are final prior to exporting to Xero.

User Defined Attributes List

User Defined Attributes

The following Company-level UDAs are required for Xero integration.

FieldDescription
1XERO_INTEGRATION_ENABLEDValid values are ‘true’ or ‘false’.
Set this value to true to enable Xero integration.

The following Company-level UDAs are available for Xero integration (listed alphabetically).

FieldDescription
1XERO_API_URLXero API host URL.
2XERO_BILL_STATUSDetermines if a Vendor Bill comes in as auto-approved or waiting for manual approval. Valid entries are ‘DRAFT’, ‘SUBMITTED’ or ‘AUTHORISED’.
3XERO_CLIENT_IDThe Client ID to create an access token for the Xero environment.
4XERO_CLIENT_SECRETThe Client Secret ID to create an access token for the Xero environment.
5XERO_EMAILAfter invoices are sent successfully, send notice to the following email address(es). Supports multiple emails separated by comma. If you do not wish to be notified for successful push, leave field blank.
6XERO_JOURNAL_STATUSIndicates whether journals need to be submitted in ‘Draft’ or ‘Posted’ mode. Default value will be ‘Posted’.
7XERO_LOCATION_TRACKING_NAMESet this value to the Xero Tracking Category name.
8XERO_SCOPEModules the user wants to access on the Xero dashboard.
9XERO_TENANT_IDThe organization ID from Xero.

The following Location-level UDAs are available for Xero integration.

FieldDescription
1XERO_LOC_TENANT_IDLocation-specific organization ID from Xero.