---
updatedAt: 2026-03-12T01:15:49.000Z
agentTools:
  projectIndex: https://docs.ventipay.com/llms.txt
---

# Crear

Crea un nuevo objeto `Checkout`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "servers": [
    {
      "url": "https://api.ventipay.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "info": {
    "title": "Pagos",
    "description": "Endpoints para gestionar cobros, checkout, pagos, reembolsos y botones de pago.",
    "version": "1"
  },
  "tags": [
    {
      "name": "Checkouts",
      "description": "Un `Checkout` representa una sesión de pago. Permite cobrar a un cliente por uno o más productos o servicios."
    }
  ],
  "paths": {
    "/checkouts": {
      "post": {
        "summary": "Crear",
        "description": "Crea un nuevo objeto `Checkout`.",
        "operationId": "checkouts-create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "currency",
                  "items"
                ],
                "properties": {
                  "currency": {
                    "type": "string",
                    "description": "Código de moneda ISO de tres letras. Corresponde a la moneda de presentación.",
                    "enum": [
                      "clp",
                      "clf"
                    ]
                  },
                  "items": {
                    "type": "array",
                    "description": "Listado de productos o servicios que componen el objeto.",
                    "items": {
                      "properties": {
                        "unit_price": {
                          "type": "integer",
                          "format": "int32"
                        },
                        "quantity": {
                          "type": "integer",
                          "format": "int32"
                        },
                        "name": {
                          "type": "string"
                        },
                        "sku": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "unit_price",
                        "quantity"
                      ],
                      "type": "object"
                    }
                  },
                  "authorize": {
                    "type": "boolean",
                    "description": "Indica si el cargo se capturará/autorizará inmediatamente.",
                    "default": true
                  },
                  "cancel_url": {
                    "type": "string",
                    "description": "Una URL a la cual el cliente será redirigido si la autorización del cargo falla o es cancelada por el cliente."
                  },
                  "cancel_url_method": {
                    "type": "string",
                    "default": "post",
                    "enum": [
                      "get",
                      "post"
                    ]
                  },
                  "customer_id": {
                    "type": "string",
                    "description": "ID de customer"
                  },
                  "description": {
                    "type": "string",
                    "description": "Un texto arbitrario asociado al objeto."
                  },
                  "external_id": {
                    "type": "string",
                    "description": "Referencia a ID de sistema externo."
                  },
                  "metadata": {
                    "type": "string",
                    "description": "Conjunto de pares llave-valor asociado al objeto.",
                    "format": "json"
                  },
                  "notification_events": {
                    "type": "array",
                    "description": "checkout.created, checkout.paid, checkout.refunded, checkout.canceled",
                    "items": {
                      "type": "string"
                    }
                  },
                  "notification_url": {
                    "type": "string"
                  },
                  "success_url": {
                    "type": "string",
                    "description": "Una URL a la cual el cliente será redirigido si la autorización del cargo es exitosa."
                  },
                  "success_url_method": {
                    "type": "string",
                    "default": "post",
                    "enum": [
                      "get",
                      "post"
                    ]
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "Checkouts"
        ]
      }
    }
  }
}
```