Skip to content
Proud to collaborate with Microsoft for Startups

abacatepay.checkout.create ​

Create a hosted checkout and return the payment URL.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-abacatepay
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
cloud_connection_uuiduuidYes—Organization-scoped AbacatePay connection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
itemslistYes—Checkout items [{id, quantity}] using provider product ids
methodslistNo—Payment methods: PIX, CARD, BOLETO
customer_refstringNo—Provider customer id (customerId)
return_urlstringNo—Back URL on hosted checkout
completion_urlstringNo—Success redirect URL
couponslistNo—Coupon codes allowed on this checkout
external_idstringNo—Caller reference id
upsell_product_refstringNo—One-time upsell product id
due_datestringNo—BOLETO due date YYYY-MM-DD
metadatajsonNo—Caller metadata bag

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
cloud_connection_uuiduuidYes—Organization-scoped AbacatePay connection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
checkout_refstringYes—Provider checkout/billing id
checkout_urlstringYes—Hosted payment URL
amountintegerYes—Total amount in centavos
statusstringYes—Checkout status
external_idstringNo—Caller reference id
checkoutjsonYes—Normalized checkout payload
created_atstringYes—ISO-8601 create timestamp
failure_reasonstringNo—Safe terminal failure reason
failure_typestringNo—Stable failure classification
failed_actionstringNo—Action that failed
failed_stepjsonNo—Failed DAG step envelope
failed_layerintegerNo—One-based failed DAG layer
failed_at_statestringNo—State where failure occurred
errorstringNo—Safe unexpected error
error_typestringNo—Unexpected exception class
failed_atstringNo—ISO-8601 failure timestamp
provider_request_refstringNo—Safe provider request reference
retryablebooleanNo—Whether the failure is retryable
itemslistYes—Checkout items [{id, quantity}] using provider product ids
methodslistNo—Payment methods: PIX, CARD, BOLETO
customer_refstringNo—Provider customer id (customerId)
return_urlstringNo—Back URL on hosted checkout
completion_urlstringNo—Success redirect URL
couponslistNo—Coupon codes allowed on this checkout
upsell_product_refstringNo—One-time upsell product id
due_datestringNo—BOLETO due date YYYY-MM-DD
metadatajsonNo—Caller metadata bag

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "abacatepay.checkout.create",
  "initial_data": {
    "organization_uuid": "value",
    "cloud_connection_uuid": "value",
    "items": "value"
  }
}