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.eyJleHAiOjE3MzE1Nzg3NTIsInN1YiI6NzF9.RmEd3AYArb1_00pB4vNmxLodudaqzGdf5KIXD-P2mt0
Host: example.org
Cookie: 

Route

GET /api/rest/admin/contractors/55

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/"9f5967873907653432cc529818ae5181"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e625d958-073e-4b9e-aa9d-1d666d363776
X-Runtime: 0.013044
Content-Length: 484

Status

200 OK

Body

{
  "data": {
    "id": "55",
    "type": "contractors",
    "links": {
      "self": "http://example.org/api/rest/admin/contractors/55"
    },
    "attributes": {
      "name": "contractor55",
      "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/55/relationships/smtp-connection",
          "related": "http://example.org/api/rest/admin/contractors/55/smtp-connection"
        },
        "data": null
      }
    }
  }
}