This page was automatically generated from tracezilla’s Swagger API documentation 2026-07-17

GET /skus/{skuId}/subs

Get sub logic related to SKU

Description

Returns sub logic

Parameters (path)

Name Required Description Values
skuId required Target sku.  

Parameters (query)

Name Required Description Values
include optional The resources that can be included in this request, delimited by a comma: attributes, translations, none_traceable_stock_as_of, quantity_declarations, tags, first_tag_by_class, certification_bodies, nutrition, descriptions, codings, dimensions, partner_codes, masters, subs, retail_prices, files_count  

Responses

200

successful operation

Response content JSON schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  "properties": {
    "type": "array",
    "items": {
      "properties": {
        "description": "If any smart logic should be applied when the sku is added to an outbound order",
        "type": "string",
        "format": "string",
        "enum": [
          "priority",
          "bundle"
        ],
        "example": "priority"
      },
      "type": "object"
    }
  },
  "type": "object"
}

406

not acceptable

500

internal server error

PUT /skus/{skuId}/subs

Update sub logic for Sku

Description

Update the specified resource in storage.

Parameters (path)

Name Required Description Values
skuId required Target sku.  

Request body

Description

Sub data.

Required

This parameter is required.

Request body JSON schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  "properties": {
    "type": "array",
    "items": {
      "properties": {
        "description": "If any smart logic should be applied when the sku is added to an outbound order",
        "type": "string",
        "format": "string",
        "enum": [
          "priority",
          "bundle"
        ],
        "example": "priority"
      },
      "type": "object"
    }
  },
  "type": "object"
}

Responses

201

successful operation

Response content JSON schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  "properties": {
    "sub_logic": {
      "format": "string",
      "enum": [
        "priority",
        "bundle",
        "none"
      ],
      "example": "priority"
    },
    "subs": {
      "type": "array",
      "items": {
        "properties": {
          "description": "If any smart logic should be applied when the sku is added to an outbound order",
          "type": "string",
          "format": "string",
          "enum": [
            "priority",
            "bundle"
          ],
          "example": "priority"
        },
        "type": "object"
      }
    }
  },
  "type": "object"
}

403

Unauthorized request

406

not acceptable

422

Has validation errors

500

Internal server error