API to void payment with invoice cancellation
Summary: currently UI supports voiding payment with Cancel Invoice option (see screenshot below)
is there API to do similar ?
Content (required):
we can succesfully void payment using REST API with PATCH method /fscmRestApi/resources/11.13.18.05/payablesPayments/{PaymentId}
but it leaves invoices uncancelled.
Oracle support document REST API For Voiding Payments And Have Questions On Invoices (Doc ID 2657887.1)
makes clarification to run sequence of API calls:
- pull invoice ids for given payment
- void payment via API
- run in the loop of ids from step #1 to cancel each individual invoices
but this process may leave odd transactions if one of API in step #3 fails and there is no rollback
1