MoySklad

MoySklad: shipping label

When creating or updating a shipment, MoySklad calls the bridge script. It takes the address and counterparty from the shipment, buys the cheapest label, and appends the tracking to the shipment description.

Downloadable files

What you’ll need

Step-by-step instructions

  1. Download moysklad-bridge.php and shippickup.php, upload them to the same folder on your server.
  2. In the ShipPickup dashboard, create a live API key (rates:read, labels:create). Set the environment variables from the top of the file: SHIPPICKUP_API_KEY, SHIPPICKUP_FROM, SHIPPICKUP_PARCEL, BRIDGE_SECRET, MOYSKLAD_TOKEN.
  3. In MoySklad, add a custom field to shipments called “ShipPickup country” (a string with the recipient’s two-letter country code) and, if needed, “ShipPickup weight_g” (weight in grams).
  4. Fill in the shipment delivery address (postal code, city, street, house) and counterparty with phone number. The shipment amount is used as the declared value.
  5. Create a webhook via API with method POST /api/remap/1.2/entity/webhook and body {"url": "https://your-server/moysklad-bridge.php?secret=BRIDGE_SECRET_VALUE", "action": "UPDATE", "entityType": "demand"} using the same token.

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