Paygic Docs
  • Introduction
  • Create Token
  • Payment Page - Beta
  • UPI Intent
  • UPI Collect
  • Status and CallBack
  • Wordpress Plugin
  • Reseller
    • Onboard Merchant
    • Onboard Static Merchant
    • Payment APIs
  • Get Fee Data
  • Merchant Balance
Powered by GitBook
On this page
  • Reseller Fee History API

Get Fee Data

This API endpoint fetches the reseller fee data for a given date or for the last week (Monday to Sunday)

PreviousPayment APIsNextMerchant Balance

Last updated 2 months ago

Reseller Fee History API

Parameters

  • (string): The date for which the reseller fee data is to be fetched. It can be a specific date in the format DD-MM-YYYY or the string "last-week" to fetch data for the last week.

  • (string): The reseller ID.

Endpoint - https://server.paygic.in/api/v2/reseller/getFeeData

Method - POST

Request Headers

  • Content-Type: application/json

  • Token: Reseller Token


await axios.post(
      "https://server.paygic.in/api/v2/reseller/getFeeData",
      {
        
        rid: "Your Reseller ID", //Example - PAYGIC
        date: "Your Account Password"; //should be "last-week" or "DD-MM-YEAR"
        
      },
    
    );
    
    //Response
     {
          "status": true,
          "statusCode": 200,
          "msg": "Reseller fee data fetched successfully",
          "data": [
            {
              "id": "string",
              "date": "string",
              "amount": "number",
              "counts": "number",
              "paygic": "number",
              "gst": "number",
              "balance": "number",
              "settlement": "number",
              "merchants": {
                "mid": {
                  "balance": "number",
                  "totalFee": "number",
                  "gst": "number",
                  "resellerFee": "number"
                }
              }
            }
          ]
        }
        
        //error response
         {
            "status": false,
            "statusCode": 400,
            "msg": "Please pass a valid date in DD-MM-YYYY format"
          }
          //or
          
          {
              "status": false,
              "statusCode": 404,
              "msg": "Reseller fee data not found for the given date"
            }

date
rid