How Youzan’s Factoring System Accelerates Merchant Cash Flow: Architecture & Workflow

This article explains the background, benefits, and typical models of factoring, analyzes the cash‑flow challenges faced by Youzan merchants, and details the system’s business and technical architecture—including service routing and state‑machine workflow—to enable rapid payment settlement.

Youzan Coder
Youzan Coder
Youzan Coder
How Youzan’s Factoring System Accelerates Merchant Cash Flow: Architecture & Workflow

Background

Youzan’s basic consumption guarantee holds funds in escrow until the buyer confirms receipt, typically a 7‑day settlement period. This delay restricts merchants’ cash flow and limits transaction scaling, prompting the introduction of a fast‑payment factoring product.

Factoring Overview

Definition

Factoring (also called “pay‑by‑agency”) is an integrated financial service that combines factoring financing, sales‑account management, accounts‑receivable management, and credit‑risk guarantee.

Benefits

Platform‑level no leverage: merchants use their own receivables instead of borrowing, avoiding additional debt.

No extra liability for the enterprise.

Improves cash liquidity by converting receivables into usable cash.

Typical Business Model

Suppliers deliver goods on credit and sign supply orders with purchasers. The supplier transfers the receivable (the supply order) to a factoring company, which pays a discounted amount. When the purchaser later pays the supplier, the supplier repurchases the claim from the factor.

Factoring business model diagram
Factoring business model diagram

Factoring in Youzan Quick Payment

Problem Analysis

According to China’s Consumer Rights Protection Law, consumers may return goods within seven days without reason. Consequently, most Youzan orders must wait 7–30 days after shipment before settlement. During this lock‑up period the funds remain in the payment platform, creating cash‑flow pressure for merchants.

Settlement lock‑up timeline
Settlement lock‑up timeline

Quick‑Payment Factoring Model

Merchants treat the pending settlement amount as an account‑receivable. By transferring this receivable to a factoring company they receive financing upfront. The workflow is:

Merchant ships goods.

Merchant applies for financing using the pending settlement amount.

Factor approves the request and disburses funds.

Merchant uses the cash immediately for operations.

After settlement, the merchant repays the factor with the settlement amount; the factor retains a service fee.

Quick‑payment factoring workflow
Quick‑payment factoring workflow

Youzan Factoring System Architecture

Business Architecture

Product Configuration : defines product rates, capital channels, and repayment modes.

Credit Management : grants credit limits based on merchants’ transaction data and credit status.

Accounts‑Receivable Management : handles transferred receivables, including collection and reconciliation.

Financing Management : accepts financing applications and provides funds against receivables.

Post‑Financing Management : monitors risk, conducts periodic checks, issues alerts, and manages repayment and claim repurchase.

Business architecture diagram
Business architecture diagram

Technical Architecture

Service Routing

The system packages multiple factoring products via product configuration. A unified API receives a product code and routes the request to the appropriate factoring mode based on a router configuration. For example, financing applications for products QK_001, QK_002, and DZD_001 all invoke the same financing API; the service router matches the product code to the router config and forwards the request to the corresponding workflow.

Service routing diagram
Service routing diagram

Status‑Machine Workflow

Factoring operations involve multiple sequential steps and asynchronous results. The system uses a state machine to mark the current processing node of each request, chaining states into a complete workflow. This design ensures that each step (e.g., application, approval, disbursement, repayment) is tracked and can trigger subsequent actions automatically.

State machine workflow diagram
State machine workflow diagram

Future Work

The current factoring system supports the quick‑payment product for external services, but many functional enhancements remain. Ongoing work will expand internal capabilities, refine risk‑control mechanisms, and improve external product packaging.

state machinepayment systemsservice routingfintechYouzancash flowFactoring
Youzan Coder
Written by

Youzan Coder

Official Youzan tech channel, delivering technical insights and occasional daily updates from the Youzan tech team.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.