{"$schema":"http:\/\/json-schema.org\/draft-07\/schema#","$id":"https:\/\/api.fmsync.net\/apiref\/schema\/acomba\/customer","title":"acomba.customer","description":"Add\/Update a customer of Acomba.","required":["token","code","active"],"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, if client code does not exist, Bridge will create it.","type":"string"},"active":{"description":"Client status. Must be active to invoice","type":"boolean"},"name":{"description":"Client Name","type":"string"},"sortkey":{"description":"Keywords used by Acomba for searching","type":"string"},"contact":{"description":"Contact name for this client","type":"string"},"email":{"description":"Email Address","type":"string"},"emailstatement":{"description":"Determine if Acomba statement will be sent to the Email Address by default","type":"boolean"},"web":{"description":"Website Url","type":"string"},"language":{"description":"Acomba's language ID. Default values are 9=English and 12=French. Please check your Acomba to confirm.","type":"number","minimum":0,"maximum":12},"location":{"description":"Address informations","type":"object","properties":{"address":{"description":"Client Address","type":"string"},"city":{"description":"Client City","type":"string"},"region":{"description":"Client Region\/Province\/State","type":"string"},"postal":{"description":"Client Postal\/Zip Code","type":"string"},"country":{"description":"Client Country","type":"string"}}},"creditline":{"description":"Credit Line informations","type":"object","properties":{"type":{"description":"Credit Line type :  0 = None, 1 = Upon Authorization, 2 = Credit Line Check, 3 = Unlimited","type":"number","minimum":0,"maximum":3},"amount":{"description":"Credit Line Amount","type":"number","minimum":0}}},"phonenumber":{"description":"Phone Number","type":"string"},"extension":{"description":"Phone Extension","type":"string"},"faxnumber":{"description":"Fax Number","type":"string"},"phonecustom":{"description":"Custom Phone Number","required":["description","number"],"type":"array","minItems":1,"maxItems":2,"properties":{"description":{"description":"Phone Description","type":"string"},"number":{"description":"Phone Number","type":"string"},"extension":{"description":"Phone Extension","type":"string"}}},"payterm":{"description":"Payment Term ID ( Check your acomba to get the list )","type":"number","minimum":0},"taxgroup":{"description":"Tax Group Code ( Check your acomba to get the list )","type":"string"},"salesrep":{"description":"Sales Representative ID ( Check your acomba to get the list )","type":"number","minimum":0},"territory":{"description":"Territory ID ( Check your acomba to get the list )","type":"number","minimum":0},"receivableaccount":{"description":"Receivable Account ID ( Check your acomba to get the list )","type":"number","minimum":0},"orderallowed":{"description":"Determine if orders are allowed for this client","type":"boolean"},"openingdate":{"description":"Opening date of the client account","type":"string"},"comment":{"description":"Comments on this client","type":"string"},"return":{"description":"Return informations to your application","type":"object","properties":{"syslog":{"description":"Status returned to your system table","required":["table","fntaskid","fnstatus","fnmessage"],"type":"object","properties":{"table":{"description":"Name of your system table","type":"string"},"fntaskid":{"description":"Field Name of the taskid column","type":"string"},"fnstatus":{"description":"Field Name of the status column","type":"string"},"fnmessage":{"description":"Field Name of the message column","type":"string"}}}}}},"example":{"token":"1714919909","code":"fmsync2","active":true,"name":"Cr\u00e9ation Logicom","contact":"David","sortkey":"Bridge Synchronisation Service","location":{"address":"123 Bonneville Street","city":"Montreal","postal":"J9E 4T4","region":"QC","country":"CA"},"email":"fmsync@fortysixnorth.com","emailstatement":true,"web":"https:\/\/fmsync.net","language":9,"creditline":{"type":3,"amount":5000},"phonenumber":"18005556666","extension":"315","faxnumber":"18779876547","phonecustom":[{"description":"Mobile","number":"5149784578","extension":"315"}],"payterm":1,"taxgroup":"GST","salesrep":2,"territory":1,"receivableaccount":1,"orderallowed":true,"openingdate":"08\/01\/18","comment":"This client is awesome !","return":{"syslog":{"table":"syslog","record":{"key":"id","value":1},"fntaskid":"taskid","fnstatus":"status","fnmessage":"message"}}},"return":{"success":true,"message":null,"taskid":"20a686bf4bab9df1b0f30c85842d2b556d9898e5","context":"acomba.customer"}}