Produkty - Oferty

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

Changed on

Tworzy nowe powiązanie oferty z produktem lub wariantem. Gdy podasz samo variant_id, produkt zostanie uzupełniony automatycznie.

post/products_offers

Request

  • Base URL
    https://demo.sellasist.pl/api/v1
  • URL
    https://demo.sellasist.pl/api/v1/products_offers
  • Auth
    API key in header apiKey

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 GET /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 utworzone powiązanie.

idinteger

ID powiązania oferty

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 integracji (z GET /external_accounts)

account_idinteger

ID konta integracji (z GET /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

    • breaking

      the response property became nullable for the status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the request property became optional

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status