# Your sales, triggering your n8n workflows.

> Trigger n8n workflows from every Swipefast sale with a signed webhook, and read orders and products from the REST API with your key.

Canonical: https://swipefast.io/n8n

Send each sale to an n8n Webhook node, verify it with the signature, and pull orders or products from the REST API when a workflow needs more.

## Steps

1. **Add a Webhook node** In n8n, start a workflow with a Webhook node set to POST. Copy its Test URL while you build and its Production URL when you activate the workflow.
2. **Paste it in Swipefast** In Swipefast, open Integrations, click Add integration on Custom webhook, paste the address into Web address to send to and click Connect.
3. **Send a test** Listen for a test event in n8n, then click Send test in Swipefast, so the node shows the fields.
4. **Verify and go further** Check the x-swipefast-signature header with a Crypto node if you like, and use an HTTP Request node with your API key to read orders and products.

## Ideas

- Write each order to your own database
- Send sales to an AI agent that drafts a thank-you note for you to review
- Post a daily summary of sales to Slack or Telegram
- Sync buyers to any email tool n8n supports

## Events

- `order.paid`: A sale completes
- `upsell.accepted`: A buyer takes the upsell after payment
- `order.refunded`: An order is refunded
- `subscription.canceled`: A subscription is cancelled

## Sale fields

- `event`: order.paid
- `orderId, orderNumber`: The order, and its number as the buyer's receipt shows it
- `product, productId`: Which checkout sold
- `email, name, firstName`: The buyer
- `country, countryCode`: Where they bought from
- `total, totalCents, currency`: The amount as people write it ("$97"), in cents, and the currency
- `affiliate`: The affiliate's code, if one referred the sale
- `accessUrl`: The delivery link the buyer got
- `sentAt`: When Swipefast sent it

## Questions

### Can I send just one checkout's sales?

Yes. Instead of the integration, add a rule in that checkout's Automation step and choose Send data to another app, or use Automations to send only sales over an amount.

### How do I know a webhook is really from Swipefast?

Every webhook carries an x-swipefast-signature header made with your signing secret. The developer docs show how to check it.

### What if a delivery fails?

Integrations has a Recent activity table with every delivery, and a failed one has a Retry delivery button.

### Can n8n read my orders as well?

Yes. The REST API lists orders and products with your API key: GET /api/v1/orders and /api/v1/products. The developer docs have the details.

## Related

- [Webhooks reference](https://swipefast.io/developers/webhooks)
- [Swipefast for AI agents: checkout data over MCP](https://swipefast.io/agents)
