abacatepay.webhook.receive ​
Ingress state machine: validate HMAC, parse event, route by event type.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-abacatepay |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
workflow_run_id | string | No | — | — |
payload | string | Yes | — | — |
signature_header | string | Yes | — | — |
webhook_secret | string | No | — | — |
webhook_secret_key | string | No | — | — |
route | boolean | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
workflow_run_id | string | No | — | — |
valid | boolean | Yes | — | — |
event_type | string | No | — | — |
event | json | No | — | — |
routed | boolean | No | — | — |
route_target | string | No | — | — |
received_at | string | Yes | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | integer | No | — | — |
failed_at_state | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
provider_request_ref | string | No | — | — |
retryable | boolean | No | — | — |
payload | string | Yes | — | — |
signature_header | string | Yes | — | — |
webhook_secret | string | No | — | — |
webhook_secret_key | string | No | — | — |
route | boolean | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
received | Yes | No | — | validate | — |
validated | No | No | — | — | — |
failed | No | Yes | No | — | — |
rejected | No | Yes | No | — | — |
routed | No | Yes | Yes | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
received | validate | validated | — |
validated | route | routed | — |
validated | reject | rejected | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "abacatepay.webhook.receive",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"payload": "value",
"signature_header": "value"
}
}