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.eyJzdWIiOjE4LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzcyMjExOTk4fQ.qhhxhWWoN2G5mFDzlnBUK16sVhqPdGEUNZqfa0w6Tn0
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/"fb17029309e1aa68e77a88fc1ebef680"
cache-control: max-age=0, private, must-revalidate
x-request-id: 246df790-d143-42e1-8c67-352286511667
x-runtime: 0.010469
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": "485fddda-13fd-11f1-94d1-cacc5eb17c13",
      "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
      }
    }
  }
}