Platform dan OAuth

Sambung Shopee, TikTok Shop, Lazada, atau Shopify melalui OAuth setiap platform.

Connect Shopee, TikTok Shop, Lazada, or Shopify after a paid plan. Sandbox connections skip this page and use the mock adapter.

Shared flow

  1. Open Console, then Connections, then Connect live shop.
  2. Choose the platform.
  3. Finish that platform's OAuth screen. Ongapi never asks for the seller password.
  4. Orders from all four platforms land in one canonical model.

Programmatic connect (ISV)

Use a live API key and POST /v1/connections/authorize with JSON:

  • platform: shopee, tiktok_shop, lazada, or shopify
  • region: MY, SG, TH, VN, PH, or ID
  • return_url: HTTPS URL on your app (where Ongapi redirects after OAuth)
  • shop_domain: required for Shopify (your-store.myshopify.com)

The response includes authorize_url and state. Send the seller to authorize_url.

After the seller approves, Ongapi redirects to your return_url with query parameters:

OutcomeQuery parameters
Successconnection_id, status=active
Failurestatus=error, error (short code or message)

Load platform, platform_shop_id, and status with GET /v1/connections/{connection_id}.

Test API keys (ong_test_…) always authorize the mock adapter, even if you pass a live platform name.

Shopify

Enter the shop domain before OAuth. Use the full your-store.myshopify.com host.

  • Scope: read_orders (last 60 days), plus fulfillment, location, and inventory scopes for ship and stock writes. Buyer name, phone, and shipping address stay empty until Shopify grants protected customer data access for the app.
  • Admin API version: 2026-10 unless SHOPIFY_API_VERSION overrides it. 2025-01 is no longer a supported Shopify version.
  • Webhooks registered on the app: orders/create and orders/updated.
  • A fulfilled order is stored as shipped. Ongapi does not map it to completed, because that would skip the legal steps after ready to ship.
  • Shopify has no marketplace AWB on GET …/shipping-label (waybill_unavailable). Order waybill_url is the fulfillment tracking link when Shopify sends one. platform_logistics ship mode returns capability_unsupported. seller_tracking creates a fulfillment. Warehouses and inventory use locations. Live calls need fulfillment and inventory scopes and may return capability_unsupported until the shop re-authorizes. See Orders and events.

Shopee, TikTok Shop, and Lazada

Pick a region instead of a shop domain: MY, SG, TH, VN, PH, or ID. Partner apps for Shopee, TikTok Shop, Lazada, and Shopify are enabled in production. On a paid plan, connect a live shop from Console.

Redirects

PlatformWhat you register
Shopee/oauth/shopee/callback
TikTok Shop/oauth/tiktok_shop/callback
Lazada/oauth/lazada/callback
Shopify/oauth/shopify/callback