Prompt Details
Model
Chat - (gpt-5.6)
Token size
416
Example input
[Endpoint Architecture and Authentication Scheme]: POST /v1/payments/charges. Idempotent payment intent authorization endpoint for an enterprise payment processor. Authentication via Bearer token (API Secret Key) in Authorization header. Idempotency-Key string header required.
[Request Parameters and Payload Schema]: JSON body: amount (integer, in smallest currency unit, min 50), currency (string, ISO 4217 3-letter code, lowercase), customer_id (string, UUIDv4), payment_method_id (string), capture (boolean, default true), metadata (object, key-value pairs).
[Response Codes and Data Models]: 201 Created: returns Charge object (id, status enum 'authorized', 'captured', 'failed', amount, currency, created_at timestamp, transaction_fee integer). 400 Bad Request. 402 Payment Required (insufficient funds, card declined).
[Rate Limiting and Error Handling Protocol]: Rate limit: 100 requests per minute per API key. Returns HTTP 429 when exceeded with standard Retry-After header. Error response payload includes error code, type, message, and decline_code if applicable.
Example output
### 1. Production-Ready OpenAPI 3.0 YAML Specification
```yaml
openapi: 3.0.3
info:
title: Payment Processing API
version: 1.0.0
paths:
/v1/payments/charges:
post:
summary: Create payment charge
operationId: createCharge
security:
- BearerAuth: []
parameters:
- name: Idempotency-Key
in: header
required: true
schema:
type: string
description: Unique UUIDv4 key preventing duplicate charges.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ChargeRequest'
responses:
'201':
description: Charge successfully created and processed.
content:
application/json:
schema:
$ref: '#/components/schemas/Charge'
'400':
$ref: '#/components/responses/400BadRequest'
'402':
$ref: '#/components/responses/402PaymentRequired'
'429':
$ref: '#/components/responses/429RateLimited'
Get this prompt + 9 more with Select$14 your first month, then $19/mo$14 first month, then $19/mo
View SelectBy purchasing this prompt, you agree to our terms of service
GPT-5.6
Transform raw backend endpoints, payloads, and controller logic into production-ready OpenAPI 3.0 YAML specifications and developer documentation. Built for backend engineers, technical writers, and software architects seeking standardized Swagger docs without syntax errors. Generates complete schemas, response models, and endpoint usage guides.
...more
Added over 1 month ago
