> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.0/untitled-1/article/ext_article_getprice.md).

# EXT\_Article\_GetPrice

Function to ask MSS to get the Price and Discounts of an article.

*Input parameters*:

* inDocumentCode – Code of the document;
* inCustomerCode – Customer code;
* inArticleCode – Article code;
* inQuantity – Quantity if there are prices and discount by quantity;
* inDeliveryLocationCode – Delivery location code if price depends on this field;
* inHeaderUserField1/2/3 – Header user fields if the price depends on those fields;

*Output parameters*:

* outResultCode – Return code: 0 – Done / < 0 Error;
* outPrice – Price;
* outDiscount1 – Discount 1;
* outDiscount2 – Discount 2;
* outDiscount3 – Discount 3;
* outDiscount4 – Discount 4;
* outPriceCode – Price code;
* outDiscount1Code – Discount 1 code;
* outDiscount2Code – Discount 2 code;
* outDiscount3Code – Discount 3 code;
* outDiscount4Code – Discount 4 code;
* outUserField1 – User field which can be used in Get Price
* outUserField2 – User field which can be used in Get Price
* outUserField3 – User field which can be used in Get Price
* outVATIncluded – If the price calculated has VAT included or not
* outVATTax – VAT Tax applied
