[NEWS] Serwisy zagraniczne - dodaliśmy nowe pole w POST /pricing/offer-fee-preview / Allegro foreign marketplaces - we have added a new field in the POST /pricing/offer-fee-preview resource
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 244
- Forks
- 40
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
W związku z dostosowywaniem API Allegro do [nadchodzących zmian](https://developer.allegro.pl/tutorials/wystawianie-i-zarzadzanie-oferta-w-serwisach-zagranicznych-wwzjP4M8gTZ), wdrożyliśmy dzisiaj w [POST /pricing/offer-fee-preview](https://developer.allegro.pl/documentation/#operation/calculateFeePreviewUsingPOST) nowe pole **“marketplaceId”**, czyli identyfikator serwisu bazowego Allegro, dla którego możesz wycenić ofertę.
Aby uzyskać informacje na temat wyceny dla oferty na innym rynku, np. w Czechach (**“allegro-cz”**), przekaż:
- pole **“marketplaceId”: “allegro-cz”,**
- cenę w walucie odpowiadającej wybranemu rynkowi, np. **"currency": "CZK"**.
**Ważne!** Jeżeli w żądaniu nie przekażesz pola **“marketplaceId”**, domyślnie ustawimy wartość serwisu bazowego, np. **“allegro-pl”**.
**Przykładowy request:**
```
curl -X POST \
'https://api.allegro.pl/pricing/offer-fee-preview' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-Type: application/vnd.allegro.public.v1+json' \
-H 'Authorization: Bearer {token}' \
-d '{
…
"sellingMode": {
"format": "BUY_NOW",
"price": {
"amount": "123.45",
"currency": "CZK"
},
"minimalPrice": {
"amount": "120.00",
"currency": "CZK"
},
"startingPrice": {
"amount": "100.00",
"currency": "CZK"
},
"netPrice": {
"amount": "100.37",
"currency": "CZK"
}
},
"marketplaceId": "allegro-cz”,
}
```
Więcej o zmianach w ramach nowych serwisów zagranicznych przeczytasz na [dedykowanej stronie](https://developer.allegro.pl/tutorials/wystawianie-i-zarzadzanie-oferta-w-serwisach-zagranicznych-wwzjP4M8gTZ), natomiast informacje na temat kalkulatora opłat znajdziesz w [naszym poradniku](https://developer.allegro.pl/tutorials/jak-sprawdzic-oplaty-nn9DOL5PASX#kalkulator-oplat).
--------
Due to the adaptation of the Allegro API to [the upcoming changes](https://developer.allegro.pl/tutorials/wystawianie-i-zarzadzanie-oferta-w-serwisach-zagranicznych-wwzjP4M8gTZ), today, in [POST /pricing/offer-fee-preview](https://developer.allegro.pl/documentation/#operation/calculateFeePreviewUsingPOST), we have added a new field **"marketplaceId"** - the identifier of the Allegro base marketplace for which you can check the fees which will be charged for a specific offer.
To retrieve an information about the fees for an offer in another marketplace, e.g. in the Czech Republic (**“allegro-cz”**), provide:
- a field - **“marketplaceId”: “allegro-cz”**,
- the price in the currency corresponding to the selected marketplace, e.g. **"currency": "CZK"**.
**Note!** If you do not provide the **"marketplaceId"** field in the request, we will set it to the base marketplace, e.g. **"allegro-pl"** by default.
**Sample request:**
```
curl -X POST \
'https://api.allegro.pl/pricing/offer-fee-preview' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-Type: application/vnd.allegro.public.v1+json' \
-H 'Authorization: Bearer {token}' \
-d '{
…
"sellingMode": {
"format": "BUY_NOW",
"price": {
"amount": "123.45",
"currency": "CZK"
},
"minimalPrice": {
"amount": "120.00",
"currency": "CZK"
},
"startingPrice": {
"amount": "100.00",
"currency": "CZK"
},
"netPrice": {
"amount": "100.37",
"currency": "CZK"
}
},
"marketplaceId": "allegro-cz”,
}
```
You can read more about the changes to the new foreign services on the [dedicated page](https://developer.allegro.pl/tutorials/wystawianie-i-zarzadzanie-oferta-w-serwisach-zagranicznych-wwzjP4M8gTZ), while more information about the fee calculator you can find in [our guide](https://developer.allegro.pl/tutorials/jak-sprawdzic-oplaty-nn9DOL5PASX#kalkulator-oplat).
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.