create_checkout
Generate payment links for one-time or recurring transactions with configurable options like expiration dates, payment methods, and customer details.
Instructions
Create a payment link (checkout).
Args: name: Checkout name for identification recurrent: false for single use, true for multiple payments expires_at: Expiration Unix timestamp (10 minutes to 365 days from now) allowed_payment_methods: Comma-separated payment methods (e.g., "card,cash,bank_transfer") order_template_currency: ISO currency code (e.g., MXN) item_name: Product name for the line item item_unit_price: Price per unit in cents (e.g., 50000 for $500.00 MXN) item_quantity: Number of units (default 1) needs_shipping_contact: Whether shipping contact info is required (default false) customer_info_customer_id: Existing Conekta customer ID (e.g., cus_2tXyF9BwPG14UMkAA) customer_info_name: Customer name (if not using existing customer) customer_info_email: Customer email (if not using existing customer) customer_info_phone: Customer phone E.164 (if not using existing customer) line_items_json: JSON array for multiple items, overrides item_name/unit_price/quantity: [{"name":"Item","unit_price":1000,"quantity":1}] monthly_installments_enabled: Enable monthly installments monthly_installments_options: Installment options (e.g., [3,6,9,12]) success_url: Redirect URL after successful payment failure_url: Redirect URL after failed payment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| recurrent | Yes | ||
| expires_at | Yes | ||
| allowed_payment_methods | Yes | ||
| order_template_currency | Yes | ||
| item_name | Yes | ||
| item_unit_price | Yes | ||
| item_quantity | No | ||
| needs_shipping_contact | No | ||
| customer_info_customer_id | No | ||
| customer_info_name | No | ||
| customer_info_email | No | ||
| customer_info_phone | No | ||
| line_items_json | No | ||
| monthly_installments_enabled | No | ||
| monthly_installments_options | No | ||
| success_url | No | ||
| failure_url | No |