# Connect Shopify to Bosta and track COD collection
Source: https://rabehni.com/en/features/integrations/shopify-bosta — updated 2026-11-14

### What does connecting Shopify to Bosta mean?
Connecting Shopify to Bosta in Rabehni means an order from your Shopify store travels on its own until it becomes a shipment on your own Bosta account, with no one retyping customer details. Rabehni receives the order, your team confirms it, Rabehni creates the Bosta shipment, then receives its status and pulls the collected amount and fees each day, so you know where your money is until it matches the settlement.

### What the merchant sees
- One order from purchase to collection: The same order that came from Shopify is the one confirmed, shipped and collected, with the Bosta tracking number stored on it. You do not search for it across the Shopify admin, the Bosta dashboard and a collection sheet.
- The money Bosta holds: The collected amount and shipping fee are pulled from Bosta each day per order, so you see what is owed before the settlement file arrives. When you upload the file, the preview separates matched lines, differences and lines with no order.
- Returns are not lost: When Bosta reports a parcel returning, the order is marked as a return in transit. On arrival, the Bosta returns reconciliation screen scans parcels in batches, so you know what actually came back and what has not.

### A common mistake
- Treating an order as closed once it is delivered: Delivery to the customer does not mean the money has reached you. Between delivery and payout, shipping fees are deducted and orders can be counted wrongly. The right check is the settlement file, line by line by tracking number, not the count of delivered orders.

### From Shopify order to collected cash, step by step
1. A customer orders on your Shopify store, and the order reaches Rabehni on its own by signed webhook, with its products matched by SKU.
2. The order arrives as new and awaiting confirmation, and the confirmation team calls the customer and confirms or cancels it inside Rabehni.
3. The confirmed order is sent to shipping from Rabehni, which creates the shipment on your Bosta account and stores the tracking number on the order.
4. Bosta updates arrive by webhook and change the order status in Rabehni: picked up, in transit, delivered, or returning.
5. Each day Rabehni pulls the collected amount and shipping fee per order from Bosta. When the settlement file arrives, you upload it and match it by tracking number before confirming.
6. A returning parcel is marked as a return in transit, and when it reaches your warehouse you scan it on the Bosta returns reconciliation screen.

### Limits
- Rabehni sends nothing back to Shopify: no order status, no tracking number and no quantities.
- A cancellation or edit in Shopify after the order arrives does not reach Rabehni, so make it inside Rabehni.
- You need a Bosta account in your own name and an API token from it. Rabehni does not ship on another account and is not a party to your Bosta contract.
- If the webhook is not added in the Bosta dashboard, shipment status will not update on its own.
- Rabehni does not hold or transfer money. Payouts still go from Bosta to you; Rabehni shows what is owed and reconciles it.

Q: Is there software that connects Shopify to Bosta and tracks collection?
A: Yes, Rabehni does this. Shopify orders reach Rabehni by webhook. After confirmation, Rabehni creates the shipment on your own Bosta account, receives its status, and pulls the collected amount and shipping fee per order each day. You then match the settlement file by tracking number.
Q: Do I need to install an app on Shopify or Bosta?
A: No. In Shopify you paste webhook links from Rabehni under Settings, Notifications, Webhooks. For Bosta you put your API token into Rabehni and add the webhook link and signing secret in the Bosta dashboard. The first status update that arrives from Bosta confirms the connection works.
Q: Is the Bosta shipment created as soon as the order arrives?
A: No. The order arrives awaiting confirmation so your team confirms it first. After confirmation you send it to shipping from Rabehni, and only then is the Bosta shipment created and its number stored on the order. This stops unconfirmed orders from shipping.
Q: How do I know how much money Bosta holds for me?
A: Rabehni pulls the collected amount and shipping fee per order from Bosta each day. When the settlement file arrives, you upload it as CSV or Excel, and the preview shows matched lines, differences and lines with no order before you confirm.
Q: Does the shipment status go back to Shopify?
A: No. The Shopify connection runs one way: orders come into Rabehni and nothing is sent back. You follow shipment status, tracking number and collection inside Rabehni, and any cancellation or edit after the order arrives is made in Rabehni too, because changes in Shopify do not carry over.
Q: What if a product in the order has no matching SKU in Rabehni?
A: The order still arrives and is not lost, and Rabehni alerts you that a product is unmapped. Once you map the product to the right SKU, the order lines are filled in. So register your products with the same codes as Shopify before you start.
