Buscar Produtos por ID

Consultando Produtos por ID

Caso já saiba o ID do produto e deseje consultar seus dados, informe o ID via GET na rota Url/segments/{segmentId}/products/{id}.

O SegmentID deverá ser informado, saiba mais em Login via API. O uso de seu Bearer Token também será necessário.

Para obter o ID da categoria, veja Listar Produtos.

Buscar Categorias por ID

GET {Url}/segments/{segmentId}/categories/{id}

Path Parameters

Name
Type
Description

segmentId

string

ID de Segmento

id

string

ID do Produto

{
  "_id": "string",
  "createdAt": "2020-01-01T00:00:00Z",
  "updatedAt": "2020-01-01T00:00:00Z",
  "segment": "string",
  "sku": "string",
  "companies": [
    {
      "_id": "string",
      "createdAt": "2020-01-01T00:00:00Z",
      "updatedAt": "2020-01-01T00:00:00Z",
      "segment": "string",
      "type": "private",
      "document": "string",
      "name": "string",
      "tag": "string",
      "logoUrl": "string",
      "crtId": "string",
      "addresses": [
        {
          "_id": "string",
          "country": "string",
          "state": "string",
          "city": "string",
          "neighborhood": "string",
          "street": "string",
          "number": "string",
          "complement": "string",
          "postalCode": "string"
        }
      ],
      "contacts": [
        {
          "contact": "string",
          "type": "whatsapp"
        }
      ],
      "integration": {
        "praNotas": {
          "authorization": "string",
          "homologation": true,
          "certificate": "string",
          "status": "string",
          "count": 0,
          "serie": "string",
          "csc": "string",
          "cscId": "string"
        },
        "pagaRapido": {
          "authorization": "string",
          "subscription": "string"
        },
        "praSaques": {
          "token": "string"
        }
      },
      "activityBranch": {
        "_id": "string",
        "name": "string",
        "examples": "string",
        "value": "retail"
      },
      "stockSettings": {
        "stockLocalDevice": {
          "_id": "string",
          "createdAt": "2020-01-01T00:00:00Z",
          "updatedAt": "2020-01-01T00:00:00Z",
          "name": "string",
          "company": null,
          "acronym": "string",
          "segment": "string"
        },
        "stockLocalCatalog": {
          "_id": "string",
          "createdAt": "2020-01-01T00:00:00Z",
          "updatedAt": "2020-01-01T00:00:00Z",
          "name": "string",
          "company": null,
          "acronym": "string",
          "segment": "string"
        }
      }
    }
  ],
  "additionalCategories": [
    {
      "name": "string",
      "systemCode": "string",
      "minQuantity": 0,
      "maxQuantity": 0,
      "additionals": [
        {
          "name": "string",
          "description": "string",
          "systemCode": "string",
          "price": 0,
          "minQuantity": 0,
          "maxQuantity": 0,
          "status": "active"
        }
      ]
    }
  ],
  "categoryId": "string",
  "category": {
    "_id": "string",
    "createdAt": "2020-01-01T00:00:00Z",
    "updatedAt": "2020-01-01T00:00:00Z",
    "companies": [
      {
        "_id": "string",
        "createdAt": "2020-01-01T00:00:00Z",
        "updatedAt": "2020-01-01T00:00:00Z",
        "segment": "string",
        "type": "private",
        "document": "string",
        "name": "string",
        "tag": "string",
        "logoUrl": "string",
        "crtId": "string",
        "addresses": [
          {
            "_id": "string",
            "country": "string",
            "state": "string",
            "city": "string",
            "neighborhood": "string",
            "street": "string",
            "number": "string",
            "complement": "string",
            "postalCode": "string"
          }
        ],
        "contacts": [
          {
            "contact": "string",
            "type": "whatsapp"
          }
        ],
        "integration": {
          "praNotas": {
            "authorization": "string",
            "homologation": true,
            "certificate": "string",
            "status": "string",
            "count": 0,
            "serie": "string",
            "csc": "string",
            "cscId": "string"
          },
          "pagaRapido": {
            "authorization": "string",
            "subscription": "string"
          },
          "praSaques": {
            "token": "string"
          }
        },
        "activityBranch": {
          "_id": "string",
          "name": "string",
          "examples": "string",
          "value": "retail"
        },
        "stockSettings": {
          "stockLocalDevice": {
            "_id": "string",
            "createdAt": "2020-01-01T00:00:00Z",
            "updatedAt": "2020-01-01T00:00:00Z",
            "name": "string",
            "company": null,
            "acronym": "string",
            "segment": "string"
          },
          "stockLocalCatalog": {
            "_id": "string",
            "createdAt": "2020-01-01T00:00:00Z",
            "updatedAt": "2020-01-01T00:00:00Z",
            "name": "string",
            "company": null,
            "acronym": "string",
            "segment": "string"
          }
        }
      }
    ],
    "segment": "string",
    "name": "string",
    "systemCode": "string",
    "categoryId": "string",
    "iconUrl": "string",
    "subcategories": [],
    "status": "active",
    "salesChannelCategories": [
      {
        "appConfiguration": {},
        "salesChannelCategory": {
          "_id": "string",
          "createdAt": "2020-01-01T00:00:00Z",
          "updatedAt": "2020-01-01T00:00:00Z",
          "externalId": "string",
          "name": "string",
          "app": "string",
          "picture": "string",
          "previousCategories": [],
          "childrens": [],
          "customFields": []
        },
        "externalId": "string"
      }
    ]
  },
  "name": "string",
  "description": "string",
  "images": [
    "string"
  ],
  "price": 0,
  "printToken": true,
  "notPrintToken": true,
  "unitType": {
    "_id": "string",
    "name": "string",
    "abbreviation": "string"
  },
  "gtin": "string",
  "ncm": {
    "_id": "string",
    "code": "string",
    "description": "string",
    "cestId": "string"
  },
  "cest": {
    "_id": "string",
    "name": "string",
    "code": "string"
  },
  "taxationRule": {
    "_id": "string",
    "createdAt": "2020-01-01T00:00:00Z",
    "updatedAt": "2020-01-01T00:00:00Z",
    "name": "string",
    "segment": "string",
    "originId": "string",
    "cfopId": "string",
    "cstIcmsId": "string",
    "cstPisId": "string",
    "cstCofinsId": "string",
    "cstIpiId": "string",
    "cstIssId": "string",
    "aliqConfins": 0,
    "aliqPis": 0,
    "aliquoteCgsn53": 0,
    "csll": 0,
    "inss": 0,
    "ir": 0,
    "iss": 0,
    "mvaPerState": [
      "string"
    ],
    "tributes": [
      "string"
    ],
    "status": "active"
  },
  "productEnvironments": [
    "string"
  ],
  "picture": "string",
  "status": "active",
  "stockLocals": [
    {
      "_id": "string",
      "stockLocal": "string",
      "minQuantity": 0,
      "maxQuantity": 0
    }
  ],
  "dimensions": {
    "width": 0,
    "height": 0,
    "depth": 0,
    "weight": 0
  },
  "salesChannels": [
    {
      "company": {
        "_id": "string",
        "createdAt": "2020-01-01T00:00:00Z",
        "updatedAt": "2020-01-01T00:00:00Z",
        "segment": "string",
        "type": "private",
        "document": "string",
        "name": "string",
        "tag": "string",
        "logoUrl": "string",
        "crtId": "string",
        "addresses": [
          {
            "_id": "string",
            "country": "string",
            "state": "string",
            "city": "string",
            "neighborhood": "string",
            "street": "string",
            "number": "string",
            "complement": "string",
            "postalCode": "string"
          }
        ],
        "contacts": [
          {
            "contact": "string",
            "type": "whatsapp"
          }
        ],
        "integration": {
          "praNotas": {
            "authorization": "string",
            "homologation": true,
            "certificate": "string",
            "status": "string",
            "count": 0,
            "serie": "string",
            "csc": "string",
            "cscId": "string"
          },
          "pagaRapido": {
            "authorization": "string",
            "subscription": "string"
          },
          "praSaques": {
            "token": "string"
          }
        },
        "activityBranch": {
          "_id": "string",
          "name": "string",
          "examples": "string",
          "value": "retail"
        },
        "stockSettings": {
          "stockLocalDevice": {
            "_id": "string",
            "createdAt": "2020-01-01T00:00:00Z",
            "updatedAt": "2020-01-01T00:00:00Z",
            "name": "string",
            "company": null,
            "acronym": "string",
            "segment": "string"
          },
          "stockLocalCatalog": {
            "_id": "string",
            "createdAt": "2020-01-01T00:00:00Z",
            "updatedAt": "2020-01-01T00:00:00Z",
            "name": "string",
            "company": null,
            "acronym": "string",
            "segment": "string"
          }
        }
      },
      "app": {},
      "status": "active",
      "price": 0,
      "promotionalPrice": 0
    }
  ],
  "pictures": [
    "string"
  ],
  "brand": {
    "_id": "string",
    "name": "string",
    "companies": [
      {
        "_id": "string",
        "name": "string"
      }
    ],
    "picture": "string",
    "status": "active"
  },
  "stocks": [
    {}
  ]
}

Last updated

Was this helpful?