Page 1 of 1

Question about transactions

Posted: Fri Feb 15, 2019 6:45 am
by cebim68
Hi all,

I need more precisions about transactions behaviours.

If there are 3 bank accounts involved in a money transaction (A, B, C).

"A" give money to "B" and then "B" give money to "C".

Using the REST API, is there a way to manage these 2 money transactions as only one "atomic transaction" (computer science point of view), in order that a rollback call (still Using REST API) make that C gives the money back to B, and then B gives money back to A.
Or in case of network failure after the transaction between "A" and "B", I want to be sure that the entire transaction is cancelled, and avoid that only "A" give money to "B" and "C" does receive nothing.

Is it possible to have an example using the REST API ?

Best regards.

Re: Question about transactions

Posted: Fri Feb 22, 2019 11:36 am
by cebim68
up ?