Prepare your source data
Data source replication
Integration Imports replicate your source data 1-1. A customer record in your source will have an identical row in your CSV file. Similarly, a purchase record in your source will have an identical row in your CSV file.
If you plan to link purchases to customers, you must upload the customers via an Integration Import — purchases cannot be linked to customers uploaded via a CRM Import.
Staff members uploaded via an Integration Import should be staff from your POS system; they are used to attribute purchases to the staff members who processed or assisted them. Users that can log in to and access Endear are uploaded via a CRM Import. The two can be linked to each other in Endear.
File format
Each data type is imported from its own CSV file. The column headers for each file are listed in the Schema Reference, along with a downloadable header file per data type. Dates and timestamps should be formatted as ISO-8601 (Z/UTC), and currency codes as ISO-4217.
For null datapoints, simply leave the cell blank.
Unique identifiers
Every file is keyed by an id column. We recommend always using a unique, opaque primary key from your source system for each record. The id must be stable across uploads — rows with the same id update the existing record in Endear.
Timestamps
The updated_at column is optional, and in most cases we suggest leaving it blank. If you send an updated_at value, you must send an updated_at value in future uploads with a newer timestamp in order for data to be updated.
Deletes
Set deleted_at on a record to soft delete it. Soft-deleted records are removed from the active dataset but retained for historical reporting and analytics.
Money values
Monetary amounts are sent as decimal numbers, with the currency given in the currency_code column of the same row. A purchase line item's currency must match the currency of its purchase.
- For Product variants, if a price is unknown, simply list
0.01as the placeholder price. This price is not used in purchase calculations. - For Purchases, we perform a soft validation between
subtotal,discount,shipping,tax, andtotal. Thesubtotal - discount + shipping + taxshould equal or be similar to thetotal, but we understand there may be cases where it is slightly off.
