App marketplace cho website và commerce

Danh mục tích hợp cho merchant và partner: phần đã dùng được đi qua OAuth/API/webhook, phần planned chỉ mô tả lộ trình adapter thật.

Catalog tích hợp Mỗi card nói rõ ranh giới hiện tại để đội sales không bán quá phần nền tảng đã có.

Sẵn sàng APIAPI

OAuth + OpenAPI

Partner có thể dùng OAuth, Bearer token và spec JSON để tích hợp catalog/order hiện có.

  • /api/openapi.json
  • OAuth consent, PKCE, refresh token
  • Catalog, order, fulfillment, return API v1
Sẵn sàng APIAutomation

Webhook CRM/ERP

Outbox worker gửi lead và commerce event sang endpoint ngoài, có chữ ký và retry.

  • lead.created và lead.updated
  • Signed webhook headers
  • Retry UI trong admin settings
Manual trướcWebsite channel

WooCommerce / WordPress

Adapter WooCommerce đã có sync product listing và pull order qua REST API; cần credential shop thật để bật.

  • Encrypted consumer secret
  • Product publish REST API
  • Order pull + cursor
PlannedMarketplace

Shopee / Lazada / TikTok Shop

Kênh sàn TMĐT nên làm từng adapter theo merchant pilot, không làm hàng loạt khi chưa có credential.

  • Listing sync theo SKU
  • Order pull qua queue
  • Stock/status push có retry
Manual trướcLogistics

Shipping & COD

Shipping/COD foundation đã có GHN create-order, webhook, quote fee và label token; cần token/shop/secret thật để bật production.

  • GHN Token/ShopId headers
  • Webhook secret optional
  • Fee quote + print label token
  • COD reconciliation foundation
Manual trướcPayment

Payment gateway refund

Return/refund API đã có provider HTTP chạy qua queue; cần credential endpoint thật để bật tự động.

  • Return API idempotent
  • Queued HTTP refund job
  • Manual fallback khi thiếu provider

Luồng tích hợp an toàn Mọi connector mới phải giữ đúng nguyên tắc queue, idempotency, fallback thủ công và bảo vệ credential.

  • Không lộ secret

    Credential phải mã hóa, không log plaintext và không nhúng vào Blade.

  • Idempotent job

    Đồng bộ sàn, shipping và payment chạy qua queue với khóa chống lặp.

  • Manual fallback

    Khi provider tắt hoặc thiếu key, UI phải trả hướng dẫn thao tác thủ công.

  • Trace được lỗi

    Mỗi lần sync cần log trạng thái, payload an toàn và nút retry có kiểm soát.