{"$schema":"http:\/\/json-schema.org\/draft-07\/schema#","$id":"https:\/\/api.fmsync.net\/apiref\/schema\/acomba\/payment","title":"acomba.payment","description":"Using the Invoicing module of Acomba, apply a payment to a printable invoice. Created Payment cannot be modified.","required":["token","noinvoice","date","payments"],"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"},"noinvoice":{"description":"Invoice Number where the payment will be applied. Do not include prefix.","type":"string"},"date":{"description":"Date of the payment","type":"string"},"payments":{"description":"Payment Details","required":["type","amount"],"type":"array","minItems":1,"maxItems":2,"properties":{"type":{"description":"Payment Type. 1 = Cash, 2 = Direct Payment, 3 = Check, 4 = Visa, 5 = Mastercard, 6 = Amex","type":"number","minimum":1,"maximum":6},"amount":{"description":"Payment amount, enter a negative number to apply a refund.","type":"number"}}},"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","noinvoice":"10038","date":"08\/01\/18","payments":[{"type":1,"amount":10}],"return":{"syslog":{"table":"fmsync","fntaskid":"taskid","fnstatus":"status","fnmessage":"message"}}},"return":{"success":true,"message":null,"taskid":"20a686bf4bab9df1b0f30c85842d2b556d9898e5","context":"acomba.payment","data":{"invoicenumber":"10038","customer":"9875417"}}}