POS Device API
When creating invoices from outside Imonggo, it is important that each invoice is assigned an unique reference number. This will avoid duplicate invoice being created in the server. In order to facilitate the unique referencing, Imonggo suggest that you prefix each reference number with a unique POS device id.
For example, reference number 1-1 would refer to 1st invoice created by pos device 1, 1-2 would refer to 2nd invoice created by pos device 2 and so on.
To create a POS device and retrieve its ID, use Create API call below.
curl "https://test_account.imonggo.com/api/pos_devices.xml" \ -u 1eca48c82fa4a5bbe1397d673355428f9d6f4037:X \ -H "Accept: application/xml" \ -H "Content-Type: application/xml" -d "<pos_device><name>Remote POS 1</name></pos_device>"
<?xml version="1.0" encoding="UTF-8"?> <pos_device> <id>1</id> </pos_device>
- 200 OK - if successful