{
  "components": {
    "schemas": {
      "Customer": {
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "Payment": {
        "properties": {
          "amount": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PaymentCreate": {
        "properties": {
          "amount": {
            "type": "integer"
          }
        },
        "type": "object"
      }
    }
  },
  "info": {
    "title": "Acme Payments API",
    "version": "2024-10-01"
  },
  "openapi": "3.1.0",
  "paths": {
    "/customers": {
      "get": {
        "operationId": "listCustomers",
        "responses": {
          "200": {
            "description": "Customers returned"
          }
        },
        "summary": "List customers"
      }
    },
    "/payments": {
      "get": {
        "operationId": "listPayments",
        "parameters": [
          {
            "in": "query",
            "name": "expand",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payments returned"
          },
          "404": {
            "description": "Customer account was not found"
          }
        },
        "summary": "List payments"
      },
      "post": {
        "operationId": "createPayment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Payment created"
          }
        },
        "summary": "Create a payment"
      }
    }
  }
}