Przejdź do głównej zawartości

Utwórz powiązanie produktu z integracją

POST
/api/product-links/v2/product-links
curl --request POST \
--url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/product-links/v2/product-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "productId": 1, "externalProductId": "example", "externalVariantId": "example", "externalConnectionId": "example", "connectionId": 1 }'

Łączy produkt z katalogu z produktem lub ofertą w zewnętrznej integracji (np. sklepie, marketplace). Odpowiada powiązaniom produktów (links) w BaseLinker.

object
productId
integer format: int64
externalProductId
string
nullable
externalVariantId
string
nullable
externalConnectionId
string
nullable
connectionId
integer format: int64
Examplegenerated
{
"productId": 1,
"externalProductId": "example",
"externalVariantId": "example",
"externalConnectionId": "example",
"connectionId": 1
}

Created

object
id
integer format: int64
productId
integer format: int64
externalProductId
string
nullable
externalVariantId
string
nullable
externalConnectionId
string
nullable
connectionId
integer format: int64

Client Error

object
message
string
nullable

Server Error