FMSYNC

acomba.payment

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

Using the Invoicing module of Acomba, apply a payment to a printable invoice. Created Payment cannot be modified.
token
STRING
required
Encrypted token that contains de credential to access the accounting software. Use the online Tokenizer to generate new tokens.
noinvoice
STRING
required
Invoice Number where the payment will be applied. Do not include prefix.
date
STRING
required
Date of the payment
payments
ARRAY
required
Payment Details
type
NUMBER
required
Payment Type. 1 = Cash, 2 = Direct Payment, 3 = Check, 4 = Visa, 5 = Mastercard, 6 = Amex
amount
NUMBER
required
Payment amount, enter a negative number to apply a refund.
return
OBJECT
Return informations to your application
syslog
OBJECT
Status returned to your system table
table
STRING
required
Name of your system table
fntaskid
STRING
required
Field Name of the taskid column
fnstatus
STRING
required
Field Name of the status column
fnmessage
STRING
required
Field Name of the message column

Request
[POST] curl https://api.fmsync.net/v2/{sourcekey}/acomba/payment
-d task={
   "token":"1714919909",
   "noinvoice":"10038",
   "date":"08\/01\/18",
   "payments":[{
      "type":1,
      "amount":10
   }],
   "return":{
      "syslog":{
         "table":"fmsync",
         "fntaskid":"taskid",
         "fnstatus":"status",
         "fnmessage":"message"
      }
   }
}
Return
-d data={
   "success":true,
   "message":null,
   "taskid":"20a686bf4bab9df1b0f30c85842d2b556d9898e5",
   "context":"acomba.payment",
   "data":{
      "invoicenumber":"10038",
      "customer":"9875417"
   }
}

Copyright © Création Logicom 2025