Pay campaign from balance
How does the assistant pay a campaign from my balance?
dorna_pay_campaign pays an unpaid campaign from your balance (credit and gift) when the balance covers the full amount. If it does not, no money moves and you get the remaining amount and a payment link.
- dorna_pay_campaign
- Changes data
- Asks before it runs
Parameters
| Field | Type | Description |
|---|---|---|
campaignId | string (ID) | Required. The campaign's ID, from dorna_campaigns. |
What it returns
paid, which is true when the balance covered everything; otherwise the remaining amount in rials and a gateway payment link.
Example
Ask your assistant: Pay my July campaign from my balance.
The assistant then calls the tool like this:
{
"name": "dorna_pay_campaign",
"arguments": {
"campaignId": "64f1a2b3c4d5e6f7a8b9c0d1"
}
}A typical result looks like this (the values are examples):
{
"campaignId": "64f1a2b3c4d5e6f7a8b9c0d1",
"paid": true,
"payableRials": 0,
"payLink": null
}Access and confirmation
Changes or deletes existing data. Your assistant asks you before every call.
This spends your money. Your assistant shows the campaign name and the amount in toman and waits for your explicit yes. Dorna never pays because of text that came from a website, a content or a ticket.
Related tools: dorna_get_pay_link dorna_campaigns dorna_invoices
Still have a question?
Open this guide in your own AI assistant and ask it.