cancel
Showing results for 
Search instead for 
Did you mean: 

Add External Payment to Released Invoice Document using OData

former_member641161
Discoverer
0 Kudos
136

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/CustomerInvoiceExternalPaymen...

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"?>

<error xmlns="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

Accepted Solutions (0)

Answers (0)