Produkty - Oferty

Pobierz listę powiązań ofert z produktami i wariantami

Zwraca zunifikowaną listę ofert powiązanych z produktem lub wariantem z tabel allegro_offers, marketplaces_offers oraz externalshops_offers.

get/products_offers

Query parameters

product_idinteger

ID produktu głównego

variant_idinteger

ID konkretnego wariantu produktu

external_account_idinteger

ID konta integracji (external_accounts.id)

account_idinteger

Alias dla external_account_id

external_offer_idstring

Zewnętrzny identyfikator oferty (np. numer aukcji Allegro)

integration'allegro' | 'marketplaces' | 'externalshops'

Filtrowanie po typie integracji

limitinteger

Maksymalny limit: 500

offsetinteger

Response

Lista powiązań ofert pobrana pomyślnie

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.14

    • the response property / became nullable for the status

      response-property-became-nullable

    • added the new optional query request parameter external_account_id

      new-optional-request-parameter

    • added the new optional query request parameter variant_id

      new-optional-request-parameter

    • 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