LetsFlow
Search…
Trigger
Triggers send are used for automated actions.

Configuring custom actions to use trigger

1
triggers:
2
payment:
3
type: http
4
schema: "https://specs.psp.example.com/actions/payment/schema.json#"
5
url: http://psp.example.com/payment
6
method: POST
7
projection: "{body: {name: name, amount: quantity * price }}"
Copied!

Using a custom action

YAML
JSON
1
$schema: "https://specs.psp.example.com/actions/payment/schema.json#"
2
title: Step1
3
actor: system
4
name: Payment1
5
quantity: 1
6
price: 100
Copied!
1
{
2
"$schema": "https://specs.psp.example.com/actions/payment/schema.json#",
3
"title": "Step1",
4
"actor": "system",
5
"name": "Payment1",
6
"quantity": 1,
7
"price": 100
8
}
Copied!
Last modified 2yr ago