Bitrix24

Bitrix24: label from deal

When a deal moves to the required stage, Bitrix24 calls the bridge script: it buys the cheapest label, records the tracking number in the deal field, and leaves a comment in the feed.

Downloadable files

What you’ll need

Step-by-step instructions

  1. Download bitrix24-bridge.php and shippickup.php, upload both to the same folder on your server.
  2. In the ShipPickup dashboard, create a live key (rates:read, labels:create). Set environment variables from the top of the file: SHIPPICKUP_API_KEY, SHIPPICKUP_FROM, SHIPPICKUP_PARCEL, BRIDGE_SECRET.
  3. In Bitrix24: Developers, Other, create an “Incoming Webhook” with CRM rights. Record its URL in BITRIX_WEBHOOK_URL.
  4. Create custom fields in the deal: street, city, state, postal code, country (two-letter code), weight (optional), “Tracking”. Record the field codes (UF_CRM_…) in BITRIX_FIELDS as JSON, example in the file. The deal amount is used as the declared value in dollars.
  5. Specify the stage where the label is purchased in BITRIX_STAGE (e.g., PREPARATION).
  6. Set up the bridge call by one of these methods: either an outgoing webhook on deal update, or a “Webhook” robot at the required stage. The URL in both cases is https://your-server/bitrix24-bridge.php?secret=BRIDGE_SECRET_VALUE.

Important to know

Files contain no keys or passwords: all secrets are set by you in environment settings. Do not publish files with your values.

← All ready-made solutions · Common Scenarios