{
  "Error": {
    "type": "object",
    "properties": {
      "code": {
        "type": "integer",
        "format": "int32"
      },
      "message": {
        "type": "string"
      },
      "fields": {
        "type": "string"
      }
    }
  },
  "user_login": {
    "type": "object",
    "properties": {
      "email": {
        "type": "string",
        "maxLength": 255,
        "description": "FILL ME OUT!!!!"
      },
      "password": {
        "type": "string",
        "maxLength": 255,
        "description": "FILL ME OUT!!!!"
      }
    }
  },
  "stripe_preconfigure": {
    "type": "object",
    "properties": {
      "message": {
        "type": "string",
        "description": "Response message"
      },
      "do_migration": {
        "type": "string",
        "description": "If “do_migration” is false, you can just run the next api call to actually change the keys. Otherwise, you have to prompt the user that by changing theses keys, their current data will be wiped out!"
      }
    }
  },
  "stripe_keys": {
    "type": "object",
    "properties": {
      "stripe_secret": {
        "type": "string",
        "description": "Stripe secret key"
      },
      "stripe_public": {
        "type": "string",
        "description": "Stripe public key"
      }
    }
  },
  "metric_change": {
    "type": "object",
    "properties": {
      "value": {
        "type": "integer",
        "format": "int32",
        "description": "New number of metric"
      }
    }
  },
  "service_instance_request": {
    "type": "object",
    "properties": {
      "email": {
        "type": "string",
        "format": "email",
        "description": "Email of user to create"
      },
      "token_id": {
        "type": "string",
        "description": "[Stripe Token ID](https://stripe.com/docs/api#token_object-id)"
      },
      "client_id": {
        "type": "integer",
        "description": "ServiceBot User ID, used for requesting a service instance for an existing User"
      },
      "payment_structure_template_id": {
        "type": "integer",
        "description": "Payment Structure Template ID, used to select a specific payment structure to be attached to the created Service Instance"
      },
      "references": {
        "type": "object",
        "properties": {
          "service_instance_properties": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_template_properties"
            }
          }
        }
      }
    }
  },
  "service_instance_request_response": {
    "type": "object",
    "properties": {
      "token": {
        "type": "string",
        "format": "string",
        "description": "ServiceBot auth token for the user requested."
      },
      "request": {
        "type": "object",
        "description": "Service Instance request details that were made",
        "$ref": "#/definitions/service_instance_request"
      },
      "webhook_responses": {
        "type": "string",
        "description": "Response from webhook if one is configured. Will only be there is webhook was configure to be synchronous."
      },
      "references": {
        "type": "object",
        "properties": {
          "service_instance_properties": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/service_template_properties"
            }
          }
        }
      }
    }
  },
  "seat": {
    "type": "object",
    "properties": {
      "user_id": {
        "type": "integer",
        "description": "User Id"
      },
      "service_instance_id": {
        "type": "integer",
        "description": "Service Instance Id"
      },
      "id": {
        "type": "integer",
        "description": "Seat Id"
      },
      "references": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/definitions/users"
            }
          }
        }
      }
    }
  }
}