Skip to main content
< Back
Print

REST Service API for SAWS Tables (Prices, Stock, Channels & Complex Articles)

(Since connector version 1.17.0)

All SAWS tables can be read and altered via a REST Service API in the CRUD schema (Create/Read/Update/Delete). The following page contains all endpoints with example payloads.

This REST endpoint, together with all future REST endpoints, lies below admin/rest/scapiapp/. With that, the admin/rest/scchannelapp/ endpoint is officially deprecated and we recommend migrating your existing implementations to this newer version.

To utilize this REST service to its full extent, set your product number attribute in the SAWS settings.

Prices (admin/rest/scapiapp/price/)

MethodEndpointDescription
POSTprice/:productNumberCreates or updates existing prices of the product
PUTprice/:productNumberReplaces all prices of the product with the sent prices
GETprice/:productNumberGets all prices of the product
DELETEprice/:productNumberDeletes all prices of the product

Example payload

[
  {
    "Price": "19.00",
    "Currency": "EUR",
    "ValidFrom": "2022-03-02 10:22:39",
    "ValidTo": "0000-00-00 00:00:00",
    "PriceTyp": "EK",
    "PriceSubTyp": "EK2",
    "ChannelID": "BRITAIN",
    "AmountFrom": "0",
    "AmountTo": "0",
    "PriceUnit": "1.00",
    "Unit": "",
  },
  ...
]

Special Keys

:productNumberProduct number or external key of the product
filterAn optional filter can be added in the URL to filter the query e.g. ?filter[PriceTyp]=EK (Only for GET and DELETE) (Since 1.18.0)

Stock (admin/rest/scapiapp/stock/)

MethodEndpointDescription
POSTstock/:productNumberCreates or updates existing stock entries of the product
PUTstock/:productNumberReplaces all stock entries of the product with the sent stock entries
GETstock/:productNumberGets all stock entries of the product
DELETEstock/:productNumberDeletes all stock entries of the product

Example payload

[
  {
    "ExternalKey": "stock1",
    "Amount": "417",
    "VirtuellAmount": "0",
    "UseVirtuell": "0",
    "MinAmount": null,
    "ReserveAmount": null,
    "SendAmount": null,
    "OrderAmount": null,
    "NotifyAmount": null,
    "Unit": "",
    "StockKey": "EK_7841",
    "AreaKey": "EK_10254",
  },
  ...
]

Special Keys

:productNumberProduct number or external key of the product
StockKeyProduct number or external key of the PIM stock object
AreaKeyProduct number or external key of the PIM area object
filterAn optional filter can be added in the URL to filter the query e.g. ?filter[StockKey]=EK_7841 (Only for GET and DELETE) (Since 1.18.0)

Sales Channels (admin/rest/scapiapp/sales-channel/)

MethodEndpointDescription
POSTsales-channel/:productNumberCreates or updates existing sales channels of the product
PUTsales-channel/:productNumberReplaces all sales channels of the product with the sent sales channels
GETsales-channel/:productNumberGets all sales channels of the product
DELETEsales-channel/:productNumberDeletes all sales channels of the product

Example payload

[
  {
    "IsTemplate": "0",
    "ChannelID": "BRITAIN",
    "ChannelKeys": "EK_2246,EK_2920",
    "Status": "1",
    "ValidFrom": "0000-00-00 00:00:00",
    "ValidTo": "0000-00-00 00:00:00",
    "FirstDeliveryDate": "0000-00-00 00:00:00",
    "LastDeliveryDate": "0000-00-00 00:00:00",
  },
  ...
]

Special Keys

:productNumberProduct number or external key of the product
ChannelKeysComma separated list of external keys of the linked Contentserv channels
filterAn optional filter can be added in the URL to filter the query e.g. ?filter[ChannelID]=BRITAIN (Only for GET and DELETE) (Since 1.18.0)

Complex Articles (admin/rest/scapiapp/complex-article/)

MethodEndpointDescription
POSTcomplex-article/:productNumberCreates or updates existing complex articles of the product
PUTcomplex-article/:productNumberReplaces all complex articles of the product with the sent complex articles
GETcomplex-article/:productNumberGets all complex articles of the product
DELETEcomplex-article/:productNumberDeletes all complex articles of the product

Example payload

[
  {
    "VariantNumber": "PN_12764",
    "Quantity": "1",
    "ChangeableQuantity": "0",
    "IsDefault": "0",
    "IsDisabled": "0",
    "SortOrder": "0",
    "LinkTypeKey": "SET_COMPONENT"
  },
  ...
]

Special Keys

:productNumberProduct number or external key of the product
VariantNumberProduct number or external key of the connected variant product
LinkTypeKeyExternal key of the value range entry for the variant link type
filterAn optional filter can be added in the URL to filter the query e.g. ?filter[LinkTypeKey]=SET_COMPONENT (Only for GET and DELETE) (Since 1.18.0)

Single Complex Article Connections

MethodEndpointDescription
POSTcomplex-article/:productNumber/:variantNumber/:linkTypeKeyCreates or updates an existing complex articles entry of the product
PUTcomplex-article/:productNumber/:variantNumber/:linkTypeKeyReplaces a complex articles entry of the product with the sent complex articles entry
GETcomplex-article/:productNumber/:variantNumber/:linkTypeKeyGets a complex articles entry of the product
DELETEcomplex-article/:productNumber/:variantNumber/:linkTypeKeyDeletes a complex articles entry of the product

Example payload

{
  "Quantity": "888888",
  "ChangeableQuantity": "0",
  "IsDefault": "0",
  "IsDisabled": "0",
  "SortOrder": "0"
}

Special Keys

:productNumberProduct number or external key of the product
:variantNumberProduct number or external key of the connected variant product
:linkTypeKey (optional)External key of the value range entry for the variant link type
Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents