Contractors API

get specific entry

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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjY5LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzkyNjE5ODAzfQ.O5nZSXY92Ii0Du2XftlSxf7PPItYSeErrS8SqadzZ78
Host: example.org
Cookie: 

Route

GET /api/rest/admin/contractors/35

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/"108d45004ca9d4a6b88e7bad9235415e"
cache-control: max-age=0, private, must-revalidate
x-request-id: 96b2e87b-8d6b-4656-82b4-e993a942fcac
x-runtime: 0.009521
content-length: 482

Status

200 OK

Body

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