Recued
Menu
← Back to recipes

Issue access for paid order (Lemon Squeezy)

by recued-core v3 45 views

Use “Issue access for paid order (Lemon Squeezy)” in Recued. It carries out the named workflow using the connections and settings you choose.

How it works 66 steps

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

Process (66 steps)
■ order_handle trim
Trim whitespace from setting order handle
■ order_handle_prefix starts_with
Check if order handle starts with oh_
■ door_id trim
Trim whitespace from setting door id
■ door_id_present compare
Check if door id has data
■ input_valid all
Check if all conditions are true
⚠ input_guard guard
Stop if input valid equals
◆ order_read core.seller.order.get
Get seller order
■ order_present compare
Check if order read order exists
⚠ order_missing_guard guard
Stop if order present equals
■ already_complete compare
Check if order read order phase is one of complete
■ phase_eligible compare
Check if order read order phase is one of paid,fulfilling
■ phase_blocked all
Check if all conditions are true
⚠ phase_guard guard
Stop if phase blocked equals
■ pricing_recurring compare
Check if order read order pricing kind is one of recurring
■ pricing_blocked all
Check if all conditions are true
⚠ pricing_guard guard
Stop if pricing blocked equals
■ entitlement_key default
Apply default
■ order_names_tier compare
Check if entitlement key has data
■ tier_missing_blocked all
Check if all conditions are true
⚠ tier_missing_guard guard
Stop if tier missing blocked equals
■ session_recorded compare
Check if order read order provider session id exists
■ session_missing_blocked all
Check if all conditions are true
⚠ session_missing_guard guard
Stop if session missing blocked equals
■ lemonsqueezy_store_id trim
Trim whitespace from setting lemonsqueezy store id
■ store_id_present compare
Check if lemonsqueezy store id has data
■ store_id_blocked all
Check if all conditions are true
⚠ store_id_guard guard
Stop if store id blocked equals
■ provider_order_id default
Apply default
■ provider_order_id_present compare
Check if provider order id has data
■ provider_order_id_blocked all
Check if all conditions are true
⚠ provider_order_id_guard guard
Stop if provider order id blocked equals
◆ order_source_read recued-core.seller-lemonsqueezy.order.read
Read order on seller lemonsqueezy
skip: step.already_complete equal true
■ order_source_id_exact compare
Check if order source read result data id is one of provider order id
■ order_source_paid compare
Check if order source read result data attributes status is one of paid
■ order_source_customer_id template
Generate text from a template
■ order_source_customer_present compare
Check if order source customer id has data
■ order_source_product_id template
Generate text from a template
■ order_source_product_matches_tier compare
Check if order source product id equals entitlement key
■ order_source_proof_exact all
Check if all conditions are true
■ order_source_proof_blocked all
Check if all conditions are true
⚠ order_source_proof_guard guard
Stop if order source proof blocked equals
◆ subscription_search recued-core.seller-lemonsqueezy.subscription.search
Search subscription on seller lemonsqueezy
skip: step.already_complete equal true
■ subscription_count count
Count items in subscription search result data
■ single_subscription compare
Check if subscription count equals 1
■ subscription_id default
Apply default
■ subscription_live compare
Check if subscription search result data 0 attributes status is one of active,on_trial
■ subscription_customer_id template
Generate text from a template
■ subscription_customer_matches compare
Check if subscription customer id equals order source customer id
■ subscription_order_id template
Generate text from a template
■ subscription_order_matches compare
Check if subscription order id equals provider order id
■ period_end_ms date_parse
Parse subscription search result data 0 attributes renews at as a date
■ period_end_present compare
Check if period end ms exists
■ subscription_proof_exact all
Check if all conditions are true
■ subscription_proof_blocked all
Check if all conditions are true
⚠ subscription_proof_guard guard
Stop if subscription proof blocked equals
■ needs_fulfilling_transition all
Check if all conditions are true
◆ to_fulfilling core.seller.order.transition
Transition seller order
skip: step.needs_fulfilling_transition equal false
■ revision_before_issue coalesce
Use the first available value from: to fulfilling order revision, order read order revision
◆ issue_access core.seller.customer-access.issue
Issue seller customer access
skip: step.already_complete equal true
■ issued_customer_present compare
Check if issue access customer customer id exists
■ issue_blocked all
Check if all conditions are true
⚠ issue_guard guard
Stop if issue blocked equals
◆ link_customer core.seller.order.link-customer
Link customer seller order
skip: step.already_complete equal true
◆ to_complete core.seller.order.transition
Transition seller order
skip: step.already_complete equal true
■ issue_outcome ternary
Apply ternary
■ fulfilment_notice template
Generate text from a template
▼
Output
text fulfilment_notice
Settings 3 configurable

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

door id setting = main
order handle setting =
lemonsqueezy store id setting =

Uses (6 operations)

Selling Get seller order core.seller.order.get
Pack operation Read order on seller lemonsqueezy recued-core.seller-lemonsqueezy.order.read
Pack operation Search subscription on seller lemonsqueezy recued-core.seller-lemonsqueezy.subscription.search
Selling Transition seller order core.seller.order.transition
Selling Issue seller customer access core.seller.customer-access.issue
Selling Link customer seller order core.seller.order.link-customer

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 Selling core.seller.order.get read-only
Write Selling core.seller.order.transition external change
Write Selling core.seller.customer-access.issue external change
Write Selling core.seller.order.link-customer external change

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

Data it touches

SurfacesSelling
Warehousedata.iddata.attributes

About

Tags

recipe-role:fulfilmentprovider-source-truthcustomer-accesssellersubscriptionprovider:lemonsqueezyd-196

Details

66 steps 3 configurable settings recipe_id: issue-access-for-paid-order-lemonsqueezy