> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mastermindcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SalesCatalogServiceImpl

> Calling public service methods through the REST API: salesCatalogServiceImpl

<ResponseField name="beanId" type="string">
  The Spring bean identifier containing the service being called.

  salesCatalogServiceImpl
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Bean scope. Use PROTOTYPE for service calls.
</ResponseField>

<ResponseField name="functionName" type="string">
  The public service method name shown in the signature below.
</ResponseField>

<ResponseField name="args" type="object[]">
  The method argument array. Each argument is passed as an object with index 0, 1, and so on; the value must match the Java parameter type.
</ResponseField>

## Headers

```http theme={null}
POST /api/v1/bean/request
Content-Type: application/json
Lang-Context: en
Site-Context: my-site
Authorization: Bearer <token>
```

Send `Lang-Context` and `Site-Context` with every request. For protected methods, send the JWT in the `Authorization` header as `Bearer <token>`.

**Access:** ADMIN. **Bearer Token:** conditional for USER/ADMIN.

* GUEST — unauthenticated users; only whitelist services are available.
* USER — authentication is required; methods with USER checks are available.
* ADMIN — full access to public methods of all services.
* If a method checks a role internally, GUEST may receive null.

## Methods

<ResponseField name="getPaginationUnits" type="Deque<Map<String, Object>>">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Passed through `args[0].0`. |

  ### getPaginationUnits

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "getPaginationUnits",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="searchUnits" type="LinkedHashSet<UnitDTO>">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Passed through `args[0].0`. |

  ### searchUnits

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "searchUnits",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="searchUnitsPaged" type="Page<Unit>">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Passed through `args[0].0`. |

  ### searchUnitsPaged

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "searchUnitsPaged",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getAllCurrencies" type="List<CurrencyItem>">
  | Argument | Type | Description                            |
  | -------- | ---- | -------------------------------------- |
  | —        | —    | This method does not accept arguments. |

  ### getAllCurrencies

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "getAllCurrencies",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="getCurrencyByCode" type="CurrencyItem">
  | Argument | Type     | Description                 |
  | -------- | -------- | --------------------------- |
  | `code`   | `String` | Passed through `args[0].0`. |

  ### getCurrencyByCode

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "getCurrencyByCode",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getSellerSkuFromChatTopic" type="SellerSKU">
  | Argument | Type     | Description                 |
  | -------- | -------- | --------------------------- |
  | `topic`  | `String` | Passed through `args[0].0`. |

  ### getSellerSkuFromChatTopic

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "getSellerSkuFromChatTopic",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getCountOfSellerSkusBySeller" type="Map<String,String>">
  | Argument   | Type     | Description                 |
  | ---------- | -------- | --------------------------- |
  | `sellerId` | `String` | Passed through `args[0].0`. |

  ### getCountOfSellerSkusBySeller

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "getCountOfSellerSkusBySeller",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getCountOfSellerSkus" type="Map<String, String>">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Passed through `args[0].0`. |

  ### getCountOfSellerSkus

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "getCountOfSellerSkus",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="createUnit" type="Optional<Unit>">
  | Argument    | Type                            | Description                 |
  | ----------- | ------------------------------- | --------------------------- |
  | `unitAsMap` | `LinkedHashMap<String, Object>` | Passed through `args[0].0`. |

  ### createUnit

  Example JSON request object:

  ```json theme={null}
  {
      "id":  null,
      "type":  null,
      "name":  null,
      "countPerUnitSuffix":  null,
      "minOrderSuffix":  null,
      "quantitySuffix":  null,
      "searchTerms":  null,
      "fallIntoSellerSKUs":  null,
      "translations":  null
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "createUnit",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="addPackageItemToSellerSku" type="SellerSKU">
  | Argument       | Type                            | Description                 |
  | -------------- | ------------------------------- | --------------------------- |
  | `sellerSkuId`  | `String`                        | Passed through `args[0].0`. |
  | `packageAsMap` | `LinkedHashMap<String, Object>` | Passed through `args[1].1`. |

  ### addPackageItemToSellerSku

  Example JSON request object:

  ```json theme={null}
  {
      "id":  null,
      "countPerUnit":  0,
      "minOrder":  0,
      "quantity":  0,
      "lockedQuantity":  0,
      "embeddedSellerSKU":  null
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "addPackageItemToSellerSku",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="removePackageItemFromSellerSku" type="void">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `sellerSkuId` | `String` | Passed through `args[0].0`. |
  | `packageId`   | `String` | Passed through `args[1].1`. |

  ### removePackageItemFromSellerSku

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "removePackageItemFromSellerSku",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="removeFileResources" type="void">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `sellerSkuId` | `String` | Passed through `args[0].0`. |

  ### removeFileResources

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "removeFileResources",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="saveSellerSkuAsDraft" type="SellerSKU">
  | Argument         | Type                            | Description                 |
  | ---------------- | ------------------------------- | --------------------------- |
  | `sellerSkuAsMap` | `LinkedHashMap<String, Object>` | Passed through `args[0].0`. |

  ### saveSellerSkuAsDraft

  Example JSON request object:

  ```json theme={null}
  {
      "id":  null,
      "type":  null,
      "geneticType":  null,
      "name":  null,
      "packageItem":  null,
      "inventory":  null,
      "description":  null,
      "additionalTextInfo":  null,
      "price":  null,
      "currencyItem":  null,
      "countryOfOrigin":  null,
      "countryOfSeller":  null,
      "productsRef":  null,
      "expireDate":  null,
      "durabilityDate1":  null,
      "durabilityDate2":  null,
      "incoTerm":  null,
      "deliveryType":  null,
      "unit":  null,
      "imageURLs":  null,
      "keywords":  null,
      "searchTerms":  null,
      "embeddedSku":  null,
      "embeddedSeller":  null,
      "orderedItems":  null,
      "packagedItems":  null,
      "attributeValues":  null,
      "logicalTypeFilters":  null,
      "listTypeFilters":  null,
      "simpleTypeFilters":  null,
      "rangeFilters":  null,
      "numericFilters":  null,
      "documentURLs":  null,
      "isRandomGenerated":  false,
      "isPublishedForSale":  false,
      "score":  0
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "saveSellerSkuAsDraft",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="saveSellerSKU" type="SellerSKU">
  | Argument         | Type                            | Description                 |
  | ---------------- | ------------------------------- | --------------------------- |
  | `sellerSkuAsMap` | `LinkedHashMap<String, Object>` | Passed through `args[0].0`. |

  ### saveSellerSKU

  Example JSON request object:

  ```json theme={null}
  {
      "id":  null,
      "type":  null,
      "geneticType":  null,
      "name":  null,
      "packageItem":  null,
      "inventory":  null,
      "description":  null,
      "additionalTextInfo":  null,
      "price":  null,
      "currencyItem":  null,
      "countryOfOrigin":  null,
      "countryOfSeller":  null,
      "productsRef":  null,
      "expireDate":  null,
      "durabilityDate1":  null,
      "durabilityDate2":  null,
      "incoTerm":  null,
      "deliveryType":  null,
      "unit":  null,
      "imageURLs":  null,
      "keywords":  null,
      "searchTerms":  null,
      "embeddedSku":  null,
      "embeddedSeller":  null,
      "orderedItems":  null,
      "packagedItems":  null,
      "attributeValues":  null,
      "logicalTypeFilters":  null,
      "listTypeFilters":  null,
      "simpleTypeFilters":  null,
      "rangeFilters":  null,
      "numericFilters":  null,
      "documentURLs":  null,
      "isRandomGenerated":  false,
      "isPublishedForSale":  false,
      "score":  0
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "saveSellerSKU",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="saveUnit" type="Unit">
  | Argument    | Type                            | Description                 |
  | ----------- | ------------------------------- | --------------------------- |
  | `unitAsMap` | `LinkedHashMap<String, Object>` | Passed through `args[0].0`. |

  ### saveUnit

  Example JSON request object:

  ```json theme={null}
  {
      "id":  null,
      "type":  null,
      "name":  null,
      "countPerUnitSuffix":  null,
      "minOrderSuffix":  null,
      "quantitySuffix":  null,
      "searchTerms":  null,
      "fallIntoSellerSKUs":  null,
      "translations":  null
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "saveUnit",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getAllSellerTariff" type="Map<String, String>">
  | Argument | Type | Description                            |
  | -------- | ---- | -------------------------------------- |
  | —        | —    | This method does not accept arguments. |

  ### getAllSellerTariff

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "getAllSellerTariff",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="removeSellerSkuAndClean" type="void">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `sellerSkuId` | `String` | Passed through `args[0].0`. |

  ### removeSellerSkuAndClean

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "removeSellerSkuAndClean",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="removeSellerSkusByIds" type="void">
  | Argument        | Type                | Description                 |
  | --------------- | ------------------- | --------------------------- |
  | `sellerSkusIds` | `ArrayList<String>` | Passed through `args[0].0`. |

  ### removeSellerSkusByIds

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "removeSellerSkusByIds",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="createSellerSKU" type="Optional<SellerSKU>">
  | Argument         | Type                            | Description                 |
  | ---------------- | ------------------------------- | --------------------------- |
  | `sellerSkuAsMap` | `LinkedHashMap<String, Object>` | Passed through `args[0].0`. |

  ### createSellerSKU

  Example JSON request object:

  ```json theme={null}
  {
      "id":  null,
      "type":  null,
      "geneticType":  null,
      "name":  null,
      "packageItem":  null,
      "inventory":  null,
      "description":  null,
      "additionalTextInfo":  null,
      "price":  null,
      "currencyItem":  null,
      "countryOfOrigin":  null,
      "countryOfSeller":  null,
      "productsRef":  null,
      "expireDate":  null,
      "durabilityDate1":  null,
      "durabilityDate2":  null,
      "incoTerm":  null,
      "deliveryType":  null,
      "unit":  null,
      "imageURLs":  null,
      "keywords":  null,
      "searchTerms":  null,
      "embeddedSku":  null,
      "embeddedSeller":  null,
      "orderedItems":  null,
      "packagedItems":  null,
      "attributeValues":  null,
      "logicalTypeFilters":  null,
      "listTypeFilters":  null,
      "simpleTypeFilters":  null,
      "rangeFilters":  null,
      "numericFilters":  null,
      "documentURLs":  null,
      "isRandomGenerated":  false,
      "isPublishedForSale":  false,
      "score":  0
  }
  ```

  Request:

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "createSellerSKU",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="removeUnitAndClean" type="void">
  | Argument | Type     | Description                 |
  | -------- | -------- | --------------------------- |
  | `unitId` | `String` | Passed through `args[0].0`. |

  ### removeUnitAndClean

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "removeUnitAndClean",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="removeUnitsByIds" type="void">
  | Argument   | Type                | Description                 |
  | ---------- | ------------------- | --------------------------- |
  | `unitsIds` | `ArrayList<String>` | Passed through `args[0].0`. |

  ### removeUnitsByIds

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "removeUnitsByIds",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="publishForSale" type="SellerSKU">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `sellerSkuId` | `String` | Passed through `args[0].0`. |

  ### publishForSale

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "publishForSale",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="withdrawFromSale" type="SellerSKU">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `sellerSkuId` | `String` | Passed through `args[0].0`. |

  ### withdrawFromSale

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "withdrawFromSale",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="changeType" type="SellerSKU">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `sellerSkuId` | `String` | Passed through `args[0].0`. |
  | `type`        | `String` | Passed through `args[1].1`. |

  ### changeType

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "changeType",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="duplicate" type="SellerSKU">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `sellerSkuId` | `String` | Passed through `args[0].0`. |

  ### duplicate

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "duplicate",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="getSellerSkuDocumentUrls" type="List<Attachment>">
  | Argument      | Type     | Description                 |
  | ------------- | -------- | --------------------------- |
  | `sellerSkuId` | `String` | Passed through `args[0].0`. |

  ### getSellerSkuDocumentUrls

  ```json theme={null}
  {
    "beanId": "salesCatalogServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "getSellerSkuDocumentUrls",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>
