---
updatedAt: 2025-04-30T20:26:43.000Z
agentTools:
  projectIndex: https://developers.edu-nation.net/llms.txt
---

# payment_tags_statistics

Get payment statistics based on your tagged fees: gross amount, discounts, deductions, net amount, payments, payment percentage and balance.
You can use the <b>"additional_fields"</b> parameter to include more fields in the JSON results. Check the /fields service to explore the additional fields that you can add.  
Example:
```json Example
{
"additional_fields":"customField_35,idnumber,countryName"
}
```

<b>Rate Limit: </b>HEAVY

<b>Permission needed: </b>Financial Reports (#400)

<b>Reference Code: </b>srv_330

# OpenAPI definition

````json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Finance",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://gw.edu-nation.net/api"
    }
  ],
  "paths": {
    "/payment_tags_statistics": {
      "post": {
        "tags": [
          "Payment tags statistics"
        ],
        "summary": "payment_tags_statistics",
        "description": "Get payment statistics based on your tagged fees: gross amount, discounts, deductions, net amount, payments, payment percentage and balance.\r\nYou can use the <b>\"additional_fields\"</b> parameter to include more fields in the JSON results. Check the /fields service to explore the additional fields that you can add.  \r\nExample:\r\n```json Example\r\n{\r\n\"additional_fields\":\"customField_35,idnumber,countryName\"\r\n}\r\n```\r\n\r\n<b>Rate Limit: </b>HEAVY\r\n\r\n<b>Permission needed: </b>Financial Reports (#400)\r\n\r\n<b>Reference Code: </b>srv_330",
        "parameters": [
          {
            "name": "client_secret",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "year_id",
                  "date"
                ],
                "type": "object",
                "properties": {
                  "year_id": {
                    "type": "integer",
                    "description": "School year id"
                  },
                  "date": {
                    "type": "string",
                    "description": "Date\r\n<b>Format:</b> yyyy-MM-dd",
                    "default": "0"
                  },
                  "payments": {
                    "type": "string",
                    "description": "Payments\r\nNumber range value.\r\n<b>Format:</b> Comma separated two numbers:-100,100",
                    "default": ""
                  },
                  "balance": {
                    "type": "string",
                    "description": "Balance\r\nNumber range value.\r\n<b>Format:</b> Comma separated two numbers:-100,100",
                    "default": ""
                  },
                  "additional_fields": {
                    "type": "string",
                    "description": "Include more fields in the JSON results. Check the /fields service to explore the additional fields that you can add.\r\n<b>Format:</b> {\"additional_fields\":\"customField_35,idnumber,countryName\"}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "typeName": {
                      "type": "string",
                      "description": "Fee type",
                      "format": ""
                    },
                    "fees": {
                      "type": "integer",
                      "description": "Gross",
                      "format": ""
                    },
                    "discounts": {
                      "type": "integer",
                      "description": "Discounts",
                      "format": ""
                    },
                    "payments": {
                      "type": "integer",
                      "description": "Payments",
                      "format": ""
                    },
                    "balance": {
                      "type": "integer",
                      "description": "Balance",
                      "format": ""
                    },
                    "deductions": {
                      "type": "integer",
                      "description": "Deductions",
                      "format": ""
                    },
                    "customField": {
                      "type": "string",
                      "description": "Custom field<br/>Use the <b>additional_fields</b> parameter to include custom fields in the  JSON results, using the following format: cusomField_{CustomFieldId}, i.e. customField_123",
                      "format": ""
                    },
                    "paymentPercentage": {
                      "type": "integer",
                      "description": "Paid%",
                      "format": ""
                    },
                    "netAmount": {
                      "type": "integer",
                      "description": "Net Amount",
                      "format": ""
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "Message": {
                      "type": "string",
                      "example": "string"
                    },
                    "Success": {
                      "type": "boolean",
                      "example": "false"
                    },
                    "StatusCode": {
                      "type": "integer",
                      "example": "404"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\"",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "Bearer": [
        "Bearer"
      ]
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
````