allegro / allegro-api

Issue tracker and wiki for Allegro REST API
https://developer.allegro.pl/
214 stars 39 forks source link

Payment method and delivery method for orders #9966

Open dominikahr opened 3 weeks ago

dominikahr commented 3 weeks ago

Hi there,

we were trying to find, if there is an information about the payment method and delivery method in the order detail. We only found the type of the payment and delivery method but we did not see the price for those in the response. For example that the payment method is COD and there is a surcharge for that 35 CZK and that the delivery method is via PPL and that costs for example 99 CZK. Is this included somewhere in the response or not?

Thanks in advance!

All the best,

Dominika

MartaNowaczyk commented 3 weeks ago

Hi Dominika, in the "delivery.cost" field you will find the price for the delivery, but if you set an amount separately and the customer has to pay a surcharge, the amount of the surcharge will not be shown here. Have a look if the "Overpayment and underpayment" part of the article, maybe this is the answer. If not then let me know I will try to help.

dominikahr commented 3 weeks ago

@MartaNowaczyk The question is more about if you provide information about the price of the payment method and price of the delivery method in the order details :) and if yes, then where can we find it in the response?

MartaNowaczyk commented 3 weeks ago

Each delivery method has a specific payment method. In the order details you have the cost per delivery method ‘delivery.cost’, and the total cost for the order and delivery you have in ‘summary.totalToPay’. Can you give an example of an order and value you cannot find in the API?

dominikahr commented 3 weeks ago

@MartaNowaczyk I read that COD is a payment method that is not for free but the buyer has to pay extra for it: https://allegro.cz/pomoc/pro-kupujici/doprava-s-allegro-smart-/muzu-vyuzit-dopravu-zdarma-v-ramci-allegro-smart-pokud-chci-zaplatit-na-dobirku-7G0e9kX0WHA

So will the price 29 CZK for COD be included somewhere in the response? Or it will be included in the delivery cost?

MartaNowaczyk commented 3 weeks ago

I'm sorry you had to wait, but I preferred to make sure it wasn't some other case on the Czech market. It looks like the surcharge price you see in this article will be the normal delivery price, which means it should be in the delivery cost.