Contractors API

get specific entry

GET /api/rest/admin/contractors/:id

Request

Headers

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

Route

GET /api/rest/admin/contractors/33

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/"4f91659c46a878c674362e486e870b39"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: d723042d-c15e-4abe-8066-df78b4c45fb3
X-Runtime: 0.009724
Content-Length: 472

Status

200 OK

Body

{
  "data": {
    "id": "33",
    "type": "contractors",
    "links": {
      "self": "http://example.org/api/rest/admin/contractors/33"
    },
    "attributes": {
      "name": "contractor33",
      "enabled": true,
      "vendor": true,
      "customer": false,
      "description": null,
      "address": null,
      "phones": null,
      "external-id": null
    },
    "relationships": {
      "smtp-connection": {
        "links": {
          "self": "http://example.org/api/rest/admin/contractors/33/relationships/smtp-connection",
          "related": "http://example.org/api/rest/admin/contractors/33/smtp-connection"
        }
      }
    }
  }
}