Skip to main content

ApiX-Drive

ApiX-Drive moves data between systems: it takes new data from a source — keyCRM, Horoshop, Prom, Rozetka and others — and passes it to a destination. With the Webhooks destination and the Send DATA action the data goes to the Flows address, and every new order or status becomes an event that starts your flows.

ApiX-Drive does not get the data at the moment it changes: it checks the source on an update interval. An event comes on the next check, minutes after the order changed. If your system can send webhooks by itself, connect it directly — events then come at once: see Connecting systems.

Written from ApiX-Drive documentation

This page is written from the public documentation of ApiX-Drive and has not been checked on a live account yet.

What you need​

  • Any plan of ApiX-Drive: all functions are on all plans, and you pay by the volume of data. There is a free plan for a small volume; its limits are not confirmed by the documentation.
  • Time for the delay: the source is checked on the update interval, and a scheduled launch is no more often than every 5 minutes.
  • One address for all links: the event is named in the event field of each request.

Step 1. Create a connection​

  1. Open Flows → Connections, press Connect a system and choose ApiX-Drive.
  2. Press Copy address. It looks like https://events.alphasms.net/hooks/<TOKEN> — keep it secret.

Choose ApiX-Drive by name, not Other system / detect automatically: ApiX-Drive's documentation names no headers of its own, so AlphaFlow cannot recognise its requests and reads the flat fields below only in an ApiX-Drive connection.

Step 2. Set up the Webhooks destination in ApiX-Drive​

The names below are from the English help of ApiX-Drive.

  1. Create a new link: the data source is your system, the data destination is Webhooks, the action is Send DATA.

  2. Connect a Webhooks account: the URL for sending data is the address from the cabinet.

  3. Send type — POST json.

  4. Fields — type the name on the left, choose the field of the source on the right:

    NameValue
    eventthe name of the AlphaFlow event: order_created, order_paid, order_status_changed (see Events)
    phonethe phone of the buyer
    emailthe email
    external_idthe customer id
    namethe first name
    order_idthe order number
    totalthe total
    statusthe status
    ttn, carrierfor a shipped order
  5. Press Send test data to Webhooks, then Next.

  6. Enable update: the gear sets the update interval, the slider switches the auto-update on.

Use the names exactly as in the table: AlphaFlow assembles the event from them, and a field with another name is not read. At least one of phone, email or external_id is needed; the phone may come in any notation.

ApiX-Drive's help does not say whether a field can hold fixed text rather than a field of the source, and it does not describe nested fields — that is why the fields are flat. If event cannot be fixed text, leave it out: the event name is then fixed in the AlphaFlow connection, and each link gets its own connection.

Step 3. Send a test​

Press Send test data to Webhooks. The event appears in Flows → Connections → Event journal within seconds.

Events​

What happens in the sourceAlphaFlow eventProperties
A new orderorder_createdorder_id, total
An order is paidorder_paidorder_id, total
The status of an order changesorder_status_changedorder_id, status
An order is shippedorder_shippedorder_id, ttn, carrier

Put a name like order_paid or order_shipped into event only in a link whose source data mean exactly that (for example, paid orders only), or behind a data filter that lets through only that status, for example "Paid". A link that passes every change of an order sends order_status_changed with the status property: otherwise a partly paid or returned order reaches the customer as "paid".

AlphaFlow also reads payment_url, tracking_url and stage if you send them. The contact is found by phone, email and external_id; name is the name the texts greet with. The names of the events are the ones the ready-made templates expect — see Recommended events.

Good to know​

  • ApiX-Drive sends no id of the event, and its help does not describe repeats. AlphaFlow builds the id from the content of the request — the order id and the status are in it — so the same data delivered again on the next check is not recorded twice.
  • Send DATA (Custom) adds a header, a login and a password and reads the answer, but the format of its body is not described. Use Send DATA.
  • ApiX-Drive also has the platform's own action that sends an SMS. It sends a single SMS and sends no AlphaFlow events.
  • The tracking number is passed as the ttn property, like any other property: AlphaFlow does not track the parcel itself.
  • The address always answers 200. Above the daily event limit the event is refused in AlphaFlow with quota_exceeded and shown in the journal; the link keeps working.

ApiX-Drive documentation​