allegro / allegro-api

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

How to delete offer drafts of an user #10314

Open dominikahr opened 4 days ago

dominikahr commented 4 days ago

Hi there,

we were wondering if it is possible to somehow filter and delete offer drafts of a specific user.

One of our users wants to delete all offer drafts that he has on Allegro. We were trying to find some filter in the documentation for OFFERS in the DRAFT status, but we did not find it. Can you please tell us if there is such possibility? To filter and delete all offers drafts?

The user can only do it one by one and he has around 7 thousand of these drafts because of a mistake. And because of the limit on drafts it is now preventing him from listing all his assortment.

Thanks in advance!

All the best,

Dominika

PrzemyslawLukanowski commented 4 days ago

Hi,

You can filter offers using publication.status parameter in the GET /sale/offers:

Zrzut ekranu 2024-11-18 o 12 47 50

and you can delete drafts using DELETE /sale/offers/{offerID}.

dominikahr commented 3 days ago

@PrzemyslawLukanowski and which one of those is the equivalent of a draft? Is it "activating"?

PrzemyslawLukanowski commented 3 days ago

It's INACTIVE.