---
updatedAt: 2026-10-31T08:03:05.000Z
agentTools:
  projectIndex: https://developer.accelevents.com/llms.txt
---

# Connect Square

This API is used for connecting Square. To get this API we need to pass the authentication key to authenticate the user.

Here is the possible error messages, which return if any condition gets failed or required data is missing for processing.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Error code
      </th>

      <th style={{ textAlign: "left" }}>
        Error Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        4060025
      </td>

      <td style={{ textAlign: "left" }}>
        You must be a staff of this event to connect the Square account.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        4060706
      </td>

      <td style={{ textAlign: "left" }}>
        Currently, we do not support connecting of Square payment gateway for white label events.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        4060023
      </td>

      <td style={{ textAlign: "left" }}>
        Event is already connected to other payment gateway.
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "accelevents",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.accelevents.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/rest/host/event/{eventUrl}/settings/squareConnect": {
      "post": {
        "summary": "Connect Square",
        "description": "This API is used for connecting Square. To get this API we need to pass the authentication key to authenticate the user.",
        "operationId": "connect-square",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "API Authorization Token",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eventUrl",
            "in": "path",
            "description": "Event url is unique identifier for your event. E.g https://www.accelevents.com/events/demo. Here demo is the event url.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"redirecttostripe\":\"false\"}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "redirecttostripe": {
                      "type": "string",
                      "example": "false"
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "201",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "Not Event Host"
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```