# TRADOM — インボイス後払い型 (Invoice / Post-Payment)
## Simplified UX Flow

**Transaction type:** Goods are shipped and delivered **before** payment. Invoice is issued after delivery, and Buyer pays based on the invoice.

**Legend:**
- 🟢 **[MANUAL]** — User action required
- ⚙️ **[AUTO]** — System / automated process
- 📧 **[EMAIL]** — Automated notification
- ⚠️ **[EDGE]** — Irregular / exception case

**Phases (shared structure with 前払い for later comparison):**
1. Inquiry
2. Review (与信審査)
3. Shipping
4. Invoice issuance
5. Payment
6. Settlement (Fiat payout to Seller)

---

# 📦 SELLER — Step-by-step (Happy Path)

> Assumption: Seller is already onboarded and Seller-side KYC/審査 is complete.

### Phase 1 — Inquiry
1. 🟢 **[MANUAL]** Receive purchase intent from Buyer (outside TRADOM).
2. 🟢 **[MANUAL]** Open the TRADOM Seller 管理画面 → **問い合わせ画面**, and submit an inquiry to TRADOM with:
   - Buyer information
   - Estimated transaction amount
   - Product / transaction details
   - Transaction history (if any)
   - **(後払い型のみ)** Sales contract information ⚠️
   - Optional attachments (PDF / Excel / image)
3. ⚙️ **[AUTO]** Seller 管理画面 displays **「支払い依頼 確認中」** status.

### Phase 2 — Review (与信審査)
4. ⏳ Wait for TRADOM's credit review of the Buyer (Client B).
5. 📧 **[EMAIL]** Receive review result:
   - **OK** → 「審査通過 → 商品発送許可」 notification
   - **NG** → 「審査結果NG」 notification (see Edge cases)
6. 🟢 **[MANUAL]** Check 管理画面 → confirm **審査完了ラベル** and transaction status.

### Phase 3 — Shipping
7. 🟢 **[MANUAL]** Ship the goods to Buyer.
8. 🟢 **[MANUAL]** Notify shipment completion (sent to Buyer / TRADOM).
9. ⏳ Wait for delivery confirmation.

### Phase 4 — Invoice issuance
10. 🟢 **[MANUAL]** After delivery, create the invoice.
11. 🟢 **[MANUAL]** Finalize the invoice content.
12. 🟢 **[MANUAL]** In TRADOM Seller 管理画面, **upload the invoice and any required documents**.
13. 🟢 **[MANUAL]** Confirm/finalize payment details (支払い内容の確定).
14. ⚙️ **[AUTO]** 管理画面 status changes to **「支払い待ち」**.

### Phase 5 — Payment
15. 📧 **[EMAIL]** Receive **「支払案内を送付しました」** notification (TRADOM has sent the payment link to Buyer; debt has been assigned from Seller to TRADOM).
16. ⏳ Wait for Buyer's payment.
17. 📧 **[EMAIL]** Receive **決済完了** notification once Buyer pays.

### Phase 6 — Settlement
18. ⏳ TRADOM converts crypto → fiat (off-ramp).
19. 📧 **[EMAIL]** Receive **振り込み完了** notification on the pre-agreed date.
20. ✅ Transaction with Buyer complete.

---

## ⚠️ SELLER — Edge cases

| Case | What happens | Seller action |
|---|---|---|
| **審査NG / 却下** | 📧 Rejection email received | 🟢 Check 却下 status and details in 管理画面. Transaction ends here. |
| **金額不一致 — 不足入金** (Buyer underpaid) | ⚙️ TRADOM refunds Buyer; 📧 notification sent | No action required. **Buyer may re-pay** — transaction resumes. |
| **金額不一致 — 超越入金** (Buyer overpaid) | ⚙️ TRADOM issues partial refund; 📧 notification sent | No action required. |
| **Buyer requests refund after settlement** | Buyer contacts Seller directly | 🟢 Decide: **合意する** → handle via post-transaction refund flow / **合意しない** → individual communication |
| **取引キャンセル (irregular)** | Alert raised | 🟢 Coordinate individually with TRADOM admin |

---

# 🛠️ TRADOM ADMIN — Step-by-step (Happy Path)

> Operates via the TRADOM 管理者用 管理画面.

### Phase 1 — Inquiry intake
1. 📧 **[AUTO]** Receive inquiry email from Seller.
2. ⚙️ **[AUTO]** Alert displayed in admin 管理画面.
3. 🟢 **[MANUAL]** Open the inquiry and review details in 管理画面.

