allegro / allegro/allegro-api

[NEWS] Grupowa edycja stawki podatku VAT w ofertach / Batch offer modification - change VAT rate

Open
#3,429 10 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

Umożliwiliśmy grupową edycję stawki podatku VAT w ofertach. Aby ją zmienić skorzystaj z [PUT /sale/offer-modification-commands/{commandId}](https://developer.allegro.pl/documentation/#operation/modificationCommandUsingPUT) i podczas grupowej zmiany podaj w polu:
- **“invoice”** - “VAT” jako typ faktury,
- **“tax”** - wartość stawki podatku VAT. Możesz wprowadzić tylko stawki podatku VAT określone polskim prawem (0%, 5%, 8%, 23%).

**Przykładowy request:**
```
curl -X PUT \
‘https://api.allegro.pl/sale/offer-modification-commands/{commandId}’ \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-Type: application/vnd.allegro.public.v1+json' \
-d '{
"modification": {
“payments": {
"invoice": "VAT",
"tax": {
"percentage": "23.00"
}
}
},
"offerCriteria":[
{
"type":"CONTAINS_OFFERS",
"offers":[
{
"id":"7531636067"
},
{
"id":"7512439587"
}
]
}
]
}’
```
Dzięki zmianie w przyszłości zaprezentujemy kupującym w ofertach stawkę VAT i cenę netto produktu.

**Ważne!** Pamiętaj, że transakcję z kupującym zawierasz na podstawie ceny brutto. Obecnie cenę netto zwracamy w celach informacyjnych.

-----
We have introduced the option of editing the VAT rate in many offers. To make a change use [PUT /sale/offer-modification-commands/{commandId}](https://developer.allegro.pl/documentation/#operation/modificationCommandUsingPUT) and during a batch offer modification enter in the field:
- **“invoice”** - “VAT” as an invoice type,
- **“tax”** - value of the VAT rate. You can use only the following VAT rates specified by Polish law (0%, 5%, 8%, 23%).

**Sample request:**
```
curl -X PUT \
‘https://api.allegro.pl/sale/offer-modification-commands/{commandId}’ \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-Type: application/vnd.allegro.public.v1+json' \
-d '{
"modification": {
“payments": {
"invoice": "VAT",
"tax": {
"percentage": "23.00"
}
}
},
"offerCriteria":[
{
"type":"CONTAINS_OFFERS",
"offers":[
{
"id":"7531636067"
},
{
"id":"7512439587"
}
]
}
]
}’
```
Owing to the change, in the future we will show in the offers the VAT rate and net price of the product.

**Note!** Remember the transaction with the customer is settled on the gross price basis (including VAT). We provide a net price for informational purposes.

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.