ChatGPT · GPT ActionsFacturación
Crear factura
Da de alta registros de facturas con confirmación del usuario.
por Prompt Studio
openapiinvoices
Licencia: MITVer original
Contenido
Dónde va: GPT → Configurar → Acciones → Esquema
{
"openapi": "3.1.0",
"info": {
"title": "Crear factura",
"version": "1.0.0",
"description": "Acción de GPT para facturas. Cambia el servidor por la URL de tu API."
},
"servers": [
{
"url": "https://api.tu-dominio.com/v1"
}
],
"paths": {
"/invoices": {
"post": {
"operationId": "createInvoice",
"summary": "Crea factura",
"x-openai-isConsequential": true,
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewInvoice"
}
}
}
},
"responses": {
"201": {
"description": "Creado",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Invoice"
}
}
}
},
"400": {
"description": "Datos inválidos"
}
}
}
}
},
"components": {
"schemas": {
"Invoice": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"customerId": {
"type": "string"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"dueDate": {
"type": "string",
"format": "date"
},
"status": {
"type": "string",
"enum": [
"borrador",
"enviada",
"pagada",
"vencida"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"NewInvoice": {
"type": "object",
"properties": {
"customerId": {
"type": "string"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"dueDate": {
"type": "string",
"format": "date"
}
},
"required": [
"customerId",
"amount"
]
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer"
}
}
},
"security": [
{
"bearerAuth": []
}
]
}
Más en GPT Actions
Clima por ciudad
Ejemplo mínimo de Action con API key en el encabezado.
Crear lead en el CRM
Registra contactos desde la conversación con autenticación OAuth.
Agendar reunión
Crea eventos con invitados y zona horaria.
Enviar a webhook
Publica el resultado del GPT en cualquier URL (Zapier, Make, n8n).
Buscar contactos
Busca contactos por texto y estado desde tu GPT.
Consultar contacto
Trae un registro de contactos por su ID.