{
  "openapi": "3.1.0",
  "info": {
    "title": "Atlas Bookkeeper founding-client pilot",
    "version": "1.0.0",
    "description": "Read the pilot terms and price, then sign a firm up. Founding-client pilot: 30 days free, then the Atlas Bookkeeper list price locked for 12 months starting when the pilot ends. First 5 firms; after that sign-ups join a waitlist. No captcha. A person writes to the email address given; the prospect is not emailed automatically.",
    "contact": {
      "name": "Alignment Capital",
      "email": "atlas@alignmentcapitalhq.com",
      "url": "https://books.alignmentcapitalhq.com"
    }
  },
  "servers": [
    {
      "url": "https://pilot.alignmentcapitalhq.com"
    }
  ],
  "paths": {
    "/pricing.json": {
      "get": {
        "operationId": "getPricingAndPilotTerms",
        "summary": "List price, pilot terms and spots left",
        "responses": {
          "200": {
            "description": "Pricing document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pricing"
                }
              }
            }
          }
        }
      }
    },
    "/api/signup": {
      "post": {
        "operationId": "signUpForPilot",
        "summary": "Sign a firm up for the founding pilot, or request a 20-minute walkthrough",
        "description": "Send JSON or form fields. The same validation, honeypot and hourly rate limit as the page form apply. If the five founding spots are taken, a pilot request is stored on the waitlist. A request with an email address already on file returns status \"duplicate\". Set submitted_by_agent to true (or send agent_name) when software is submitting on behalf of a person.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignUp"
              },
              "example": {
                "name": "Pat Jones",
                "firm": "Jones CPA",
                "email": "pat@jones.example",
                "role": "cpa_firm",
                "clients": 12,
                "qbo": "yes",
                "choice": "pilot",
                "submitted_by_agent": true,
                "agent_name": "example-assistant"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/SignUp"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "This email address is already on file (status \"duplicate\").",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "201": {
            "description": "Stored. status is pilot, waitlist or walkthrough.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "422": {
            "description": "Validation failed. errors maps each field to a message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "429": {
            "description": "Too many submissions from this address. Retry-After is in seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SignUp": {
        "type": "object",
        "required": [
          "name",
          "firm",
          "email",
          "role",
          "qbo",
          "choice"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "description": "Contact name"
          },
          "firm": {
            "type": "string",
            "maxLength": 150,
            "description": "Firm or company name"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Where a person writes back"
          },
          "phone": {
            "type": "string",
            "maxLength": 40,
            "description": "Optional"
          },
          "role": {
            "type": "string",
            "enum": [
              "cpa_firm",
              "bookkeeper",
              "business_owner"
            ]
          },
          "clients": {
            "type": "integer",
            "minimum": 0,
            "maximum": 99999,
            "description": "Approximate number of client companies. Optional."
          },
          "qbo": {
            "type": "string",
            "enum": [
              "yes",
              "no"
            ],
            "description": "Whether the firm uses QuickBooks Online (true/false also accepted)"
          },
          "choice": {
            "type": "string",
            "enum": [
              "pilot",
              "walkthrough"
            ],
            "description": "Start the pilot, or book a 20-minute walkthrough"
          },
          "times": {
            "type": "string",
            "maxLength": 500,
            "description": "Preferred days and times for a walkthrough. Optional."
          },
          "submitted_by_agent": {
            "type": "boolean",
            "description": "True when software is submitting on behalf of a person. Optional."
          },
          "agent_name": {
            "type": "string",
            "maxLength": 100,
            "description": "Name of the assistant or tool submitting. Optional."
          },
          "website": {
            "type": "string",
            "description": "Leave empty. Spam trap."
          }
        }
      },
      "Result": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "pilot",
              "waitlist",
              "walkthrough",
              "duplicate",
              "invalid",
              "error"
            ]
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "spots_left": {
            "type": "integer"
          },
          "spots_total": {
            "type": "integer"
          },
          "next": {
            "type": "string"
          }
        }
      },
      "Pricing": {
        "type": "object",
        "properties": {
          "product": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "list_price": {
            "type": "object",
            "properties": {
              "free_transactions": {
                "type": "integer"
              },
              "per_transaction_usd": {
                "type": "number"
              },
              "monthly_fee_usd": {
                "type": "number"
              }
            }
          },
          "founding_pilot": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "waitlist"
                ]
              },
              "free_days": {
                "type": "integer"
              },
              "price_lock_months": {
                "type": "integer"
              },
              "price_lock_starts": {
                "type": "string"
              },
              "spots_total": {
                "type": "integer"
              },
              "spots_left": {
                "type": "integer"
              },
              "card_required": {
                "type": "boolean"
              }
            }
          },
          "sign_up": {
            "type": "object"
          }
        }
      }
    }
  }
}