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.eyJzdWIiOjY1LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzcyMjEyMDAxfQ.x0bIWfhUb_8oOKatlIMa-VIMn-1fMSLoqysBACR95Ok
Host: example.org
Cookie: 

Route

GET /api/rest/admin/contractors/32

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/"8b27d4b5cef4eefd5bc950e53585b5c5"
cache-control: max-age=0, private, must-revalidate
x-request-id: 00403aa0-fe1f-4fcf-8de6-5724d9d5c740
x-runtime: 0.005525
content-length: 482

Status

200 OK

Body

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