web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

import a payment to an existing invoice using eConnect

(1) ShareShare
ReportReport
Posted on by

Hi,

I'm trying to apply a payment to an existing invoice, I do this by using taCreateSopPaymentInsertRecord, the problem is that if I do not specify a taSopHdrIvcInsert eConnect give error.

How can I apply a payment without creating a new (empty) invoice?

This is the relevant session of my XML, in the taCreateSopPaymentInsertRecord I do specify the real invoice number (5353000057) and in the taSopHdrIvcInsert I have to create a fake (empty) invoice (INV00000000000118)

<taCreateSopPaymentInsertRecord_Items>
<taCreateSopPaymentInsertRecord>
<SOPTYPE>3</SOPTYPE>
<SOPNUMBE>5353000057</SOPNUMBE>
<CUSTNMBR />
<CUSTNAME>FLAWLESS</CUSTNAME>
<DOCDATE>3/2/2019</DOCDATE>
<DOCAMNT>377.5000</DOCAMNT>
<CHEKBKID>TDBANK-OPERATE </CHEKBKID>
<CHEKNMBR>8585</CHEKNMBR>
<AUTHCODE>TEST</AUTHCODE>
<PYMTTYPE>5</PYMTTYPE>
</taCreateSopPaymentInsertRecord>
</taCreateSopPaymentInsertRecord_Items>
<taSopUserDefined xsi:nil="true" />
<taSopDistribution_Items xsi:nil="true" />
<taAnalyticsDistribution_Items xsi:nil="true" />
<taSopMultiBin_Items xsi:nil="true" />
<taSopHdrIvcInsert>
<SOPTYPE>3</SOPTYPE>
<DOCID>DIST-INV </DOCID>
<SOPNUMBE>INV00000000000118</SOPNUMBE>
<LOCNCODE>BR </LOCNCODE>
<DOCDATE>3/2/2019</DOCDATE>
<CUSTNMBR />
<CUSTNAME>FLAWLESS</CUSTNAME>
<PYMTRCVD>377.5000</PYMTRCVD>
<BACHNUMB>MyBatch</BACHNUMB>
</taSopHdrIvcInsert>

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    MG-16101311-0 Profile Picture
    26,225 on at

    Is the invoice in question posted or unposted? If the invoice is unposted you still need to send all the header information and turn on the Update If Exists flag. If the invoice is already posted, then you need to setup a cash receipt transaction and that would require using the taRMCashReceiptInsert and the taRMApply XML nodes to be able to do this.

  • Community Member Profile Picture
    on at

    Hi Mariano,

    Thanks for your reply, much appreciated.

    The invoice is unposted. It was inserted in a previous transaction. Unfortunately the current flow does not allow me to post both transactions (the invoice and the payment) in the same request.

    I will try to use the Update flag, I was not aware of its existence.

    Thanks again,

    Ignacio

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans