-
Migrated from old docs When pulling a company's customers from the accounting api, the docs state that the 'id' of each customer record is unique within the scope of that company. I noticed that some ids are ints (1, 4, 42145) and some are GUIDS (b072e8a3-4463-424a-38d3-7ab333156b54). Is there any significance to this difference? Do the GUIDs represent customers that are themselves codat companies or is this just some internal change in the way you create this key? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Wherever possible, the Id is taken directly from the underlying platform, so the format depends on what the integration you are connected uses (eg, GUIDs, Ints or Strings). We do this for a couple of reasons, one is that in some platforms such as Xero it allows you to "deeplink" directly to a given customer, invoice etc - the other is that it tends to make supporting your customers easier, because if there is ever any confusion (EG Two Customers in the platform called Mr Smith) you can easily give them the ID to search in Xero, or Sage etc. and know that it will match the ID you see in Codat. |
Beta Was this translation helpful? Give feedback.
Wherever possible, the Id is taken directly from the underlying platform, so the format depends on what the integration you are connected uses (eg, GUIDs, Ints or Strings). We do this for a couple of reasons, one is that in some platforms such as Xero it allows you to "deeplink" directly to a given customer, invoice etc - the other is that it tends to make supporting your customers easier, because if there is ever any confusion (EG Two Customers in the platform called Mr Smith) you can easily give them the ID to search in Xero, or Sage etc. and know that it will match the ID you see in Codat.