Get License Details

This API allows you to get the license details.

Request Type

  • GET

Request URL

https://campaigns.zoho.com/emailapi/v2/license

Content-Type

application/json

List of Response Body Attributes

ParametersData TypeDescription
license_detailsJSON ObjectContains the details of your license.
total_creditsIntegerTotal credits of your plan.
credits_remainingIntegerCredits remaining in your plan.
expiry_timeLongShows the time (in milliseconds) of expiry of your license.
planStringShows the plan name - PREPAID or POSTPAID.
responseJSON ObjectContains the response details of the API.
codeIntegerSuccess or failure code.
messageStringSuccess or failure message returned by the API.
errorsJSON ObjectContains the error details of the API such as 'code' and 'message'.
plan_typeStringIndicates the type of plan, which includes prepaid, postpaid, trial, or dormant

Sample Response - Success 1

Copied{

   "license_details": {

       "total_credits": 12000,

       "credits_remaining": 9984,

       "plan_type": "PREPAID",

         "plan": "Email API - Standard"

   },

   "response": {

       "code": 200801,

       "message": "Successfully obtained the license details"

   }

}

Sample Response - Success 2

Copied{

   "license_details": {

       "expiry_time": 1711087813000,

       "plan_type": "POSTPAID",

         "plan": "Email API - Pay after use",

       "credits_used": 9984

   },

   "response": {

       "code": 200801,

       "message": "Successfully obtained the license details"

   }

}

Sample Response - Failure

Copied{
  "errors": [
    {
      "code": 500801,
      "message": "An error occurred in License API"
    }
  ]
}