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

# Calculate fees based on selected tickets

User can use this api to check the total payable amount after adding extra charge based on selected tickets. It has the price and ticketing type id which we get from available ticketing details api.
No need to pass authentication key to call this api.

Here is the description of response attributes, which returns in the form of JSON.

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

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

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

      <td style={{ textAlign: "left" }}>
        It will return amount of accel event fees.
      </td>
    </tr>

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

      <td style={{ textAlign: "left" }}>
        It will returns the amount for credit card processing fees.
      </td>
    </tr>

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

      <td style={{ textAlign: "left" }}>
        It will return a selected ticket's price.
      </td>
    </tr>

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

      <td style={{ textAlign: "left" }}>
        It will return a count of tickets which user have selected for purchase.
      </td>
    </tr>

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

      <td style={{ textAlign: "left" }}>
        It will return a unique ticket type id mapped with a ticket type.
      </td>
    </tr>

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

      <td style={{ textAlign: "left" }}>
        It will return total payable amount.(ticket amount + extra charges)
      </td>
    </tr>

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

      <td style={{ textAlign: "left" }}>
        It will return amount of wl event fees.
      </td>
    </tr>
  </tbody>
</Table>

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>
        Error Code
      </th>

      <th>
        Error Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **4040200** 
      </td>

      <td>
        No Event could be found
      </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/events/{eventurl}/calculateFee": {
      "post": {
        "summary": "Calculate fees based on selected tickets",
        "description": "User can use this api to check the total payable amount after adding extra charge based on selected tickets. It has the price and ticketing type id which we get from available ticketing details api.\nNo need to pass authentication key to call this api.",
        "operationId": "calculate-fees-based-on-selected-tickets",
        "parameters": [
          {
            "name": "eventurl",
            "in": "path",
            "description": "Pass event URL for which event's fees wants to calculate.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "ticketPrice": {
                          "type": "number",
                          "description": "Please set the price(amount) of ticket.",
                          "format": "double"
                        },
                        "ticketQuantity": {
                          "type": "integer",
                          "description": "Please pass the total number of tickets which you want to purchase based on the ticket type.",
                          "format": "int32"
                        },
                        "ticketingTypeId": {
                          "type": "integer",
                          "description": "Please pass the ticketing type id.",
                          "format": "int64"
                        }
                      },
                      "required": [
                        "ticketPrice",
                        "ticketQuantity",
                        "ticketingTypeId"
                      ],
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"aeFees\": 0,\n  \"ccFees\": 0,\n  \"ticketPrice\": 0,\n  \"ticketQuantity\": 0,\n  \"ticketingTypeId\": 0,\n  \"totalPayable\": 0,\n  \"wlFees\": 0\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "aeFees": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "ccFees": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "ticketPrice": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "ticketQuantity": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "ticketingTypeId": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "totalPayable": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "wlFees": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```