abacatepay.charge.hosted ​
Ensure customer/products then create a hosted checkout (optional await).
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 | — | — |
ensure_products | list | No | — | — |
customer | json | No | — | — |
customer_ref | string | No | — | — |
methods | list | No | — | — |
return_url | string | No | — | — |
completion_url | string | No | — | — |
coupons | list | No | — | — |
external_id | string | No | — | — |
await_completion | boolean | 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 | — | — |
status | 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 | — | — |
ensure_customer | json | No | — | — |
create_checkout | json | No | — | — |
await_completion | json | No | — | — |
items | list | Yes | — | — |
ensure_products | list | No | — | — |
customer | json | No | — | — |
customer_ref | string | No | — | — |
methods | list | No | — | — |
return_url | string | No | — | — |
completion_url | string | No | — | — |
coupons | list | No | — | — |
external_id | string | No | — | — |
metadata | json | No | — | — |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | ensure | abacatepay.customer.create | — |
| 2 | charge | abacatepay.checkout.create | — |
| 3 | await | abacatepay.checkout.await-completion | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
abacatepay.customer.create | ensure_customer |
abacatepay.checkout.create | create_checkout |
abacatepay.checkout.await-completion | await_completion |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "abacatepay.charge.hosted",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"items": "value"
}
}