شرح الربط
كل اللي محتاجه عشان توصّل متجرك وشركات الشحن وواتساب بتوصيلة. لو وقفت في أي خطوة كلّمنا.
Shopify — بتطبيق توصيلة الأسهل
التطبيق بيربط متجرك في دقيقة من غير ما تنسخ أي مفاتيح: الأوردرات الجديدة بتنزل عندك لحظيًا، وحالة التسليم بترجع لـ Shopify، والمخزون بيتسحب.
لو عندك حساب على توصيلة
- ادخل بحساب مدير الشركة ← «الربط» ← تبويب Shopify.
- اكتب رابط متجرك بالشكل ده
mystore.myshopify.comواضغط «ربط Shopify». - هتتحوّل لصفحة Shopify — راجع الصلاحيات واضغط Install.
- هترجع لتوصيلة ومكتوب «مربوط» — خلاص.
لو بدأت من متجر تطبيقات Shopify
- ثبّت تطبيق «توصيلة» على متجرك.
- هيفتح لك صفحة الدخول على توصيلة: ادخل بحساب مدير الشركة، أو سجّل شركة جديدة (14 يوم مجانًا).
- أول ما تدخل المتجر بيتربط بشركتك تلقائيًا.
الصلاحيات اللي بنطلبها: قراءة وتعديل الأوردرات (عشان نعلّمها اتشحنت/اتسلمت)، قراءة المنتجات والمخزون والمخازن. مش بنطلب بيانات الدفع.
لو مسحت التطبيق من Shopify الربط بيتقفل عندنا تلقائيًا، وأوردراتك القديمة بتفضل موجودة.
Shopify — بمفاتيح يدوية (Custom app)
استخدم الطريقة دي بس لو مش عايز تثبّت التطبيق.
- من حسابك على Shopify افتح Settings ← Apps and sales channels ← Develop apps (أو الـ Dev Dashboard) واعمل تطبيق جديد باسم «توصيلة».
- في صلاحيات Admin API فعّل:
read_orderswrite_ordersread_productsread_inventoryread_locationsread_merchant_managed_fulfillment_orderswrite_merchant_managed_fulfillment_orders. - ثبّت التطبيق على متجرك وانسخ Admin API access token (بيبدأ بـ
shpat_) — أو انسخ Client ID و Client secret. - في توصيلة: «الربط» ← «مفاتيح الربط»: حط
SHOPIFY_STORE=mystore.myshopify.com، وSHOPIFY_ACCESS_TOKEN= التوكن (أوSHOPIFY_CLIENT_IDوSHOPIFY_CLIENT_SECRET). - ارجع لتبويب Shopify واضغط «سجّلها» جنب الـ Webhooks عشان الأوردرات تنزل لحظيًا.
سحب مخزون Shopify
- لازم كل منتج يكون له SKU ومفعّل عليه «Track quantity» في Shopify.
- سجّل Cost per item لكل منتج في Shopify عشان قيمة المخزون تطلع صح في الحسابات.
- من «الربط ← Shopify» أو «المشتريات ← المخزون والتكلفة» اضغط «سحب المخزون». تقدر تفعّل السحب التلقائي كل ساعة.
الرصيد عندنا = المتاح في Shopify + الكميات في أوردرات لسه ما اتسلمتش (لأن Shopify بيخصمها وقت الطلب وإحنا بنخصمها وقت التسليم) — فمفيش خصم مرتين. أول سحب بيتسجل رصيد مخزون افتتاحي في الحسابات، وأي فرق بعد كده بيتسجل تسوية مخزون.
بوسطة
- من حسابك على بوسطة: Settings ← API Integration واعمل API key.
- في توصيلة: «مفاتيح الربط» ←
BOSTA_API_KEY. - من «المناديب» ضيف بوسطة كـ«شركة شحن»، وبعدين «الربط ← شركات الشحن» واختار نوعها «بوسطة — ربط مباشر».
- من شاشة الأوردرات اختار الأوردرات وابعتها لبوسطة — رقم البوليصة والحالة بيتحدّثوا لوحدهم.
شركات الشحن التانية (J&T، أرامكس، R2S، Mylerz وغيرها)
- ضيف الشركة من «المناديب» (نوع: شركة شحن)، واختار نوعها من «الربط ← شركات الشحن».
- ربط البوالص: ارفع شيت فيه عمود رقم الأوردر وعمود رقم البوليصة.
- تحديث الحالات: ارفع شيت الحالات اللي بتبعتهولك الشركة، أو ادّيهم رابط الـ Webhook اللي ظاهر تحت اسم الشركة يبعتوا عليه التحديثات.
- التصفية والتحصيل بيتعملوا من «الكاش» زي أي مندوب.
واتساب (تأكيد الأوردرات)
- اعمل حساب على Meta for Developers وتطبيق فيه منتج WhatsApp، وضيف رقم شركتك.
- في «مفاتيح الربط» حط:
WHATSAPP_TOKEN(توكن دائم من System User)،WHATSAPP_PHONE_ID،WHATSAPP_APP_SECRET، وWHATSAPP_VERIFY(أي كلمة من اختيارك). - في إعدادات Webhook عند Meta حط الرابط اللي ظاهر في «الربط ← واتساب» واشترك في
messages. - اعمل Template تأكيد فيه 3 متغيرات (الاسم، رقم الطلب، المبلغ) وزرارين رد سريع (تأكيد / إلغاء) واستنى موافقة Meta.
- رد العميل بيأكد أو يلغي الأوردر تلقائيًا ويظهر في شاشة «التأكيد».
API للمطورين
- من «الربط ← API للمطورين» اعمل مفتاح (قراءة بس، أو قراءة وكتابة لإنشاء أوردرات).
- ابعت كل طلب بهيدر
Authorization: Bearer ck_live_…علىhttps://tivhzchjvhltymlseocn.supabase.co/functions/v1/api?v1=orders. - عشان يوصلك كل تحديث على الأوردرات ضيف رابطك في تبويب «Webhooks» — كل طلب موقّع بـ
X-Signature(HMAC-SHA256).
نون وأمازون وترينديول
الربط معاهم جاي قريب — هتلاقي أوردراتهم ومستحقاتهم في نفس الحسابات.
Integration guides
Everything you need to connect your store, carriers and WhatsApp to Tawseela. Stuck on a step? Contact us.
Shopify — with the Tawseela app Easiest
The app connects your store in a minute with no keys to copy: new orders arrive instantly, delivery status goes back to Shopify, and inventory is pulled in.
If you already have a Tawseela account
- Sign in as the company admin → Integrations → Shopify tab.
- Type your store address like
mystore.myshopify.comand click “Connect Shopify”. - Shopify opens — review the permissions and click Install.
- You come back to Tawseela showing “Connected”. Done.
If you start from the Shopify App Store
- Install the Tawseela app on your store.
- The Tawseela sign-in page opens: sign in as company admin, or create a new company (14 days free).
- The store links to your company automatically once you're in.
Permissions we ask for: read and update orders (to mark them shipped/delivered), read products, inventory and locations. We never request payment data.
If you uninstall the app from Shopify, the connection is closed on our side automatically; your existing orders stay.
Shopify — manual keys (custom app)
Only if you'd rather not install the app.
- In Shopify open Settings → Apps and sales channels → Develop apps (or the Dev Dashboard) and create an app named “Tawseela”.
- Enable these Admin API scopes:
read_orderswrite_ordersread_productsread_inventoryread_locationsread_merchant_managed_fulfillment_orderswrite_merchant_managed_fulfillment_orders. - Install it on your store and copy the Admin API access token (starts with
shpat_) — or the Client ID and Client secret. - In Tawseela: Integrations → Keys: set
SHOPIFY_STORE=mystore.myshopify.comandSHOPIFY_ACCESS_TOKEN(orSHOPIFY_CLIENT_IDandSHOPIFY_CLIENT_SECRET). - Back on the Shopify tab, click “Register” next to Webhooks so orders arrive in real time.
Pulling Shopify inventory
- Each product needs a SKU and “Track quantity” enabled in Shopify.
- Fill in Cost per item in Shopify so stock value is right in your accounts.
- From Integrations → Shopify, or Purchases → Stock & cost, click “Pull inventory”. You can turn on hourly auto-sync.
Our balance = Shopify available + quantities in orders not yet delivered (Shopify deducts at order time, we deduct at delivery), so nothing is deducted twice. The first pull is posted as opening inventory; later differences are posted as inventory adjustments.
Bosta
- In Bosta: Settings → API Integration and create an API key.
- In Tawseela: Keys →
BOSTA_API_KEY. - Add Bosta under Couriers as a “shipping company”, then in Integrations → Carriers pick “Bosta — direct”.
- Select orders on the Orders screen and send them to Bosta — waybill numbers and status update by themselves.
Other carriers (J&T, Aramex, R2S, Mylerz…)
- Add the carrier under Couriers (type: shipping company) and choose its type in Integrations → Carriers.
- Link waybills: upload a sheet with an order-number column and a waybill column.
- Update statuses: upload the status sheet the carrier sends you, or give them the webhook URL shown under the carrier's name.
- Settlement and collection run from Cash like any courier.
WhatsApp (order confirmation)
- Create a Meta for Developers app with the WhatsApp product and add your business number.
- In Keys set
WHATSAPP_TOKEN(permanent System User token),WHATSAPP_PHONE_ID,WHATSAPP_APP_SECRETandWHATSAPP_VERIFY(any word you choose). - In Meta's webhook settings paste the URL shown in Integrations → WhatsApp and subscribe to
messages. - Create a confirmation template with 3 variables (name, order number, amount) and two quick-reply buttons (Confirm / Cancel), and wait for Meta's approval.
- The customer's reply confirms or cancels the order automatically and shows on the Confirmation screen.
Developer API
- In Integrations → Developer API create a key (read-only, or read & write to create orders).
- Send every request with
Authorization: Bearer ck_live_…tohttps://tivhzchjvhltymlseocn.supabase.co/functions/v1/api?v1=orders. - To receive every order update, add your URL under Webhooks — each request is signed with
X-Signature(HMAC-SHA256).
Noon, Amazon and Trendyol
Coming soon — their orders and payouts will land in the same accounts.