Connect Mabang to Pipe17

The Mabang connector sends your shipping requests and products from the app to Mabang ERP, and brings fulfillments, inventory, and warehouses from Mabang back into the app. The connector creates a dedicated shop in Mabang for your orders and syncs only the Mabang warehouses that you list in the settings.

With this connector, you can:

  • Send shipping requests to Mabang as orders, and cancel those orders in Mabang when you cancel the shipping request in the app.
  • Bring fulfillments and tracking numbers from Mabang into the app, with the option to wait for last-mile tracking.
  • Pull inventory from your dedicated and shared Mabang virtual warehouses.
  • Create and update products in Mabang from your product catalog in the app.
  • Create locations in the app from your Mabang warehouses.

Setup

Before you begin

  • Your Mabang ERP enterprise main account (企业主账号). You sign in to the Mabang Open Platform with it to see your API credentials.
  • API access opened by Mabang for your enterprise, covering the Mabang APIs listed below. Mabang opens API access per interface through its Open Platform.
  • The IDs of the Mabang virtual warehouses that fulfill your orders. For shared virtual warehouses, you also need the Mabang label IDs or label names that identify your SKUs.
  • A name for the Mabang shop that receives your orders, if you don't want the default name. The app creates this shop in Mabang when you connect.

Get your credentials from Mabang

  1. Go to the Mabang Open Platform (马帮开放平台) and click 登录 (Login).
  2. Select 公有云账号 (public cloud account) or 私有云账号 (private cloud account) to match your Mabang ERP. Sign in with your enterprise main account, and accept the Mabang Open Platform Usage Agreement.
  3. In the Control Center (控制中台), open 已购买API (Purchased APIs). Check that the APIs in the table below are listed. If any are missing, ask Mabang customer service or your Mabang account manager to open them for your enterprise.
  4. Open 开发者 (Developer). Copy the AppKey and the App密钥 (App Secret). The App Secret is what the app calls the consumer secret, or App Token.
  5. Leave the IP whitelist (IP白名单) empty. When a whitelist is set, Mabang only accepts calls from the listed IP addresses. If your security policy requires a whitelist, contact Pipe17 support before you set one.

Mabang APIs the connector uses:

Used for Mabang API
Connecting (credential check and shop setup) order-get-order-list-new, sys-get-shop-list, sys-do-create-shop
Shipping requests and cancellations order-do-create-order, order-do-create-order-check, order-do-change-order, order-batch-cancel-order, order-get-order-list-new, sys-get-warehouse-list
Fulfillments order-get-order-list-new
Products stock-do-search-sku-list-new, stock-do-add-stock, stock-do-change-stock, sys-get-warehouse-list
Inventory stock-get-stock-quantity
Locations sys-get-warehouse-list

Note: The AppKey and App Secret give access to all of your enterprise's data in Mabang, so keep them private. You can't reset the App Secret yourself. To get a new one, contact Mabang, and then update App Token in the app. Mabang allows 300 calls per minute for each API. When the limit is reached, Mabang returns Too Many Attempts and the app tries again on a later run.

Connect in the app

  1. Navigate to Integrations in the app.
  2. Click Add Integration, and then select Mabang. The connection pop-up opens.
Connect Mabang pop-up
  1. Enter the Mabang AppKey in the App Key field.
  2. Enter the Mabang App Secret in the App Token field.
  3. Click Connect. The app checks your credentials and looks for a shop in Mabang that matches Shop Name. If the shop doesn't exist, the app creates it. If you leave Shop Name empty, the shop is named Pipe17-<integrationId>. To use your own name, set Shop Name before any orders sync. Each change creates a new shop in Mabang.
  4. On the Settings tab, enter your warehouses in List of Dedicated Virtual Warehouses (Provide IDs), List of Shared Virtual Warehouses (Provide ID:{tag1|tag2}), or both. Click Save.
  5. Turn on the flows you want to use: Push shipping requests to Mabang, Pull fulfillments from Mabang, Push products to Mabang, Pull inventory from Mabang, and Pull warehouses from Mabang as locations. Turn them on in the order in Confirm the connection below.

Note: If you click Add without credentials, the integration is added but doesn't sync until you enter the App Key and App Token on the Connection Details tab and save.

