allegro / allegro/allegro-api

[NEWS] GET /sale/badges - nowy obiekt “prices.subsidy” / GET /sale/badges - a new object “prices.subsidy”

Open
#4,094 6 comments 0 reactions 1 assignee Claimed by @MaciejFrackowiak View on GitHub
News
Dominant language
No language data
Stars
244
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Dzisiaj dla [GET /sale/badges](https://developer.allegro.pl/documentation/#operation/getBadges) udostępniliśmy nowy obiekt **“prices.subsidy”**, w którym zwracamy informacje o:
- **sellerPrice** - kwota oczekiwana przez partnera z tytułu sprzedaży produktu,
- **targetPrice** - cena widoczna dla klienta na platformie.

Różnicę między kwotą zapłaconą przez klienta (targetPrice), a kwotą oczekiwaną przez partnera (sellerPrice) pokryjemy w ramach programu Allegro Ceny, którego szczegóły znajdziesz na [stronie dla sprzedających](https://allegro.pl/dla-sprzedajacych/poznaj-allegro-ceny-na-czym-polega-program-wsparcia-dla-sprzedajacych-2YAZ1gAqRiK).

**Przykładowy request:**
```
curl -X GET \
‘https://api.allegro.pl/sale/badges’ \
-H ‘Authorization: Bearer {token}’ \
-H ‘Content-Type: application/vnd.allegro.beta.v1+json’
```

**Przykładowy response:**
```
{
"badges": [
{
"offer": {
"id": "10026815226"
},
"campaign": {
"id": "SUBSIDY",
"name": "Allegro Cena"
},
"publication": {
"type": "SINCE",
"from": "2021-01-19T11:31:56.131Z",
"to": null
},
"prices": {
"market": null,
"subsidy": {
"sellerPrice": { -- kwota, która jest oczekiwana przez partnera z tytułu
sprzedaży produktu. Różnicę między kwotą zapłaconą
przez klienta (targetPrice), a kwotą oczekiwaną przez
partnera (sellerPrice) pokryjemy w ramach programu
Allegro Ceny.
"amount": "100.00",
"currency": "PLN"
},
"targetPrice": { -- cena widoczna dla klienta na platformie
"amount": "90.00",
"currency": "PLN"
}
}
},
"process": {
"status": "ACTIVE",
"rejectionReasons": []
}
}
]
}
```

-----
Today in [GET /sale/badges](https://developer.allegro.pl/documentation/#operation/getBadges) we have introduced a new object **“prices.subsidy”** in which we return information about:
- **sellerPrice** - amount that is expected by the partner for the sale of the product,
- **targetPrice** - price visible to the customer at the platform.

The difference between the amount paid by the customer (targetPrice) and the amount expected by the partner (sellerPrice) will be funded by Allegro as part of the Allegro Price program, which details you will find on [for sellers page](https://allegro.pl/dla-sprzedajacych/poznaj-allegro-ceny-na-czym-polega-program-wsparcia-dla-sprzedajacych-2YAZ1gAqRiK).

**Sample request:**
```
curl -X GET \
‘https://api.allegro.pl/sale/badges’ \
-H ‘Authorization: Bearer {token}’ \
-H ‘Content-Type: application/vnd.allegro.beta.v1+json’
```

**Sample response:**
```
{
"badges": [
{
"offer": {
"id": "10026815226"
},
"campaign": {
"id": "SUBSIDY",
"name": "Allegro Cena"
},
"publication": {
"type": "SINCE",
"from": "2021-01-19T11:31:56.131Z",
"to": null
},
"prices": {
"market": null,
"subsidy": {
"sellerPrice": { -- amount that is expected by the partner for the sale of
the product. The difference between the amount paid by the
customer (targetPrice), and the amount expected by the
partner (sellerPrice) will be funded by Allegro as part of the
Allegro Price program.
"amount": "100.00",
"currency": "PLN"
},
"targetPrice": { -- price visible to the customer at the platform
"amount": "90.00",
"currency": "PLN"
}
}
},
"process": {
"status": "ACTIVE",
"rejectionReasons": []
}
}
]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.