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.eyJleHAiOjE3MzE1Nzg3NDYsInN1YiI6MTN9.GQ9J6tApwRleRxVV2VObzWTSpg39nMIq_N8nPbahYwc
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/"9eb398877e1eb28c0f8ec049496c1824"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: a33b4d7f-9261-4a30-beec-6b419dda8536
X-Runtime: 0.017473
Content-Length: 1181

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": "9e85e738-a26e-11ef-a008-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"
        },
        "data": {
          "type": "contractors",
          "id": "3"
        }
      },
      "timezone": {
        "links": {
          "self": "http://example.org/api/rest/admin/accounts/22/relationships/timezone",
          "related": "http://example.org/api/rest/admin/accounts/22/timezone"
        },
        "data": {
          "type": "timezones",
          "id": "1"
        }
      },
      "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"
        },
        "data": null
      }
    }
  }
}