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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
talty09 Profile Picture

talty09 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans