Get Balance

Description

Returns the prepaid balance as well as the available credit on your account.

Request

HTTP Method: GET

URI Path: /v3/balance

Example

http

GET /v3/balance HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]

curl

curl -i -X GET https://api.didww.com/v3/balance -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"

response

HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

{
  "data": {
    "id": "94441ce5-86fa-47bd-8ce7-b5e267d0603a",
    "type": "balances",
    "attributes": {
      "balance": "50.00",
      "credit": "10.00",
      "total_balance": "60.00"
    }
  },
  "meta": {
    "api_version": "2017-09-18"
  }
}

Other Responses

Code

Success

Description

401

No

Unauthorized