Accounts API

get specific entry

GET /api/rest/admin/accounts/:id

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTAyNTQ3MjQsInN1YiI6MTN9.EiC9nYxw35Hvo_ltbfipjnEsfZfiMsuMnJlK66Bir4Y
Host: example.org
Cookie: 

Route

GET /api/rest/admin/accounts/22

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"da3cfe402caee6b403040372de731992"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 5dd8897a-d1a4-4aea-b351-f92e4423c341
X-Runtime: 0.016153
Content-Length: 1093

Status

200 OK

Body

{
  "data": {
    "id": "22",
    "type": "accounts",
    "links": {
      "self": "http://example.org/api/rest/admin/accounts/22"
    },
    "attributes": {
      "name": "account3",
      "balance": "0.0",
      "min-balance": "0.0",
      "max-balance": "0.0",
      "vat": "23.1",
      "balance-low-threshold": null,
      "balance-high-threshold": null,
      "send-balance-notifications-to": null,
      "destination-rate-limit": "0.3444",
      "max-call-duration": 36000,
      "external-id": null,
      "uuid": "c2e4bdf6-e07d-11ee-bf85-0242ac120003",
      "origination-capacity": 1,
      "termination-capacity": 2,
      "total-capacity": 5,
      "send-invoices-to": null,
      "invoice-period": null
    },
    "relationships": {
      "contractor": {
        "links": {
          "self": "http://example.org/api/rest/admin/accounts/22/relationships/contractor",
          "related": "http://example.org/api/rest/admin/accounts/22/contractor"
        }
      },
      "timezone": {
        "links": {
          "self": "http://example.org/api/rest/admin/accounts/22/relationships/timezone",
          "related": "http://example.org/api/rest/admin/accounts/22/timezone"
        }
      },
      "invoice-template": {
        "links": {
          "self": "http://example.org/api/rest/admin/accounts/22/relationships/invoice-template",
          "related": "http://example.org/api/rest/admin/accounts/22/invoice-template"
        }
      }
    }
  }
}