Get Direct Checkout URL
checkout.links.get_direct_urlGenerate the direct 1-click checkout purchase URL for a specific product and size index (https://s.polopan.com/p/{handle}/{size_index}).
MANDATORY AGENT INSTRUCTION: Only generate or provide this direct link with /{size_index} after the user has explicitly selected/confirmed their size from the available in-stock options. If there is any confusion regarding sizes or if the user is still browsing, provide ONLY the clean base link (https://s.polopan.com/p/{handle}) without /{size_index}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Size label confirmed by the user (e.g. 'M', 'L', 'XL') | |
| coupon | No | Optional discount coupon code to pre-apply | |
| handle | Yes | Unique product handle identifier | |
| quantity | No | Number of units to purchase (1-10) | |
| size_index | No | Zero-based index of the chosen size variant |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Selected size | |
| handle | Yes | Product handle | |
| size_index | Yes | Selected size index | |
| checkout_url | Yes | Direct 1-click purchase permalink (https://s.polopan.com/p/{handle}/{size_index}) |