The cashout process
The transfer object mediates between the transaction and the cashout.
- A transaction may concern several items of several different sub-vendors for a single buyer.
- A cashout aggregates several transactions of several different orders for a single vendor.
The transfer represents the share that an item occupies for a single transaction (knowing that an order can itself be divided into several transactions).
It is entirely managed by the Marketplace API.
In the global Marketplace process, the transfer is the smallest unit of an order, and the key to transforming cash-in into cash-out. Since it is at the junction of the two operations, it is generated as soon as the transaction is identified as captured (i.e. its status is SUCCEEDED). It then takes the CREATED status.
Once the cash-out is captured, it changes to the SUCCEEDED status. This status is communicated to the transfer associated with it, whose status also changes to SUCCEEDED.