Appertivo
Appertivo · GPT Actions
Check Payment Status
API for Stripe payment intent retrieval.
GET /payment_intents/{payment_intent_id}Retrieves the details of a specific payment intent.
原始 API 定义
{
"openapi": "3.0.0",
"info": {
"title": "Check Payment Status",
"version": "1.0.0",
"description": "API for Stripe payment intent retrieval."
},
"servers": [
{
"url": "https://api.stripe.com/v1",
"description": "Stripe API server"
}
],
"paths": {
"/payment_intents/{payment_intent_id}": {
"get": {
"operationId": "getPaymentIntent",
"summary": "Retrieves the details of a specific payment intent.",
"parameters": [
{
"name": "payment_intent_id",
"in": "path",
"required": true,
"description": "The ID of the payment intent to retrieve.",
"schema": {
"type": "string"
}
}
],
"security": [
{
"stripeAuth": []
}
],
"responses": {
"200": {
"description": "Payment intent details retrieved successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PaymentIntentDetails"
}
}
}
},
"4XX": {
"description": "Client error (e.g., unauthorized, payment intent not found)."
},
"5XX": {
"description": "Server error."
}
}
}
}
},
"components": {
"securitySchemes": {
"stripeAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "token"
}
},
"schemas": {
"PaymentIntentDetails": {
"type": "object",
"properties": {
"status": {
"type": "string"
}
}
}
}
}
}Send to Email
API for managing subscribers.
POST /add_presubscriberAdds a new subscriber.Adds a new subscriber using the provided email address.
POST /menu_analysisCreates a Stripe PaymentIntent and a Checkout Session for menu analysis.GET /trending_ingredientsRetrieves a list of trending ingredients.
原始 API 定义
{
"openapi": "3.0.0",
"info": {
"title": "Send to Email",
"description": "API for managing subscribers.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://appertivo.com",
"description": "Appertivo Server"
}
],
"paths": {
"/add_presubscriber": {
"post": {
"operationId": "addPreSubscriber",
"summary": "Adds a new subscriber.",
"description": "Adds a new subscriber using the provided email address.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email"
},
"session": {
"type": "string"
},
"suggestions": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Subscriber added successfully.",
"headers": {
"X-Frame-Options": {
"schema": null,
"type": "string",
"description": "Controls whether the response can be displayed in a frame.",
"example": "ALLOW-FROM https://openai.com"
}
},
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "Bad request if the email parameter is missing or invalid."
}
}
}
},
"/menu_analysis": {
"post": {
"operationId": "createPaymentSession",
"summary": "Creates a Stripe PaymentIntent and a Checkout Session for menu analysis.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "Customer's email address for the receipt."
}
}
}
}
}
},
"responses": {
"200": {
"description": "URL to the Stripe payment session.",
"headers": {
"X-Frame-Options": {
"schema": null,
"type": "string",
"description": "Controls whether the response can be displayed in a frame.",
"example": "ALLOW-FROM https://openai.com"
}
},
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "Bad request, e.g., missing or invalid parameters."
}
}
}
},
"/trending_ingredients": {
"get": {
"operationId": "getTrendingIngredients",
"summary": "Retrieves a list of trending ingredients.",
"responses": {
"200": {
"description": "A plain text response with trending ingredients",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
}
}
}
}
}
}