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.eyJzdWIiOjYzLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTYyfQ.F4d44WIZKGPvGmeTo830u8TVlX8uq1x85YVJKr8s-TE
Host: example.org
Cookie: 

Route

GET /api/rest/admin/contractors/30

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/"299d636647d59eb58be416b630367552"
cache-control: max-age=0, private, must-revalidate
x-request-id: 022d51ba-d6de-492f-b6b1-c03c7607b608
x-runtime: 0.005492
content-length: 482

Status

200 OK

Body

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