Credit Balance

Get Credit Balance

Method: Get #

https://api.smsq.global/api/v2/Balance?ApiKey={ApiKey}&ClientId={ClientId}
Parameter NameDescriptionType
ApiKeyApiKey used for authentication purpose and pass this parameter in URL encoded format.String
ClientIdClientId used for authentication purpose and pass this parameter in URL encoded format.String

Headers #

Content-Type: application / json or application / xml
Type: json or xml

Jquery API Call #

<script>
    $(function () {
        $.ajax({
            type: "GET",
            url: "https://api.smsq.global/api/v2/Balance?ApiKey={ApiKey}&ClientId={ClientId}",
            contentType: "application/json ",
            dataType: 'json ',
            success: function (response) {                
            }
        });
    });
</script>

Json Response #

{
    "ErrorCode": 0,
    "ErrorDescription": "Success",
    "Data": [
        {
            "PluginType": "SMS",
            "Credits": €0.6991
        }
    ]
}

Xml Response #

<ResponseModelOfListOfBalanceModel>
  <ErrorCode>0</ErrorCode>
  <ErrorDescription>Success</ErrorDescription>
  <Data>
      <BalanceModel>
          <PluginType>SMS</Type>
          <Credits>€0.6991</Credit>
      </BalanceModel>
  </Data>
</ResponseModelOfListOfBalanceModel>