allegro / allegro-api

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

/sale/product-offers - Error 403 OfferAccessDeniedException #10007

Open ithw23 opened 14 hours ago

ithw23 commented 14 hours ago

Hello,

I get the error 403 when creating an offer.

POST /sale/product-offers HTTP/2 Host: api.allegro.pl.allegrosandbox.pl authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxx accept: application/vnd.allegro.public.v1+json content-type: application/vnd.allegro.public.v1+json accept-language: en-US content-length: 167

HTTP/2 403 expires: 0 cache-control: no-cache, no-store, max-age=0, must-revalidate x-xss-protection: 0 pragma: no-cache date: Tue, 01 Oct 2024 10:27:11 GMT x-frame-options: DENY trace-id: 15863a0f0df04 vary: Origin,Access-Control-Request-Method,Access-Control-Request-Headers content-type: application/json; charset=UTF-8 content-length: 210 strict-transport-security: max-age=15552000 x-content-type-options: nosniff

{"errors":[{"code":"OfferAccessDeniedException","message":"Forbidden","details":null,"path":"","userMessage":"Access denied. You are not authorized to perform operations on the indicated offer","metadata":{}}]}

A manual creation of the error works in the sandbox.

Do you have an idea what could be wrong?

Thank you in advance.

Katia

AureliuszBrussy commented 13 hours ago

The reason is that the account you are trying to list from is not verified as the seller's business account.

Please, register and activate a new company account. You can read more about that in our guide.

ithw23 commented 13 hours ago

Thank you for your reply.

We added a fake bank account. Is there anyway to skip the id registration? Do we have to do the whole process?

Katia

AureliuszBrussy commented 13 hours ago

You have to go through the whole process, but attach any files you want - they mustn't be real photos of IDs. Do not fill in any real data.