Create checkout
create_checkoutCreate the order and get a hosted payment link for a chosen offer. Call this as soon as the user picks an offer + shipping speed. This tool takes NO personal details: never ask for — and never pass — a name, address, email, or phone; the secure payment page collects the shipping address, email, and phone (and billing) itself, even when the user volunteered them in chat. Returns checkout_url — give it to the user to pay; UFP places the vendor order automatically after payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer_id | Yes | ||
| return_url | No | Exact URL of the page the user is on right now, IF the client application knows it (a web app embedding this tool passes its own page URL). The post-payment page shows a 'Return to <site>' button pointing here. Omit when unknown — never invent one. | |
| coupon_code | No | Coupon code, only if the user provided one (early-adopter codes from the AFN team). Case-insensitive. The discount appears on the payment page; a 100%-off code makes the total $0 with no card required. Never invent or guess a code. | |
| shipping_option_id | Yes | One of the offer's shipping option ids |