abacatepay.coupon.apply-checkout ​
Optionally create/ensure coupon then create checkout with coupons.
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 | — | — |
items | list | Yes | — | — |
coupons | list | Yes | — | — |
ensure_coupon | json | No | — | — |
customer_ref | string | No | — | — |
methods | list | No | — | — |
return_url | string | No | — | — |
completion_url | string | No | — | — |
external_id | string | No | — | — |
metadata | json | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
workflow_run_id | string | No | — | — |
checkout_ref | string | Yes | — | — |
checkout_url | string | Yes | — | — |
coupons | list | 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 | — | — |
create_coupon | json | No | — | — |
create_checkout | json | No | — | — |
items | list | Yes | — | — |
ensure_coupon | json | No | — | — |
customer_ref | string | No | — | — |
methods | list | No | — | — |
return_url | string | No | — | — |
completion_url | string | No | — | — |
external_id | string | No | — | — |
metadata | json | No | — | — |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | coupon | abacatepay.coupon.create | — |
| 2 | checkout | abacatepay.checkout.create | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
abacatepay.coupon.create | create_coupon |
abacatepay.checkout.create | create_checkout |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "abacatepay.coupon.apply-checkout",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"items": "value",
"coupons": "value"
}
}