v1

latestOpenAPI 3.0.32026-07-24198357534.7 KB
Documents

Get a specific document

get/documents/{code}

Path parameters

codestring required

Code of the element to retrieve

Response

Success

idinteger
codestring
typestring
document_typestring
activeboolean
created_atstring datetime
updated_atstring datetime

Example response

{
  "id": 40,
  "code": "t_shirt_blue",
  "type": "document",
  "document_type": "product",
  "active": true,
  "created_at": "2019-01-21 00:45:09",
  "updated_at": "2019-03-12 14:32:00",
  "completeness": [
    {
      "code": {
        "locale": {
          "ratio": 54
        }
      }
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://MYPIM.quable.com/api_1.php/xxx"
    }
  ],
  "variants": [
    {
      "id": 467,
      "code": "EG5657868-23",
      "active": true,
      "links": [
        {
          "rel": "self",
          "href": "https://MYPIM.quable.com/api_1.php/xxx"
        }
      ]
    }
  ],
  "medias": [
    {
      "id": 10,
      "code": "14365241GOR-blue-01",
      "active": true,
      "links": [
        {
          "rel": "self",
          "href": "https://MYPIM.quable.com/api_1.php/xxx"
        }
      ]
    }
  ],
  "parent_documents": [
    {
      "id": 89786,
      "code": "t-shirt-red",
      "type": "document",
      "document_type": "product",
      "active": true,
      "created_at": "2019-04-23 18:56:00",
      "updated_at": "2019-04-23 18:56:00",
      "links": [
        {
          "rel": "self",
          "href": "https://MYPIM.quable.com/api_1.php/xxx"
        }
      ]
    }
  ],
  "target_documents": [
    {
      "id": 89786,
      "code": "t-shirt-red",
      "type": "document",
      "document_type": "product",
      "active": true,
      "created_at": "2019-04-23 18:56:00",
      "updated_at": "2019-04-23 18:56:00",
      "links": [
        {
          "rel": "self",
          "href": "https://MYPIM.quable.com/api_1.php/xxx"
        }
      ]
    }
  ]
}