Recued
Menu
← Back to recipes

Close a resolved access order

by recued-core v2 57 views

Use “Close a resolved access order” in Recued. Owner-attended close for one access order stranded in needsowner - the state a fulfilment leaves behind when the customer access was issued but the claim-link email could not be delivered. Moves needsowner to complete and clears the order error code.

How it works 18 steps

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

Process (18 steps)
■ order_handle trim
Trim whitespace from setting order handle
■ order_handle_prefix starts_with
Check if order handle starts with oh_
■ 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_closeable compare
Check if order read order phase is one of needs_owner
■ phase_blocked all
Check if all conditions are true
⚠ phase_guard guard
Stop if phase blocked equals
■ customer_linked compare
Check if order read order customer id exists
■ customer_blocked all
Check if all conditions are true
⚠ customer_guard guard
Stop if customer blocked equals
■ close_allowed all
Check if all conditions are true
◆ to_complete core.seller.order.transition
Transition seller order
skip: step.close_allowed equal false
■ close_outcome ternary
Apply ternary
■ close_notice template
Generate text from a template
▼
Output
text close_notice
Settings 1 configurable

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

order handle setting =

Uses (2 operations)

Selling Get seller order core.seller.order.get
Selling Transition seller order core.seller.order.transition

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

Data it touches

SurfacesSelling

About

Tags

recipe-role:recoveryowner-attendedcustomer-accessorder-lifecycled-196

Details

18 steps 1 configurable settings recipe_id: close-resolved-access-order