Method Community

 

Best Practices for recording and applying payment to invoices

Last post 11-07-2023 1:59 PM by sp9001. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-25-2023 8:10 PM

    Best Practices for recording and applying payment to invoices

    When we collect payment on an invoice through our website is there a better way to apply payment than to post a payment record to payments and then link the invoice ID and the payment ID with an applypaymenttxn record?

    Sorry applypaymenttxn  might not be the exact table but its something like that.

    Or is there another endpoint I should be using?

  • 08-21-2023 8:09 PM In reply to

    Re: Best Practices for recording and applying payment to invoices

    Hi sp9001,

    It is the same as creating a payment via actions/UI.
    You can either just insert a ReceivePayment record and set IsAutoApply = true or if you want to assign a specific invoice, insert ReceivePayment with IsAutoApply=false and ReceivePaymentAppliedtoTxn that references the specific transaction.
    Today our API actions are all table-specific calls but in the future, we might have higher endpoints maybe something like AcceptPayment, where you can just pass it an invoice recordID and it creates all the related receivepayment records. I will create a feature request for our development team to have it on their product roadmap.

    As of now, I think you will have to manually call the post on the ReceivePaymentAppliedtoTxn table to connect it with the invoice explicitly. 


    Regards,

    Inder

  • 11-07-2023 1:59 PM In reply to

    Re: Best Practices for recording and applying payment to invoices

    Can you send me some examples of this being done succesfully?

Page 1 of 1 (3 items)