SalesDrive
SalesDrive is a CRM for processing orders. Its webhook calls an address when a new order comes in and when the status of an order changes, and sends the order with the buyer's phone and name, the amount and the Nova Poshta or Ukrposhta tracking number. Pointed at the Flows address, it starts your flows: an order is placed, moved to "shipped" or "received" — and the customer gets the right message in Viber or SMS, with a reminder if nothing happens.
SalesDrive already has the platform as a built-in SMS and Viber channel (the «SMS/Viber» tab), so a single notice on a new order or a status change can be sent by SalesDrive itself. Flows are for what a single notice cannot do: chains, waiting for payment, a cascade of channels, a reminder in three days.
This page is written from the public documentation of SalesDrive and has not been checked on a live account yet.
What you need
- Access to the settings of SalesDrive. SalesDrive has one plan with every feature included, so the webhook is not limited to a separate plan; a 14-day trial is available too.
- Nothing to write: the body of the webhook is fixed, without fields or headers of your own. SalesDrive sends two events — a new order and a change of the order status.
Step 1. Create a connection
- Open
Flows → Connections, press Connect a system and choose SalesDrive. - Press Copy address. It looks like
https://events.alphasms.net/hooks/<TOKEN>— keep it secret.
Step 2. Set up the webhook in SalesDrive
SalesDrive and its documentation are only in Ukrainian, so its menu items are given in Ukrainian.
- Open «Установки» → «Загальні налаштування і інтеграції» → «Інші сервіси» → «Webhook».
- Add a webhook and paste the address from the cabinet as its address. The SalesDrive documentation does not show the names of the form fields.
- Add conditions if you need them: the webhook can go only for orders from a certain site and only in the statuses you choose.
- Save the webhook.
One address takes both events: AlphaFlow tells them apart by the field info.webhookEvent — new_order or
status_change. SalesDrive allows several webhooks with different conditions, each with its own address.
Step 3. Send a test
Create a test order with your own phone number, or change the status of an existing one. SalesDrive keeps the request
in its webhook history: «деталі» of a request show the data sent, the response time and the code. The event
appears in Flows → Connections → Event journal within seconds,
and the connection shows Recognised: SalesDrive.
The SalesDrive documentation lists the fields of the webhook but shows no sample request, so the reading of the fields below is not confirmed on a real request yet. Open the test event in the journal and check that the buyer's phone and name are there.
Events
| SalesDrive event | AlphaFlow event | Properties |
|---|---|---|
New order (new_order) | order_created | order_id, total, payment_method, shipping_method |
Status change (status_change) | order_status_changed | order_id, status |
| Status change to your "shipped" status | order_shipped | order_id, ttn, delivery_status |
| Status change to your "received" status | order_delivered | order_id |
The status comes as a number — the id of the status in your account, so the table "status → event" of the connection
is empty at first. Fill it in the connection: the id of your «Відправлено» status → order_shipped, of «Отримано» →
order_delivered, and so on. A status without a row stays order_status_changed.
Every event carries the same properties:
order_id,status,total,paid,rest_to_pay,payment_method,shipping_method,last_name;- Nova Poshta:
ttn— the tracking number,delivery_status— the description of the delivery status,delivery_status_code,branch_number,postpay_sum; - Ukrposhta:
ttn_ukrposhta— the tracking number,delivery_status_ukrposhta.
There is no separate carrier property: the carrier is the one whose tracking number is filled in.
The contact is found by the phone, the email and the SalesDrive id of the first contact of the order; the first name comes from it too. The names of the events are the ones the ready-made templates expect — see Recommended events.
Good to know
- The SalesDrive documentation does not describe repeats. A request is identified by the order, its status and its version, so a repeated request is not recorded twice.
- SalesDrive does not sign its requests; the secret in the address is enough.
- The delivery status and the tracking number come only with these two events: SalesDrive has no webhook for a change of the parcel status. For AlphaFlow to learn about a shipment, the order has to move to a status — by SalesDrive itself or by a manager. The tracking number is a property like any other: AlphaFlow does not track the parcel.
- SalesDrive also sends the custom fields of the order, but their keys are not described, so AlphaFlow does not take them as properties. The body has no time of the event: the time of receipt is used.
- The address always answers
200. Above the daily event limit the event is refused in AlphaFlow withquota_exceededand shown in the journal; the webhook in SalesDrive stays on.