what it does
An n8n webhook workflow receives Gumroad sale pings, validates them, and writes each sale to an Airtable table using upsert keyed on sale_id to avoid duplicates, logging outcomes to a run log table. It classifies errors as temporary or permanent and rejects malformed pings.
Every Gumroad sale lands in Airtable as one row - and a retried delivery never creates a second one.
Gumroad sends a Ping (webhook) on each sale. This workflow validates the ping, writes it with Airtable's performUpsert keyed on sale_id, and records the outcome in a run log.
Why a webhook instead of polling: nothing is missed between runs, and the row appears in seconds instead of on a timer.
Why it cannot duplicate: the write uses Airtable upsert on sale_id, so a repeated webhook updates the same row instead of adding another.
Why the log matters: 429, 5xx and network errors are marked TEMPORARY, so you retry later. Other 4xx are marked PERMANENT, because retrying a rejected token or a missing field only piles up failed rows. Malformed pings are logged as REJECTED_PING with a reason, so a broken sale is visible instead of silently disappearing.
SALES TABLE - create this table in your Airtable base (all 10 fields, these exact names and types):
sale_id - Single line text. This is the upsert key, the table will not work without it.
email - Email
sold_at - Date, include time
amount - Number, precision 2
currency - Single line text
product_id - Single line text
product_name - Single line text
order_number - Single line text
country - Single line text
test_sale - Checkbox
RUN LOG TABLE - create this table in the same base:
sale_id - Single line text
email_masked - Single line text
action - Single line text (SALE_RECORDED or REJECTED_PING)
status - Single line text (OK or REJECTED)
reason - Single line text
retryable - Checkbox
at - Date, include time
SETUP, about 5 minutes:
1. Import the JSON into n8n: Workflows, then Import from File, pick the downloaded .json, then Save.
2. Create an Airtable personal access token: airtable.com, Builder hub, Personal access tokens, Create token. Give it access to your base with the scopes data.records:read and data.records:write.
3. In n8n open the node "Upsert sale row", then Credential, Create new, choose HTTP Header Auth. Name it Airtable PAT. Header name: Authorization. Header value: Bearer YOUR_TOKEN (the word Bearer, one space, then the token). Select the same credential on the node "Append run log".
4. Open the node "Settings" and replace AIRTABLE_BASE_ID with your base id. It starts with app and is visible in your base URL.
5. Open the node "Gumroad sale ping" and copy the Production URL. Method is POST.
6. In Gumroad go to Settings, then Advanced, then Ping, and paste that Production URL.
7. Activate the workflow. Send a test ping from Gumroad. Check the Sales table: one row. Send the same ping again: still one row, updated, no duplicate.
Requirements: your own n8n instance (cloud or self-hosted), an Airtable base, and an Airtable personal access token. Buyer emails are masked in the run log (bu***@example.com) but stored in full in the Sales table, which is what you want for support and refunds.
Tested on 12 cases: free products (price 0), missing sale_id, invalid email, non-numeric price, broken timestamp, and Airtable responses 200, 429, 503, 422 and 401.