AddLinkedItems

Use the AddLinkedItems call to add linked items to database. The SKU and Relationship need to be specified in PlentySoapObject_AddLinkedItems. The request object must contain at least one of this object.

This call is available since SOAP version 110.
You can attach up to 50 linked items to (different) items per call.

AddLinkedItems Input

Field Type Occurrence Meaning Available since
CallItemsLimit Integer Optional Call items limit for own server 112
CrosssellingList ObjectOptional CrosssellingList 110
CrosssellingList.
PlentySoapObject_AddLinkedItems.
CrossItemSKU
String Optional CrossItemSKU 110
CrosssellingList.
PlentySoapObject_AddLinkedItems.
Relationship
String Optional Relationship between main item and its sub item 110
MainItemSKU String Optional MainItemSKU 110

AddLinkedItems Input schema

The box below lists all fields that could be included in the call request (version 112). To learn more about an individual field or its type, click its name in the box.

<PlentySoapRequest_AddLinkedItems> </PlentySoapRequest_AddLinkedItems>

AddLinkedItems Output

Field Type Occurrence Meaning Available since
ResponseMessages ObjectOptional Returns a list of error messages for the current call. 112
ResponseMessages.
PlentySoapResponseMessage.
Code
Integer Optional Code 105
ResponseMessages.
PlentySoapResponseMessage.
ErrorMessages
ObjectOptional Sub Messages 110
ResponseMessages.
PlentySoapResponseMessage.
ErrorMessages.
PlentySoapResponseSubMessage.
Key
String Optional Key 109
ResponseMessages.
PlentySoapResponseMessage.
ErrorMessages.
PlentySoapResponseSubMessage.
Value
String Optional Value 109
ResponseMessages.
PlentySoapResponseMessage.
IdentificationKey
String Optional Message 110
ResponseMessages.
PlentySoapResponseMessage.
IdentificationValue
String Optional Message 110
ResponseMessages.
PlentySoapResponseMessage.
SuccessMessages
ObjectOptional Sub Messages 110
ResponseMessages.
PlentySoapResponseMessage.
SuccessMessages.
PlentySoapResponseSubMessage.
Key
String Optional Key 109
ResponseMessages.
PlentySoapResponseMessage.
SuccessMessages.
PlentySoapResponseSubMessage.
Value
String Optional Value 109
ResponseMessages.
PlentySoapResponseMessage.
Warnings
ObjectOptional Sub Messages 110
ResponseMessages.
PlentySoapResponseMessage.
Warnings.
PlentySoapResponseSubMessage.
Key
String Optional Key 109
ResponseMessages.
PlentySoapResponseMessage.
Warnings.
PlentySoapResponseSubMessage.
Value
String Optional Value 109
Success Boolean Optional Has the value true or false, depending on whether a request worked. 112

AddLinkedItems Output schema

The box below lists all fields that could be included in the response call (version 112). To learn more about an individual field or its type, click its name in the box.

Identification Keys

(The dynamicValue stands for any parameter values that could be outputted.)

Key Value
MainItemSKU dynamicValue

Identification Output schema

The box below lists all identification fields that could be outputted in the call response (version 112). The dynamicValue stands for any parameter values that could be outputted. To learn more about an individual field or its type, click its name in the box.

Success messages

(The dynamicValue stands for any parameter values that could be outputted.)

Code Key Value Message Explanation
100 CrossItemSKU dynamicValue - Linked items added

Success Messages Output schema

The box below lists all success messages fields that could be outputted in the call response (version 112). The dynamicValue stands for any parameter values that could be outputted. To learn more about an individual field or its type, click its name in the box.

<SuccessMessages>
<item>
<Value>dynamicValue</Value>
<Key>CrossItemSKU</Key>
</item>
</Success>

Error messages

Code Key Value Message Explanation
810 Limit 50 Max 50 linked items Only 50 linked items can be added at the same time.
800 SKU (MainItem) Invalid parameter The value of entered parameter is not allowed
800 SKU (MainItem) Missing parameter Required parameter was not entered
800 SKU (CrossItem) Invalid parameter The value of entered parameter is not allowed
800 SKU (CrossItem) Missing parameter Required parameter was not entered
800 Add linked items error An error occurred while adding linked items

Error messages Output schema

The box below lists all error message fields that could be outputted in the call response (version 112). To learn more about an individual field or its type, click its name in the box.

<ErrorMessages>
<item> </item>
<item>
<Value>Invalid parameter</Value>
<Key>SKU (MainItem)</Key>
</item>
<item>
<Value>Missing parameter</Value>
<Key>SKU (MainItem)</Key>
</item>
<item>
<Value>Invalid parameter</Value>
<Key>SKU (CrossItem)</Key>
</item>
<item>
<Value>Missing parameter</Value>
<Key>SKU (CrossItem)</Key>
</item>
</ErrorMessages>

Warnings

For this call no warnings exist.

Warnings Output schema

For this call no warnings output schema exists.

Nach oben