Wojciech Sob
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Articles
Downloads
Gallery
Posts posted by Wojciech Sob
-
-
@Jordan Hall none of your links are working - all lead to 404....
@Jordan Hall none of your links are working - all lead to 404....
Sage Intacct api question re: payments --> invoices
in General
Posted
I am trying to post a payment and have it applied to an invoice, My code is below and when I run it I get the following error. Am I missing something here? Any help would be appreciated.
here is the code - it's pretty much straight from sdk/tests
const record = new IA.Functions.AccountsReceivable.ArPaymentCreate(); record.customerId = 'valid_cid'; record.transactionPaymentAmount = 123.00; record.receivedDate = new Date(); record.paymentMethod = 'Credit Card'; record.referenceNumber = 'abc123'; const applyToRecordA = new IA.Functions.AccountsReceivable.ArPaymentItem(); applyToRecordA.applyToRecordId = 'INV00002'; applyToRecordA.amountToApply = 123.00; record.applyToTransactions = [ applyToRecordA ]; record.creditCardType = 'Visa'; record.bankAccountId = 'bank_123'; return this.iaClient.execute(record);