Accounts API

get specific entry

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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE4LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTYwfQ.bSRjD1kh6Bq1ZZS_ogxR4mUKJnsDdoaTKyAIjHrp5xU
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-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"0e08fe4872f40fd2f97b567782f1693b"
cache-control: max-age=0, private, must-revalidate
x-request-id: d8b86d00-3c07-43f4-953f-c1afd2d8a976
x-runtime: 0.010575
content-length: 1002

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": 3,
      "uuid": "fd7c9574-e7d8-11f0-bf40-0a63caf27539",
      "origination-capacity": null,
      "termination-capacity": null,
      "total-capacity": null,
      "send-invoices-to": null,
      "invoice-period-id": null,
      "timezone": "UTC"
    },
    "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"
        }
      },
      "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
      }
    }
  }
}