FMSYNC

acomba.invoice

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

Using the Invoicing module of Acomba, a printable sale Invoice will be created for the client. Created Invoice cannot be modified, create a new acomba.invoice task and reverse any quantities and Shipping fees.
token
STRING
required
Encrypted token that contains de credential to access the accounting software
code
STRING
required
The unique identifier for a client, Bridge will use all informations for this client to create the invoice (Address, Terms, GL etc).
date
STRING
required
Date of the current invoice
invoicetocode
STRING
Client code to address the invoice
reference
STRING
Invoice Reference
description
STRING
Invoice short description
project
NUMBER
Project number associate with this invoice
taxgroup
STRING
Name of the Tax Group, if not defined, bridge will use the default tax group of the client
ship
OBJECT
Shipping informations.
name
STRING
Name of the company where it will be shipped
contact
STRING
Contact name of the shipping address
address
STRING
Shipping address
city
STRING
Shipping City
postal
STRING
Shipping Postal/ZIP Code
country
STRING
Shipping Country Name
amount
NUMBER
Shipping Fees
lines
ARRAY
Invoice Details.
product
STRING
Product Code of the line, need to be a valid product code from Acomba Inventory.
description
STRING
required
Product Code of the line, need to be a valid product code from Acomba Inventory.
quantity
NUMBER
required
Quantity of the line. Put 0 if you need a description line only.
price
NUMBER
required
Price of the line. Put 0 if you need a description line only.
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
STRING
required
Primary Key Value
fninvoicenumber
STRING
required
Field name of Invoice Number for the created invoice.
fnprefix
STRING
Field name of the Prefix that should be attached to your Invoice number.
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/invoice
-d task={
   "token":"1714919909",
   "code":"5593366",
   "date":"08\/01\/18",
   "reference":"This my Reference",
   "description":"This is my description",
   "taxgroup":"GST",
   "ship":{
      "name":"Miracle Company",
      "contact":"John Doe",
      "address":"123 Bonneville Street",
      "city":"Montreal",
      "postal":"J9E 4T4",
      "country":"CA",
      "amount":30.99
   },
   "lines":[{
      "product":"GiftCertificates",
      "description":"Gift Certificat",
      "quantity":1,
      "price":10
   },
   {
      "product":"WFrenchWin",
      "description":"Steel French Window and 2 Tiled Windows",
      "quantity":1.45,
      "price":375.45
   },
   {
      "description":"Descriptive line only",
      "quantity":0,
      "price":0
   }],
   "return":{
      "table":"acomba.invoice",
      "record":{
         "key":"id",
         "value":"1"
      },
      "fninvoicenumber":"noinvoice",
      "fnprefix":"prefix",
      "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.invoice",
   "data":{
      "invoicenumber":"14657",
      "prefix":"CU"
   }
}

Copyright © Création Logicom 2025