abacatepay.subscription.await-activation ​
Wait until a subscription reaches PAID/active or terminal failure.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-abacatepay |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID |
cloud_connection_uuid | uuid | Yes | — | Organization-scoped AbacatePay connection UUID |
workflow_run_id | string | No | — | Engine-stamped parent DAG run id |
subscription_ref | string | Yes | — | Provider subscription id |
poll_delay_seconds | integer | No | — | Override poll delay |
max_polls | integer | No | — | Safety cap on poll iterations |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID |
cloud_connection_uuid | uuid | Yes | — | Organization-scoped AbacatePay connection UUID |
workflow_run_id | string | No | — | Engine-stamped parent DAG run id |
subscription_ref | string | Yes | — | Provider subscription id |
status | string | Yes | — | Terminal or last-seen status |
active | boolean | Yes | — | Whether subscription is active/paid |
poll_count | integer | Yes | — | Number of poll iterations |
subscription | json | Yes | — | Last normalized payload |
completed_at | string | No | — | ISO-8601 completion timestamp |
failure_reason | string | No | — | Safe terminal failure reason |
failure_type | string | No | — | Stable failure classification |
failed_action | string | No | — | Action that failed |
failed_step | json | No | — | Failed DAG step envelope |
failed_layer | integer | No | — | One-based failed DAG layer |
failed_at_state | string | No | — | State where failure occurred |
error | string | No | — | Safe unexpected error |
error_type | string | No | — | Unexpected exception class |
failed_at | string | No | — | ISO-8601 failure timestamp |
provider_request_ref | string | No | — | Safe provider request reference |
retryable | boolean | No | — | Whether the failure is retryable |
poll_delay_seconds | integer | No | — | Override poll delay |
max_polls | integer | No | — | Safety cap on poll iterations |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | start | — |
polling | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | start | polling | — |
polling | poll | polling | — |
polling | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "abacatepay.subscription.await-activation",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"subscription_ref": "value"
}
}