Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEWS] GET /sale/offer-events - rozszerzyliśmy dane dla eventu OFFER_PRICE_CHANGED / GET /sale/offer-events - we have expanded the data for the OFFER_PRICE_CHANGED event #9129

Open
MaciejFrackowiak opened this issue Jun 3, 2024 · 0 comments

Comments

@MaciejFrackowiak
Copy link
Collaborator

MaciejFrackowiak commented Jun 3, 2024

GET /sale/offer-events to dziennik zdarzeń w ofertach zalogowanego sprzedawcy, który zwraca informacje o zmianach z ostatnich 24 godzin.

Dzisiaj, dla zdarzenia “OFFER_PRICE_CHANGED”, dodaliśmy tablicę “marketplaces”, gdzie w polu:

  • id - zwracamy informację o rynku, na którym zmieniono cenę;
  • changeType - informujemy o źródle zmiany ceny. Dostępne są dwie wartości:
    • MANUAL” - zmiana ceny wykonana przez sprzedającego;
    • AUTOMATIC” - zmiana ceny wykonana automatycznie za pośrednictwem przelicznika cen.

Przykładowy response:

{
	"offerEvents": [
    	  {
        	"id": "MTcxNjk4NDM2MTExMTkwMQ",
        	"type": "OFFER_PRICE_CHANGED",
        	"occurredAt": "2024-05-29T12:05:50.203Z",
        	"offer": {
            	  "id": "7762061106",
            	  "external": null,
            	  "publication": null,
            	  "marketplaces": [
                	{
                    	"id": "allegro-pl",      - identyfikator serwisu
                    	"changeType": "MANUAL"   - źródło zmiany ceny
                	},
                	{
                    	"id": "allegro-cz",
                    	"changeType": "AUTOMATIC"
                	},
                	{
                    	"id": "allegro-sk",
                    	"changeType": "AUTOMATIC"
                	}
            	  ]
        	}
    	  }
	]
}

Więcej informacji o dzienniku zdarzeń znajdziesz w naszym poradniku.


GET /sale/offer-events resource is an event journal concerning changes in offers listed by authorized seller that occurred within the last 24 hours.

Today, for the “OFFER_PRICE_CHANGED” event, we added the “marketplaces” array, wherein the field:

  • id - we return information about the marketplace where the price was changed;
  • changeType - we inform about the source of the price change. Two values are available:
    • MANUAL” - price change made by the seller;
    • AUTOMATIC” - price change made automatically via price automation.

Sample response:

{
	"offerEvents": [
    	  {
        	"id": "MTcxNjk4NDM2MTExMTkwMQ",
        	"type": "OFFER_PRICE_CHANGED",
        	"occurredAt": "2024-05-29T12:05:50.203Z",
        	"offer": {
            	  "id": "7762061106",
            	  "external": null,
            	  "publication": null,
            	  "marketplaces": [
                	{
                    	"id": "allegro-pl",      - marketplace id
                    	"changeType": "MANUAL"   - source of the price change
                	},
                	{
                    	"id": "allegro-cz",
                    	"changeType": "AUTOMATIC"
                	},
                	{
                    	"id": "allegro-sk",
                    	"changeType": "AUTOMATIC"
                	}
            	  ]
        	}
    	  }
	]
}

You can read more about event journal in our tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant