Skip to Content
0
Aug 04 at 06:11 PM

Add External Payment to Released Invoice Document using OData

70 Views Last edit Aug 05 at 12:31 AM 2 rev

Hello,

I have a requirement to Add an External Reference to a Released Invoice Document using OData services.

I have created an OData Service for this with nodes:

CustomerInvoiceCustomerInvoice

CustomerInvoiceExternalPayment

OData POST Request Endpoint: https://myxxxxxx.sapbydesign.com/sap/byd/odata/cust/v1/customerinvoice/CustomerInvoiceExternalPaymentCollectionhttps://myxxxxxx.sapbydesign.com/sap/byd/odata/cust/v1/customerinvoice/CustomerInvoiceExternalPaymentCollection

JSON Body:

{

"ParentObjectID":"FA163E673A741EED84AFD3B81F75041B",

"PaymentTransactionReferenceID":"TEST123",

"Amount":"7.00",

"currencyCode":"GBP"

}

Where ParentObjectID is the Customer Invoice Object ID

Response:

<?xml version="1.0" encoding="utf-8"?>

http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code>ERROR</code>

<message xml:lang="en">My bank account not valid</message>

</error>

However I receive a response saying 'My bank account not valid'.

Can anyone assist with adding an external reference to an Invoice Document?

Regards