Buscar Categorias por ID

Consultando Categorias por ID

Caso já saiba o ID da categoria e deseje consultar seus dados, informe o ID via GET na rota Url/segments/{segmentId}/categories/{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 Categorias.

Buscar Categorias por ID

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

Path Parameters

Name
Type
Description

segmentId

string

ID de Segmento

id

string

ID da Categoria

{
  "_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"
    }
  ]
}

Last updated

Was this helpful?