TDKorn / my-magento

Python Magento 2 REST API Wrapper
https://my-magento.readthedocs.io
MIT License
11 stars 3 forks source link

Shipping cost and Discount properties #10

Closed FrancescoTalotta closed 8 months ago

FrancescoTalotta commented 8 months ago

Hello,

is there any command to get the shipping cost, the discount and the Grand Total from an invoice?

Thank you

Francesco

TDKorn commented 8 months ago

Hey @FrancescoTalotta,

Yes, this information is available in the attributes of an Invoice object. You can retrieve an Invoice using an InvoiceSearch.

The specific attributes you'd be looking for are:

See here for a full list of fields returned by the API: https://adobe-commerce.redoc.ly/2.4.6-admin/tag/invoicesid#operation/GetV1InvoicesId