Skip to content

Order.screen

POST /{namespace}/orders/{order}/screen

Screen scores an Order’s payment before it is charged and allows, authenticates, holds or blocks it by the Startup’s risk Policy.

Noun
Order
Mode
do
Event
Order.screened

Inputs

InputTypeRequiredDescription
orderOrderrequiredThe placed Order whose payment is screened.

Outputs

OutputTypeRequiredDescription
outcomestringrequiredallow charges, authenticate asks the buyer to confirm with their card issuer, review waits for an Approval, block cancels.
risknumberrequiredThe payment’s risk score from 0 to 99, as Stripe scored it.
rulestringThe risk Policy rule that decided the outcome, when one did.
orderOrderrequiredThe Order screened.

Effects

  • Emits Order.screened.
  • Performed by the Risk Analyst.
  • Two-way: it runs at once, in the try, send and do modes.
  • An Order held for review opens an Approval for the Risk Analyst and is not charged until approved.
  • A blocked Order is canceled and never charged.
  • An early fraud warning stops fulfillment at once and, at or below the dispute fee, proposes a refund that waits its window.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Order.screen

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.