abacatepay.catalog.ensure-product ​
Idempotently ensure a product exists for an externalId.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| 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 | — | — |
external_id | string | Yes | — | — |
name | string | Yes | — | — |
price | integer | Yes | — | — |
currency | string | No | — | — |
description | string | No | — | — |
image_url | string | No | — | — |
cycle | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
workflow_run_id | string | No | — | — |
product_ref | string | Yes | — | — |
external_id | string | Yes | — | — |
created | boolean | Yes | — | — |
product | json | 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 | — | — |
list_products | json | No | — | — |
create_product | json | No | — | — |
name | string | Yes | — | — |
price | integer | Yes | — | — |
currency | string | No | — | — |
description | string | No | — | — |
image_url | string | No | — | — |
cycle | string | No | — | — |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | ensure | abacatepay.product.list | — |
| 2 | create_if_missing | abacatepay.product.create | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
abacatepay.product.list | list_products |
abacatepay.product.create | create_product |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "abacatepay.catalog.ensure-product",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"external_id": "value",
"name": "value"
}
}