Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display
alltrue
styleh3
pageSuperb Cloud API

GET /credit

Gets current credit balance

Sections:

Table of Contents
maxLevel4
minLevel2
includeResponse.*|JSON.*|XML.*|Explanation.*

Response Parameters

current_credit - Current credit amount


JSON Request example

Code Block
languagebash
themeRDark
 curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url <api_url>/credit.json

JSON Response

Code Block
 {
    "current_credit": "50.00"
}

XML Request example

Code Block
languagebash
themeRDark
  curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url <api_url>/credit.xml






XML Response example

Code Block
languagexml
  <?xml version="1.0"?>
<credit>
    <current_credit>50.00</current_credit>
</credit>