### Phase 2 — Review (与信審査)
4. 🟢 **[MANUAL]** Conduct **厳密版 credit review** on Buyer (Client B).
5. 🟢 **[MANUAL]** Record result:
   - **通過** → 🟢 Approve transaction on screen (取引の受付)
   - **却下** → 🟢 Change status to 却下 (see Edge cases)
   - **追加確認あり** → 🟢 Individual handling
6. ⚙️ **[AUTO]** 「審査通過 → 商品発送許可」 notification sent to Seller (連動処理).
7. ⚙️ **[AUTO]** 管理画面 shows **審査通過ラベル** + **支払い待ち** status.

### Phase 3 — Shipping (monitor only)
8. ⏳ Seller ships; delivery completes. No admin action required on happy path.

### Phase 4 — Invoice review
9. ⚙️ **[AUTO]** Seller uploads invoice → appears in 管理画面.
10. 🟢 **[MANUAL]** **Final check of invoice contents.**
    - **問題なし** → 🟢 Confirm 支払い受付確定 (status change)
    - **問題あり** → 🟢 Individual handling (支払い拒絶の可能性あり)
11. ⚙️ **[AUTO]** **支払い案内メール** auto-sent to Buyer (連動処理) containing:
    - Notice that debt has been assigned from Seller to TRADOM
    - Payment flow explanation
    - Payment link
    - Review result
    - Contract agreement info
    - Held information

### Phase 5 — Payment monitoring
12. ⏳ Wait for Buyer to pay via the payment screen.
13. 🟢 **[MANUAL]** Check Buyer's remittance amount (金額照合 is manual).
14. ⚙️ **[AUTO]** 照合結果 flag displayed when mismatch is detected:
    - **一致** → proceed
    - **不足入金 / 超越入金** → 🟢 **MANUAL admin decision** (see Edge cases)
15. 🟢 **[MANUAL]** Confirm receipt.
16. ⚙️ **[AUTO]** **決済完了メール** sent to Buyer and Seller (連動処理).
17. ⚙️ **[AUTO]** Transaction status switches to **受け取り完了** automatically.

### Phase 6 — Settlement (Fiat payout)
18. 🟢 **[MANUAL]** Execute crypto → fiat exchange / off-ramp.
19. 🟢 **[MANUAL]** On the pre-agreed date, transfer fiat to **Client A (Seller)**.
20. ⚙️ **[AUTO]** **振り込み完了メール** auto-sent to Seller (連動処理).
21. 🟢 **[MANUAL]** Change transaction status to **完了**.

---

## ⚠️ TRADOM ADMIN — Edge cases

| Case | Trigger | Admin action |
|---|---|---|
| **審査却下** | Credit review fails | 🟢 Change status to 却下 → ⚙️ rejection email auto-sent to Seller |
| **追加確認あり** | Review needs more info | 🟢 Contact via **email or phone**; leave notes in 管理画面. Process pauses until resolved. |
| **インボイス問題あり** | Final invoice check fails | 🟢 **Process halted** — admin contacts Seller via email/phone to confirm manually; leave notes. Possible 支払い拒絶. |
| **不足入金** (Buyer underpaid) | 照合結果 flags mismatch | 🟢 Admin decides → ⚙️ refund auto-email sent → 🟢 execute refund per manual. **Buyer may re-pay**; transaction resumes. |
| **超越入金** (Buyer overpaid) | 照合結果 flags mismatch | 🟢 Admin decides → ⚙️ 一部返金 auto-email sent → 🟢 execute refund per manual |
| **Buyer post-payment refund request** | Buyer contacts admin | 🟢 Coordinate between Buyer and Seller; follow post-transaction refund flow |
| **取引キャンセル (irregular)** | Any stage | 🟢 Raise alert; individual handling |

---

# Key characteristics of 後払い型 (for later comparison with 前払い型)

- **Shipping happens BEFORE payment** → review (与信審査) must be 厳密版 because TRADOM bears Buyer default risk.
- **Sales contract info is required at inquiry** (前払い型 does not require this).
- **Invoice is created AFTER delivery**, then uploaded by Seller.
- **Debt is assigned from Seller to TRADOM** at the point payment instructions are sent to Buyer (代物弁済契約).
- **Two-step Seller-side work**: (1) ship → (2) invoice upload.
- **Two-step Admin-side approval gate**: (1) credit review → (2) invoice final check.

---

*Source: 5/20 審査回り再協議済 — 商品引渡し先履行型対象取引（インボイス後払い型／請求書ベース）*
