allegro / allegro-api

Issue tracker and wiki for Allegro REST API
https://developer.allegro.pl/
213 stars 39 forks source link

OfferAccessDeniedException #8472

Closed ZajdaBear closed 7 months ago

ZajdaBear commented 7 months ago

I am trying to create an offer and receive following error. I have checked the token and it seems we should have an acces to create an offer. Can you please advice us ion the error?

Your account is linked to ALLEGRO.PL
login: SUPER-HRACKY (90563074)
base marketplace: allegro-pl

{
    "user_name": "90563074",
    "scope": [
      "allegro:api:orders:read",
      "allegro:api:fulfillment:read",
      "allegro:api:profile:write",
      "allegro:api:fulfillment:write",
      "allegro:api:sale:offers:write",
      "allegro:api:billing:read",
      "allegro:api:campaigns",
      "allegro:api:disputes",
      "allegro:api:bids",
      "allegro:api:sale:offers:read",
      "allegro:api:orders:write",
      "allegro:api:ads",
      "allegro:api:payments:write",
      "allegro:api:sale:settings:write",
      "allegro:api:profile:read",
      "allegro:api:sale:settings:read",
      "allegro:api:payments:read",
      "allegro:api:messaging"
    ],
    "allegro_api": true,
    "iss": "https://allegro.pl",
    "exp": 1707941402,
    "jti": "********-****-****-****-************",
    "client_id": "********************************"
  }

  * Server has sent a request
  > POST http://mpi-api-integrator:8084/v1/allegro-api/sale/product-offers
  {"productSet":[{"product":{"id":"6945642852232","idType":"GTIN"},"quantity":{"value":1}}],"delivery":{"handlingTime":"PT0S","shippingRates":{"id":"120f2401-fac9-4ade-945d-c3852c661345"}},"publication":{"status":"INACTIVE"},"language":"pl-PL","afterSalesServices":{"impliedWarranty":{"id":"3eaae17d-065b-4f9f-b098-b80b38bffa40"},"returnPolicy":{"id":"1cf8b69b-a812-4cf6-8137-d76fb1fae6b4"}},"name":"Zestaw architekta Łuk Triumfalny kompatybilny z 1399 częściami","sellingMode":{"format":"BUY_NOW","price":{"amount":"1199.00","currency":"PLN"}},"stock":{"available":3,"unit":"UNIT"},"location":{"city":"Trubín","countryCode":"CZ","postCode":"26701"},"external":{"id":"5223-WANGE"},"messageToSellerSettings":{"mode":"HIDDEN"}}

  * Server received a response
  < 403
  {"errors":[{"code":"OfferAccessDeniedException","message":"Forbidden","details":null,"path":"","userMessage":"Access denied. You are not authorized to perform operations on the indicated offer"}]}
PrzemyslawLukanowski commented 7 months ago

Hello, it seems that this account is not activated. Please check this article and in case of any questions about processing account activation use contact form.

ZajdaBear commented 7 months ago

Thanks