Recued
Menu
← Back to recipes

Revoke access on refund (Lemon Squeezy)

by recued-core v3 47 views

Use “Revoke access on refund (Lemon Squeezy)” in Recued. It carries out the named workflow using the connections and settings you choose.

Complete workflow

Use Seller Refund — Revoke Access (Lemon Squeezy) in Recued for closing a paying customer's access when Lemon Squeezy fully refunds the order or a subscription payment. It includes 1 related pack in one install.

You are viewing one recipe in this workflow. Installing it opens the complete pack so its other recipes and background automations arrive together.

Revoke access on refund (Lemon Squeezy)
This recipe Background automation

Use “Revoke access on refund (Lemon Squeezy)” in Recued. It carries out the named workflow using the connections and settings you choose.

pack:seller-refund-revoke-lemonsqueezyrecipe-role:webhookrefundpayment-observer
by recued-core pinned v3
View pack details, dependencies, and permissions →
How it works 57 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (57 steps)
■ door_id trim
Trim whitespace from setting door id
■ door_id_present compare
Check if door id has data
◆ webhook_event core.webhook.event.get
Get webhook event
■ profile_exact compare
Check if webhook event delivery profile id is one of lemonsqueezy.webhook.v1
■ decoded_schema_exact compare
Check if webhook event delivery decoded schema id is one of lemonsqueezy.webhook.v1
■ transport_exact compare
Check if webhook event delivery transport assurance is one of authenticated
■ source_truth_policy_exact compare
Check if webhook source truth policy is one of provider_readback_required
■ payload_event_type_exact compare
Check if webhook event payload meta event name is one of webhook event event provider event type
■ payload_resource_id_exact compare
Check if webhook event payload data id is one of webhook event event provider resource id
■ payload_resource_type_exact compare
Check if webhook event payload data type is one of orders,subscription-invoices
■ envelope_shared_valid all
Check if all conditions are true
■ is_order_refund compare
Check if webhook event event provider event type is one of order_refunded
■ is_invoice_refund compare
Check if webhook event event provider event type is one of subscription_payment_refunded
■ resource_id template
Generate text from a template
■ resource_id_present compare
Check if resource id has data
■ resource_id_truncated truncate
Truncate resource id to a max length
■ resource_id_bounded compare
Check if resource id is one of resource id truncated
■ refund_envelope_valid all
Check if all conditions are true
■ order_read_allowed all
Check if all conditions are true
◆ order_read recued-core.seller-lemonsqueezy.order.read
Read order on seller lemonsqueezy
skip: step.order_read_allowed equal false
■ order_id_matches compare
Check if order read result data id is one of resource id
■ order_fully_refunded compare
Check if order read result data attributes status is one of refunded
■ order_customer template
Generate text from a template
■ invoice_read_allowed all
Check if all conditions are true
◆ invoice_read recued-core.seller-lemonsqueezy.subscription_invoice.read
Read subscription invoice on seller lemonsqueezy
skip: step.invoice_read_allowed equal false
■ invoice_id_matches compare
Check if invoice read result data id is one of resource id
■ invoice_fully_refunded compare
Check if invoice read result data attributes status is one of refunded
■ invoice_customer template
Generate text from a template
■ invoice_subscription_id template
Generate text from a template
■ invoice_subscription_id_present compare
Check if invoice subscription id has data
■ invoice_subscription_id_truncated truncate
Truncate invoice subscription id to a max length
■ invoice_subscription_id_bounded compare
Check if invoice subscription id is one of invoice subscription id truncated
■ subscription_read_allowed all
Check if all conditions are true
◆ subscription_read recued-core.seller-lemonsqueezy.subscription.read
Read subscription on seller lemonsqueezy
skip: step.subscription_read_allowed equal false
■ subscription_id_exact compare
Check if subscription read result data id is one of invoice subscription id
■ subscription_customer template
Generate text from a template
■ subscription_customer_matches_invoice compare
Check if subscription customer is one of invoice customer
■ subscription_read_valid all
Check if all conditions are true
■ claimed_workflow_key default
Apply default
■ claimed_workflow_key_present compare
Check if claimed workflow key has data
■ claimed_workflow_key_prefix starts_with
Check if claimed workflow key starts with ord:
■ claimed_workflow_key_truncated truncate
Truncate claimed workflow key to a max length
■ claimed_workflow_key_bounded compare
Check if claimed workflow key is one of claimed workflow key truncated
■ claim_read_allowed all
Check if all conditions are true
◆ acquisition_order_read core.seller.order.get
Get seller order
skip: step.claim_read_allowed equal false
■ acquisition_found compare
Check if acquisition order read order exists
■ acquisition_provider_matches compare
Check if acquisition order read order provider is one of lemonsqueezy
■ order_matches_acquisition compare
Check if order read result data id is one of acquisition order read order provider payment id
■ subscription_order_id template
Generate text from a template
■ subscription_order_matches_acquisition compare
Check if subscription order id is one of acquisition order read order provider payment id
■ order_refund_proof all
Check if all conditions are true
■ invoice_refund_proof all
Check if all conditions are true
◆ close_on_order_refund core.seller.customer-access.close
Close seller customer access
skip: step.order_refund_proof equal false
◆ close_on_invoice_refund core.seller.customer-access.close
Close seller customer access
skip: step.invoice_refund_proof equal false
■ partial_order_refund_ignored all
Check if all conditions are true
■ partial_invoice_refund_ignored all
Check if all conditions are true
■ event_summary to_summary
Format results as a summary card
▼
Output
summary event_summary
Settings 1 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

door id setting = main

Uses (6 operations)

Webhooks Get webhook event core.webhook.event.get
Pack operation Read order on seller lemonsqueezy recued-core.seller-lemonsqueezy.order.read
Pack operation Read subscription invoice on seller lemonsqueezy recued-core.seller-lemonsqueezy.subscription_invoice.read
Pack operation Read subscription on seller lemonsqueezy recued-core.seller-lemonsqueezy.subscription.read
Selling Get seller order core.seller.order.get
Selling Close seller customer access core.seller.customer-access.close

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

What it's allowed to do

Read Webhooks core.webhook.event.get read-only
Read Selling core.seller.order.get read-only
Write Selling core.seller.customer-access.close external change

3 more aren't listed here. You'll see them at install.

Data it touches

SurfacesWebhooksSelling
Warehousedata.iddata.typedata.attributes

About

Tags

pack:seller-refund-revoke-lemonsqueezyrecipe-role:webhookrefundpayment-observerprovider-source-truthsellersubscriptionprovider:lemonsqueezyd-196

Details

57 steps 1 configurable settings recipe_id: revoke-access-on-refund-lemonsqueezy