ChatGPT · GPT ActionsFacturación
Crear pago
Da de alta registros de pagos con confirmación del usuario.
por Prompt Studio
openapipayments
Licencia: MITVer original
Contenido
Dónde va: GPT → Configurar → Acciones → Esquema
{
"openapi": "3.1.0",
"info": {
"title": "Crear pago",
"version": "1.0.0",
"description": "Acción de GPT para pagos. Cambia el servidor por la URL de tu API."
},
"servers": [
{
"url": "https://api.tu-dominio.com/v1"
}
],
"paths": {
"/payments": {
"post": {
"operationId": "createPayment",
"summary": "Crea pago",
"x-openai-isConsequential": true,
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewPayment"
}
}
}
},
"responses": {
"201": {
"description": "Creado",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Payment"
}
}
}
},
"400": {
"description": "Datos inválidos"
}
}
}
}
},
"components": {
"schemas": {
"Payment": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"invoiceId": {
"type": "string"
},
"amount": {
"type": "number"
},
"method": {
"type": "string"
},
"paidAt": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string",
"enum": [
"pendiente",
"confirmado",
"reembolsado"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"NewPayment": {
"type": "object",
"properties": {
"invoiceId": {
"type": "string"
},
"amount": {
"type": "number"
},
"method": {
"type": "string"
},
"paidAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"invoiceId",
"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.