Confirm the connection

  1. On Integrations, check that the Mabang integration shows Connected and that its switch is on. If it shows Error with a connectivity check message, Mabang rejected the App Key or App Token, or the connecting APIs in the table above aren't open for your enterprise. Check the credentials and the 已购买API list in the Mabang Open Platform, update them on the Connection Details tab, and save. If it shows Not Configured, enter the credentials there and save.
  2. In Mabang, check that the shop named in Shop Name, or Pipe17-<integrationId>, now exists.
  3. Turn on Pull warehouses from Mabang as locations. After the next sync, check that each warehouse you listed appears as a location in the app. If one is missing, check its ID. You can also run Pull locations by warehouseIds from the integration's actions. To learn more, see Using Locations.
  4. If you use Push products to Mabang, set Exclude products created before this date first, then turn the flow on. Check that a test SKU appears in Mabang in your listed warehouses. Products sync every 5 minutes.
  5. Turn on Pull inventory from Mabang. Force inventory resync is on by default, so the first run pulls inventory based on Select inventory pull mode. Check that the on-hand quantity for a test SKU matches Mabang at the right location.
  6. Route a test order to a Mabang location in the app, and then turn on Push shipping requests to Mabang. This connector has no order ID filter, so every shipping request that is ready for fulfillment is sent once the switch is on. Within about 5 minutes, the shipping request moves to Sent to Fulfillment. In Mabang, the order appears in your shop. Its platform order number is the shipping request ID from the app. If the shipping request shows Failed, open it to see the error from Mabang.
  7. Turn on Pull fulfillments from Mabang. After Mabang ships the test order, the fulfillment and tracking number appear on the order in the app within a few minutes. With DO NOT pull fulfillments when it's 1st Mile Tracking on (the default), the app waits until Mabang has last-mile tracking.

Note: If you turn on Force Mabang Managed Routing, the app creates a location named Mabang Routed Location and sends orders to Mabang without a warehouse. Route your test order to that location instead.


Settings

Setting Description Options/Default
Shop Name The Mabang shop that receives your orders. Each change creates a new shop in Mabang, so avoid changing it after orders have synced. Optional. Default: Pipe17-<integrationId>
List of Dedicated Virtual Warehouses (Provide IDs) The IDs of the Mabang warehouses that hold only your stock. The app uses them to pull locations, inventory, and fulfillments, and adds them to products it creates in Mabang. One warehouse ID per row
List of Shared Virtual Warehouses (Provide ID:{tag1|tag2}) Mabang warehouses that you share with others. The app pulls inventory and fulfillment lines only for SKUs that have at least one of the listed Mabang labels. Use the format <Warehouse ID>:{tag1|tag2}, for example 123:{456|good}. Keep the curly braces. One entry per row
Exclude products created before this date Sends only products created in the app after this date to Mabang. Products already in Mabang stay there. Optional. Default: integration creation date
Send product update into Mabang Updates SKUs that already exist in Mabang when the product changes in the app. Currently, turning it off doesn't stop these updates. On/Off. Default: On
Push inactive products Sends inactive products to Mabang. The app never deletes products in Mabang. On/Off. Default: Off
Force products resync Sends all products to Mabang on the next run, even if they haven’t changed. Turns off automatically when the run starts. On/Off. Default: Off
Select inventory pull mode How the app pulls inventory during the first sync and during a forced resync. After that, the app pulls only new changes. Pull inventory by SKUs or Pull inventory by a specified start date. Default: by start date
Query the inventory in Mabang from this date The start date for pulling inventory changes when the pull mode is by date. Optional. Default: integration creation date
Append SKUs to existing Pipe17 products catalog to query the inventory in Mabang Extra SKUs to pull inventory for, in addition to the SKUs in your product catalog, when the pull mode is by SKUs. Wildcards aren’t supported. Optional. One SKU per row
Exact SKUs list to query the inventory in Mabang. Pulls inventory only for these SKUs, ignoring your product catalog, when the pull mode is by SKUs. Wildcards aren’t supported. Optional. One SKU per row
Force inventory resync Pulls inventory from Mabang on the next run based on the inventory settings above. Turns off automatically when the run starts. On/Off. Default: On
Cancel the Mabang order when the Pipe17 shipping request status is in the specified statuses. Shipping request statuses that cancel the matching order in Mabang. Default: canceled, canceledRestock
When shipping request is canceled in Mabang, apply following status to Pipe17 The status the app gives a shipping request when its order is canceled in Mabang. Review required, Canceled, Canceled Restock, or Failed. Default: Canceled Restock
Force Mabang Managed Routing Lets Mabang choose the warehouse for each order. When on, the app creates a location named Mabang Routed Location and sends orders to Mabang without a warehouse. On/Off. Default: Off
DO NOT pull fulfillments when it's 1st Mile Tracking Waits until Mabang has last-mile tracking before bringing a fulfillment into the app. A fulfillment counts as first-mile when the first tracking number is empty, matches the main tracking number, or matches the regex below. On/Off. Default: On
Regex for 1st Mile Tracking Identification A regular expression, enclosed in slashes, that identifies first-mile tracking numbers. For example, /^YT/i matches tracking numbers that start with “YT”. Optional
Pull 1st Mile Tracking fulfillments from these Mabang Warehouse IDs Pulls first-mile fulfillments that ship from a listed Mabang warehouse. Works only when DO NOT pull fulfillments when it's 1st Mile Tracking is on. Optional
Pull 1st Mile Tracking fulfillments whose tracking number starts with Pulls first-mile fulfillments whose tracking number starts with a listed value. Not case-sensitive. Optional
Pull 1st Mile Tracking fulfillments whose tracking number ends with Pulls first-mile fulfillments whose tracking number ends with a listed value. Not case-sensitive. Optional
Pull 1st Mile Tracking fulfillments for these Mabang logistics names Pulls first-mile fulfillments whose Mabang logistics name exactly matches a listed name, for example, Express Line A. Case-sensitive. Optional

