{"$schema":"http:\/\/json-schema.org\/draft-07\/schema#","$id":"https:\/\/api.fmsync.net\/apiref\/schema\/acomba\/balance","title":"acomba.balance","description":"Get current balance due from client","required":["token","code"],"type":"object","properties":{"token":{"description":"Encrypted token that contains de credential to access the accounting software. Use the <a href=\"https:\/\/fmsync.net\/en\/tokenizer\">online Tokenizer<\/a> to generate new tokens.","type":"string"},"code":{"description":"The unique identifier for a client","type":"string"},"return":{"description":"Return informations to your application","required":["table","record","fnbalance"],"type":"object","properties":{"table":{"description":"Table\/Layout where your informations will be returned","type":"string"},"record":{"description":"Record that need to be updated","required":["key","value"],"type":"object","properties":{"key":{"description":"Primary Key Name","type":"string"},"value":{"description":"Primary Key Value","type":"integer"}}},"fnbalance":{"description":"Field name of the client balance","type":"string"},"fnbal30":{"description":"Field name of the client balance for the last 30 days","type":"string"},"fnbal60":{"description":"Field name of the client balance for the last 60 days","type":"string"},"fnbal90":{"description":"Field name of the client balance for the last 90 days","type":"string"},"fndateunpaid":{"description":"Date of the first unpaid invoice.","type":"string"},"syslog":{"description":"Status returned to your system table","required":["table","record","fnstatus"],"type":"object","properties":{"table":{"description":"Name of your system table","type":"string"},"record":{"description":"Record that need to be updated","required":["key","value"],"type":"object","properties":{"key":{"description":"Primary Key Name","type":"string"},"value":{"description":"Primary Key Value","type":"integer"}}},"fnstatus":{"description":"Field Name of the status column","type":"string"},"fntaskid":{"description":"Field Name of the taskid column","type":"string"},"fnmessage":{"description":"Field Name of the message column","type":"string"}}}}}},"example":{"token":"1714919909","code":"5537412","return":{"table":"acomba.balance","record":{"key":"id","value":1},"fnbalance":"bal","fnbal30":"bal30","fnbal60":"bal60","fnbal90":"bal90","fndateunpaid":"lastunpaid","syslog":{"table":"syslog","record":{"key":"id","value":1},"fntaskid":"taskid","fnstatus":"status","fnmessage":"message"}}},"return":{"success":true,"message":null,"taskid":"20a686bf4bab9df1b0f30c85842d2b556d9898e5","context":"acomba.balance","data":{"balance":10120.45,"bal30":754.9,"bal60":4547.35,"bal90":10120.45,"dateunpaid":"01\/05\/18"}}}