Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

import a payment to an existing invoice using eConnect

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: import a payment to an existing invoice using eConnect

    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

  • Verified answer
    Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: import a payment to an existing invoice using eConnect

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans