curl --request POST \
--url https://app.tagadapay.com/api/public/v1/funnels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"storeId": "store_123",
"config": {
"id": "my-funnel",
"name": "My Funnel",
"version": "1.0.0",
"steps": [
{
"id": "step_1",
"name": "Checkout",
"type": "checkout",
"index": 1,
"isEntry": true,
"config": {
"path": "/checkout"
},
"conditions": {
"entry": true
}
}
]
},
"isDefault": true
}
'