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.eyJzdWIiOjE4LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzkyNjE5Nzk5fQ.7YP387zd1vvWTbPDWf1MPbz4XAvhRsNyflx4bPEDOf8
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/"481800cbad4add411234e53932c31d97"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7795b696-2f11-4f4b-a051-89dfbccae8ea
x-runtime: 0.012568
content-length: 1019

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": "e5a4775e-cd98-11f1-acef-6a55a9c27822",
      "origination-capacity": null,
      "termination-capacity": null,
      "total-capacity": null,
      "send-invoices-to": null,
      "invoice-period-id": null,
      "timezone": "UTC",
      "currency": "USD"
    },
    "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
      }
    }
  }
}