create_order
Process payments by creating orders with customer details, line items, shipping information, and checkout options for new or existing customers.
Instructions
Create a new order. Provide customer_info_customer_id for an existing customer, or name/email/phone for a new one.
Args: currency: ISO currency code (e.g., MXN, USD) customer_info_customer_id: Existing Conekta customer ID 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) checkout: Checkout object. Supported types: Integration: {"type":"Integration","allowed_payment_methods":["card"],"name":"Pago"} HostedPayment: {"type":"HostedPayment","allowed_payment_methods":["card"],"name":"Pago","success_url":"https://...","failure_url":"https://..."} line_items: Order line items: [{"name":"Item","unit_price":1000,"quantity":1}] charges: Order charges: [{"payment_method":{"type":"card","token_id":"tok_..."}}] shipping_contact: Shipping address: {"address":{"street1":"Nuevo Leon 254","postal_code":"06100","city":"Ciudad de Mexico","state":"Ciudad de Mexico","country":"MX"}} shipping_lines: Order shipping lines: [{"amount":500,"carrier":"FedEx"}] metadata: Metadata object: {"key":"value"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | ||
| customer_info_customer_id | No | ||
| customer_info_name | No | ||
| customer_info_email | No | ||
| customer_info_phone | No | ||
| checkout | No | ||
| line_items | No | ||
| charges | No | ||
| shipping_contact | No | ||
| shipping_lines | No | ||
| metadata | No |