Note: The four Pull 1st Mile Tracking settings don't apply to fulfillments matched by Regex for 1st Mile Tracking Identification. Fulfillments pulled this way don't pick up last-mile tracking later.


Flows

Flow Direction Notes
Shipping requests Pipe17 → Mabang Runs every 5 minutes. Sends shipping requests that are ready for fulfillment to your Mabang shop as orders, or updates the order if it already exists. Sent shipping requests move to Sent to Fulfillment. If Mabang rejects one, its status changes to Failed.
Cancellations Pipe17 → Mabang When a shipping request reaches one of the statuses in the cancel setting, the app cancels the matching order in Mabang.
Fulfillments and cancellations Mabang → Pipe17 Runs every 5 minutes. Brings shipped Mabang orders into the app as fulfillments with tracking numbers. Only lines fulfilled from your listed warehouses are included. If Mabang cancels an order, the app applies the status you chose in the cancel action setting.
Inventory Mabang → Pipe17 Runs about once an hour and pulls only changed inventory from your listed warehouses. A daily check also refreshes inventory for every SKU that has inventory in the app.
Products Pipe17 → Mabang Runs every 5 minutes. Creates new SKUs in Mabang and updates existing ones. The app doesn’t delete products in Mabang.
Locations Mabang → Pipe17 Runs about once a day. Creates a location in the app for each warehouse you list in the dedicated and shared warehouse settings.

Troubleshooting

  • The connection fails with a connectivity check error even though the credentials are right
    Mabang hasn't opened the APIs the app uses for your enterprise, or an IP whitelist is set in the Mabang Open Platform. Check 已购买API (Purchased APIs) against the API table in Setup, and clear the IP whitelist (IP白名单) under 开发者 (Developer). Ask Mabang to open any missing APIs.
  • A shipping request or sync fails with Too Many Attempts
    Mabang allows 300 calls per minute for each API. The app tries again on a later run. Avoid turning on Force products resync and Force inventory resync at the same time on a large catalog.
  • Syncing stops after working for a while
    Your Mabang API access or App Secret may have expired or been reset. Sign in to the Mabang Open Platform, check 已购买API and 开发者, and then update App Token on the Connection Details tab and save. To renew API access or reset the App Secret, contact Mabang.
  • The connection fails with a connectivity check error
    The App Key or App Token is wrong, or the API account can’t create a shop in Mabang. Check the credentials in Mabang, and then update them in the connection settings.

  • A shipping request or product fails with “warehouseId not found in Mabang”
    The warehouse ID in your settings, or the location assigned to the shipping request, doesn’t match a Mabang warehouse. Check the IDs under List of Dedicated Virtual Warehouses (Provide IDs) and List of Shared Virtual Warehouses (Provide ID:{tag1|tag2}), and make sure the shipping request uses a Mabang location. To learn more, see Using Locations.

  • A shipping request has the status Failed
    Mabang rejected the order. Open the shipping request to see the error from Mabang, fix the data it points to, such as an address or SKU, and then send the shipping request again.

  • A shipped order in Mabang has no fulfillment in the app
    The app skips fulfillments that have only first-mile tracking, that have no lines from your listed warehouses, or whose SKUs don’t have the labels set for a shared warehouse. Wait for last-mile tracking, or turn off DO NOT pull fulfillments when it's 1st Mile Tracking. Also check your warehouse and label settings.

  • Inventory doesn’t update for some SKUs
    The app pulls inventory only from listed warehouses, and from shared warehouses only for SKUs with a matching label. Check the warehouse settings, and then turn on Force inventory resync.


Need Help?

If you need additional assistance:

  • Use Ask Pippen, our AI agent, located at the top of the platform page.
  • Submit a support request with as much relevant detail as possible. Learn how to submit a request.

We’re here to help you succeed with your operations.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.

Have more questions?
Submit a request
Share it, if you like it.