ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Api EntityFieldTypeFormatMax SizeExample
2
Customeridstring-255b90r3v28y5n0283
3
CustomerparentIdstring-255c79eq79cbebece
4
CustomergroupIdnumberint325
5
CustomerchaseHeadOfficebooleanTRUETRUE
6
CustomeraccountNumberstring-500EC0023
7
Customernamestring-500ezyCollect
8
CustomercreditTermsstring-4530 days after EOM
9
CustomercreditLimitnumberdouble50000
10
Customeractiveboolean-TRUE
11
CustomeronHoldbooleanFALSE
12
CustomerbusinessNumberstring-255[53 156 330 371] will become [53156330371]
13
Customerstreetstring-500Level 1/80 Bay Street
14
Customerstreet2string-256Apartment
15
Customercitystring-256Ultimo
16
Customerstatestring-256NSW
17
Customerpostcodestring-1002007
18
Customercountrystring-256AU
19
Customerbalancenumberdouble20154.76
20
CustomerconsolidatedBalancenumberdouble202154.76
21
CustomerearlyDiscountDaysnumberint325
22
CustomerearlyDiscountRatenumberdouble35.3
23
CustomerlatePaymentChargeRatenumberdouble18.5
24
Customernotesstring-2000Doesn't like to pay before the 15th of the month
25
CustomersalesRepresentativestring-255Jack
26
CustomercustomFieldstring-1024BSB 082902
27
CustomercustomField2string-1024Account 1054-4852
28
CustomercustomField3string-1024Account name Julius Caesar
29
Example Query:
30
Select
c.UniqueID As id,
c.ParentAccount As 'parentId',
c.CustomerGroup As 'groupId',
CASE
WHEN c.ParentAccount <> '' THEN 'true'
ELSE 'false'
END As 'chaseHeadOffice',
c.CustomerCode As 'accountNumber',
c.CustomerTitle As 'name',
tt.TermsTitle As 'creditTerms',
c.CreditLimit As 'creditLimit',
'true' As 'active',
CASE
WHEN c.HoldInvoices = 1 THEN 'true'
ELSE 'false'
END As 'onHold',
c.Status As 'status',
c.TaxNumber As 'businessNumber' ,
c.MailingStreet1 As 'street',
c.MailingStreet1 As 'street2',
c.MailingSuburb As 'city',
c.MailingState As 'state',
c.Postcode as 'postcode',
c.MailingCountry As 'country',
c.TotalDue as 'balance',
c.TotalDue As 'consolidatedBalance',
0 As 'earlyDiscountDays',
c.Discount As 'earlyDiscountRate',
c.Interest As 'latePaymentChargeRate',
c.Remarks As 'notes',
'' As 'salesRepresentative',
c.Notes As 'customField',
c.Category as 'customField2',
c.TaxStatus As 'customField3'
FROM CUSTOMERS c
INNER JOIN TRADINGTERMS tt
ON tt.TermsCode = c.Terms
WHERE c.TotalDue <> 0
AND c.Status like 'A%'
ORDER BY ParentAccount ASC
31
ObservationsOnly customers with a balance <> 0 and active are required
32
When a Customer has parentId, Parent customer should exist in the sync
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100