Produkty - Oferty

Utwórz nowe powiązanie produktu/wariantu z ofertą zewnętrzną

Tworzy nowe powiązanie oferty z produktem lub wariantem. Wspiera mechanizm Smart Resolution: podanie samego variant_id automatycznie wyznacza i przypina nadrzędny product_id.

post/products_offers

Request body

product_idinteger

ID produktu głównego w Sellasist. Wymagane jeśli nie podano variant_id.

variant_idinteger

ID wariantu w Sellasist. Jeśli podane bez product_id, system sam odnajdzie i przypisze nadrzędny produkt.

product_variant_idinteger

Alias dla variant_id

external_account_idinteger required

ID konta integracji z tabeli external_accounts

account_idinteger

Alias dla external_account_id

external_offer_idstring required

Zewnętrzny numer oferty / aukcji

Example request

{
  "product_id": 123,
  "variant_id": 7691,
  "product_variant_id": 7691,
  "external_account_id": 5,
  "account_id": 5,
  "external_offer_id": "1234567890"
}

Response

Powiązanie zostało utworzone pomyślnie. Zwraca zunifikowany obiekt oferty.

idinteger

ID rekordu w dedykowanej tabeli integracji

product_idinteger nullable

ID produktu głównego w Sellasist

variant_idinteger nullable

ID konkretnego wariantu produktu (jeśli powiązanie dotyczy wariantu)

external_account_idinteger

ID konta z tabeli external_accounts

account_idinteger

ID konta z tabeli external_accounts

external_offer_idstring

Zewnętrzny identyfikator oferty (offer_id)

integrationstring

Typ integracji (allegro, marketplaces, externalshops)

Example response

{
  "id": 1524,
  "product_id": 123,
  "variant_id": 7691,
  "external_account_id": 10,
  "account_id": 10,
  "external_offer_id": "748392011",
  "integration": "allegro"
}

Changes

Changed in 1 of the 2 revisions of this API.16

    • the response property became nullable for the status

      response-property-became-nullable

    • added the new optional request property

      new-optional-request-property

    • added the new optional request property

      new-optional-request-property

    • added the new optional request property

      new-optional-request-property

    • the request property became optional

      request-property-became-optional

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog