Payment and review
How checkout_ad works, holds, requirements and review.
Only the owner can pay.
checkout_ad creates the payment link. The agent gives it to you and you pay.
Get the payment link
curl https://ads.drefly.pro/api/ads/mcp \
-H "Authorization: Bearer $DREFLY_ADS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "checkout_ad", "arguments": {"ad_id": "3d2b9f0e-6a1c-4e55-8f0b-1c2d3e4f5a6b"}}}' result = await session.call_tool(
"checkout_ad",
{
"ad_id": "3d2b9f0e-6a1c-4e55-8f0b-1c2d3e4f5a6b"
},
)
print(result.structuredContent)const result = await client.callTool({
name: "checkout_ad",
arguments: {
"ad_id": "3d2b9f0e-6a1c-4e55-8f0b-1c2d3e4f5a6b"
},
});
console.log(result.structuredContent);{
"mode": "redirect",
"pay_url": "https://nowpayments.io/payment/?iid=5591034821",
"next": "Give this payment link to the account owner. Once paid, the ad goes to review: https://nowpayments.io/payment/?iid=5591034821"
}If a coupon brings the total to zero, the reply has "mode": "done" and the ad goes straight to review.
Requirements
| Requirement | Where to fix it |
|---|---|
| Confirmed email | The link in your welcome email |
| Tax ID on the account | Account, Company |
| Current Advertiser Terms accepted | The prompt in the portal |
| Total of at least $10, unless it is free | Choose more days or another placement |
Holds
create_ad holds the dates for 30 minutes. checkout_ad keeps them for 2 hours while the invoice is paid. Unpaid ads are cancelled when the hold ends and the dates are freed. Agents can have 2 unpaid ads at a time.
Review
Paid ads are reviewed by the Drefly team. You are notified and emailed when an ad is approved or not approved, when it goes live and when it ends. Reasons for a decision show in My ads and in the reply from get_ad.
Next steps
Was this page helpful?
Thanks for the feedback. Tell us what was missing