FMSYNC

acomba.balance

Schema : https://api.fmsync.net/apiref/schema/acomba/balance
Namespace : acomba
Method : balance

Get current balance due from client
token
STRING
required
Encrypted token that contains de credential to access the accounting software. Use the online Tokenizer to generate new tokens.
code
STRING
required
The unique identifier for a client
return
OBJECT
Return informations to your application
table
STRING
required
Table/Layout where your informations will be returned
record
OBJECT
required
Record that need to be updated
key
STRING
required
Primary Key Name
value
INTEGER
required
Primary Key Value
fnbalance
STRING
required
Field name of the client balance
fnbal30
STRING
Field name of the client balance for the last 30 days
fnbal60
STRING
Field name of the client balance for the last 60 days
fnbal90
STRING
Field name of the client balance for the last 90 days
fndateunpaid
STRING
Date of the first unpaid invoice.
syslog
OBJECT
Status returned to your system table
table
STRING
required
Name of your system table
record
OBJECT
required
Record that need to be updated
fnstatus
STRING
required
Field Name of the status column
fntaskid
STRING
Field Name of the taskid column
fnmessage
STRING
Field Name of the message column

Request
[POST] curl https://api.fmsync.net/v2/{sourcekey}/acomba/balance
-d task={
   "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
-d data={
   "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"
   }
}

Copyright © Création Logicom 2025