The basics
An online retailer pays a manufacturer, often overseas, weeks before stock is on the warehouse shelf, then spends on advertising to sell it. Customers pay at checkout, but the money may be held by a payment processor or marketplace for days, and returns are refunded from cash that has already gone. The cash cycle from paying a supplier to banking sales can run to three or four months, and a fast-growing store needs more cash tied up in stock the faster it grows.
The useful finance tends to be flexible. A revolving credit facility can be drawn when a stock order is placed and repaid as sales come in. A merchant cash advance can be repaid as a share of card and payment processor sales. Where the business sells wholesale or to retailers on credit, invoice finance may fit that side. For a particular order or peak, a short unsecured loan is common. A broker used to ecommerce can look at the data lenders see, such as processor payouts.

