Skip to content

Zapier Integration

Connect Swft to 7,000+ apps automatically when orders complete, payments fail, or carts are abandoned.

EventWhen it fires
order.completedA payment succeeds and the order is confirmed
order.failedA payment attempt fails
cart.abandonedA checkout session expires without payment
refund.issuedA refund is processed via Stripe
  1. Go to zapier.com/apps/swft
  2. Click Connect Swft
  3. Enter your merchant API key from the dashboard Settings page
  4. Choose your trigger event
  5. Map the fields to your action (Mailchimp, Slack, Airtable, HubSpot, etc.)

Every event delivers a payload in this shape:

FieldTypeDescription
eventstringOne of order.completed, order.failed, cart.abandoned, refund.issued
created_atstringISO 8601 timestamp
swft_versionstringAlways 1.0
merchant_idstringYour merchant UUID
data.order_idstringWooCommerce order number (empty for order.failed)
data.session_idstringSwft checkout session ID
data.customer.emailstringCustomer email address
data.customer.first_namestring
data.customer.last_namestring
data.customer.phonestring | undefined
data.billing_address.line1string
data.billing_address.citystring
data.billing_address.postcodestring
data.billing_address.countrystringISO 3166-1 alpha-2
data.shipping_address.line1string
data.shipping_address.citystring
data.shipping_address.postcodestring
data.shipping_address.countrystring
data.itemsarrayLine items (see below)
data.subtotal_pencenumberCart subtotal in minor units
data.tax_pencenumberTax in minor units
data.shipping_pencenumberShipping cost in minor units
data.discount_pencenumberDiscount applied in minor units
data.total_pencenumberOrder total in minor units
data.currencystringISO 4217 — e.g. GBP
data.payment_methodstringcard, klarna, clearpay, ideal, etc.
data.coupon_codestring | undefinedFirst applied coupon code
data.b2bobject | undefinedPresent for B2B orders
FieldType
product_idstring
namestring
quantitynumber
price_pencenumber
total_pencenumber
FieldType
company_namestring
vat_numberstring | undefined
po_numberstring | undefined
payment_termsstring | undefined

Zapier uses REST Hooks — it registers a callback URL when a Zap is activated, and unregisters it when turned off. The Swft API endpoints are:

POST /merchants/zapier/subscribe — register a subscription
DELETE /merchants/zapier/unsubscribe — remove a subscription
GET /merchants/zapier/sample/:event — fetch a sample payload for testing

All endpoints authenticate via x-swft-api-key header or api_key query param.

Every delivery includes an X-Swft-Signature header:

X-Swft-Signature: sha256=<hmac>

For Zapier-managed subscriptions the HMAC is unsigned (no shared secret per-subscription). For your primary webhook URL configured in Settings, the HMAC uses your Webhook Secret shown in the Settings page.