Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Communications Campaigns
cURL
Basic declined payment recovery
curl --request POST \ --url https://api-sandbox.y.uno/v1/campaigns/{campaign_id}/rules \ --header 'Content-Type: application/json' \ --header 'private-secret-key: <api-key>' \ --header 'public-api-key: <api-key>' \ --data ' { "rules": [ { "rule_type": "PAYMENT_STATUS", "values": [ "DECLINED" ], "conditional": "EQUAL" }, { "rule_type": "PAYMENT_METHOD", "values": [ "CARD" ], "conditional": "EQUAL" } ] } '
{ "data": [ { "id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890", "rule_type": "PAYMENT_STATUS", "values": [ "DECLINED" ], "conditional": "EQUAL", "metadata_key": null, "status": "ACTIVE", "created_at": "2025-07-01T12:05:00Z", "updated_at": "2025-07-01T12:05:00Z" }, { "id": "a9b8c7d6-e5f4-3210-abcd-ef1234567890", "rule_type": "CURRENCY", "values": [ "COP" ], "conditional": "EQUAL", "metadata_key": null, "status": "ACTIVE", "created_at": "2025-07-01T12:05:00Z", "updated_at": "2025-07-01T12:05:00Z" }, { "id": "11223344-5566-7788-99aa-bbccddeeff00", "rule_type": "AMOUNT", "values": [ "50000" ], "conditional": "GREATER_THAN", "metadata_key": null, "status": "ACTIVE", "created_at": "2025-07-01T12:05:00Z", "updated_at": "2025-07-01T12:05:00Z" } ] }
The campaign identifier (UUID).
Array of rule objects
Show child attributes
Created
Was this page helpful?