allegro / allegro/allegro-api

[NEWS] GPSR - udostępniliśmy nowy zasób do pobierania szczegółowych informacji o załączniku / GPSR - we have provided a new resource for retrieving detailed information about the attachment

未关闭
#10,568 0 条评论 2 个 reaction 已指派 1 人 已被 @MaciejFrackowiak 认领 在 GitHub 查看
News Offer - management
主要语言
没有语言数据
星标
244
派生
40
PR 合并指标
30 天内没有已合并 PR

描述

Od **13 grudnia 2024** obowiązuje nowe rozporządzenie Unii Europejskiej [General Product Safety Regulation](https://commission.europa.eu/business-economy-euro/doing-business-eu/eu-product-safety-and-labelling/product-safety_en). Celem GPSR jest pokazanie kupującemu, skąd pochodzi produkt, który może kupić na Allegro.

**Jak jest obecnie?**

Informację o identyfikatorach załączników dodanych do oferty i produktów można pobrać z [GET /sale/product-offers/{offerId}](https://developer.allegro.pl/documentation/#operation/getProductOffer).

**Co zmieniliśmy?**

Dzisiaj, udostępniliśmy nowy zasób **[GET /sale/offer-attachments/{attachmentId}](https://developer.allegro.pl/documentation/#operation/getOfferAttachment)**, dzięki któremu pobierzesz szczegółowe informacje o wybranym załączniku.

**Przykładowy request:**

```json5
curl -X GET \
'https://api.allegro.pl/sale/offer-attachments/d38fe464-29de-46bd-b2c6-4ca25135d768' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Authorization: Bearer {token}' \
```
>
**Przykładowy response:**

```json5
{
"id": "d38fe464-29de-46bd-b2c6-4ca25135d768",
"type": "SAFETY_INFORMATION_MANUAL",
"file": {
"name": "safety-information-allegro.pdf",
"url": "https://storage.googleapis.com/allegro-offer-attachments/f08a249c8f8919925e62872"
}
}
```
>
**Dlaczego wprowadziliśmy zmianę?**

Zależy nam, aby sprzedający mogli w możliwie najwygodniejszy dla siebie sposób zarządzać załącznikami do ofert i produktów, dlatego też dzięki zmianie udostępniamy adresy URL plików.

-----

As of **December 13, 2024**, the new European Union Regulation **[General Product Safety Regulation](https://commission.europa.eu/business-economy-euro/doing-business-eu/eu-product-safety-and-labelling/product-safety_en)** is in effect. The goal of the GPSR is to show the buyer where the product available on Allegro originates.

**How is it now?**

Information about the IDs of attachments added to the offer and products can be retrieved from [GET /sale/product-offers/{offerId}](https://developer.allegro.pl/documentation/#operation/getProductOffer).

**What have we changed?**

Today, we have provided a new resource **[GET /sale/offer-attachments/{attachmentId}](https://developer.allegro.pl/documentation/#operation/getOfferAttachment)**, through which you will retrieve detailed information about the selected attachment.

**Sample request:**

```json5
curl -X GET \
'https://api.allegro.pl/sale/offer-attachments/d38fe464-29de-46bd-b2c6-4ca25135d768' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Authorization: Bearer {token}' \
```
>
**Sample response:**

```json5
{
"id": "d38fe464-29de-46bd-b2c6-4ca25135d768",
"type": "SAFETY_INFORMATION_MANUAL",
"file": {
"name": "safety-information-allegro.pdf",
"url": "https://storage.googleapis.com/allegro-offer-attachments/f08a249c8f8919925e62872"
}
}
```
>
**Why have we made the change?**

We want sellers to be able to manage attachments to offers and products in the most convenient way possible, so with the change we are making file URLs available.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。