Stuart Eastland Posted February 21, 2021 Share Posted February 21, 2021 We push sales invoices from our in-house system into sage using the API, a process that also creates customers and suppliers in Sage if required. When I create a Contact (customer or vendor) using the API I get a 32 character "id" and the $path shows as /contacts/abcde where abcde is the 32 character id. When I use Sage online and search for a contact the resulting url looks like /contacts/customers/12345678 where 12345678 is an 8 digit numeric id which I cannot find in the data returned from Sage when I do a Contact GET. I note that the API uses the 32 character id when creating sales invoices, so this is what I am persisting against customers in our in-house system.. So my question is, how can I construct a url to a contact using the 32 character id? If this is not possible, how can I obtain the numeric id that Sage uses in the page url for contacts? As a wider question, why does Sage use so many different identifiers? It is even worse in a sales invoice which has the 32 character id, a SI-nnnnn transaction id and another sequential sales invoice id in the reference field. the SI-nnnnn seems unnecessary. We have just migrated from sage50 where we used to use the reference column to hold a unique identifier to the corresponding despatch data in our own system, but there is no suitable place for this now. Link to comment Share on other sites More sharing options...
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now