BK Trading App

Allegro REST API application documentation · Dokumentace aplikace pro Allegro REST API (česky níže)

1. Description and purpose

BK Trading App is an internal tool of BK Trading, the operator of the Bighorn shop (bighorn.cz) and the seller _Bighorn_ on Allegro. It is used only for our own seller account and is not offered to other sellers or users. Our offers on Allegro are created and managed by Base.com (BaseLinker); this application helps us check that our own offers are correct and stay listed.

2. Functional scope

  • Reading the list and details of our own offers: status, end reason, linked catalog product, SKU (external ID), parameters and validation messages.
  • Reading events of our own offers (offer events) to find offers that ended and why.
  • Searching the Allegro product catalog by the GTIN (EAN) of products we sell, to check before listing that the catalog product has the correct category, size and brand.
  • Reading category parameters needed for the check above.
  • Running once or a few times per day; well within Allegro rate limits.

Planned write features, used only for our own offers. Each change is reviewed and approved by a person before it is sent:

  • Linking our own offer to the correct Allegro catalog product when it is linked to a product of a different size or model (PATCH /sale/product-offers/{offerId}, productSet).
  • Reporting an error in an Allegro catalog product that we sell (POST /sale/products/{productId}/change-proposals), within the daily limit.

The application does not create new offers (our offers are created in Base.com), does not access orders, messages or buyer data, and does not collect data about other sellers.

3. Connection method

OAuth 2.0 Device Authorization Grant (device flow). The application is registered as an application without a browser. The account owner confirms the connection at allegro.pl. The application never asks for, receives or stores Allegro login credentials.

4. Permissions (scopes)

  • allegro:api:sale:offers:read
    Used for: GET /sale/offers, GET /sale/product-offers/{offerId}, GET /sale/offer-events, GET /sale/products, GET /sale/products/{productId}.
    Why it is needed: reading our own offers and their events, and checking catalog products by GTIN before listing.
  • allegro:api:profile:read
    Used for: GET /me.
    Why it is needed: confirming that the application is connected to our own account and its base marketplace.
  • allegro:api:sale:offers:write
    Used for: PATCH /sale/product-offers/{offerId} (catalog product link of our own offers), POST /sale/products/{productId}/change-proposals.
    Why it is needed: correcting wrong catalog product links of our own offers and reporting errors in catalog products we sell.

Write requests are sent only after a person has reviewed and approved the exact change.

5. Security of tokens and data

  • Client ID, client secret and tokens are stored only on a company computer, in the operating system's credential store or in files readable only by the owner. They are never stored in source code or a repository and are not shared with anyone.
  • Access tokens are reused for their full lifetime and refreshed shortly before expiry; refresh tokens are replaced on every refresh.
  • Write requests are never sent automatically: the application first shows the planned change, a person approves it, and the result is read back and logged.
  • All communication uses HTTPS. Every request identifies the application with its User-Agent.
  • Data is stored locally and used only to manage our own offers on Allegro. Allegro catalog data is used only on Allegro.
  • When Allegro returns HTTP 429, the application waits before retrying and does not repeat requests in a loop.

6. Contact

BK Trading (Bighorn) · e-mail: info@bighorn.cz · www.bighorn.cz


Česky — stručně

BK Trading App je interní nástroj firmy BK Trading (e-shop bighorn.cz, prodejce _Bighorn_ na Allegru). Slouží jen pro náš vlastní prodejní účet: čte stav a detaily našich nabídek, jejich události a důvody ukončení a před vystavením ověřuje v katalogu Allegra produkty podle EANu. Nové nabídky nezakládá (vznikají v Base.com). Výjimečně a vždy až po schválení konkrétní změny umí přepojit naši nabídku na správný produkt v katalogu Allegra nebo nahlásit chybu v katalogu. Nečte objednávky ani údaje kupujících. Připojení probíhá přes OAuth 2.0 (device flow), přihlašovací údaje k Allegru aplikace nikdy nezná. Klíče a tokeny jsou uložené jen na firemním počítači a nikomu se nezpřístupňují. Kontakt: info@bighorn.cz.