POST api/Retail/CalculateLoyalityCardPoints
Request Information
URI Parameters
None.
Body Parameters
LoyalityCardRetailInvoiceName | Description | Type | Additional information |
---|---|---|---|
InvoiceYear | integer |
None. |
|
ShopId | string |
None. |
|
InvoiceBook | string |
None. |
|
CustomerID | string |
None. |
|
InvoiceDate | date |
None. |
|
Document | string |
None. |
|
RabatPercentage | decimal number |
None. |
|
PriceListID | string |
None. |
|
CustomerType | string |
None. |
|
PaymentAmount | decimal number |
None. |
|
LoyaltyCard | string |
None. |
|
CustomerLoyaltyCardID | string |
None. |
|
VATInvoiceType | string |
None. |
|
LoyalityCardRetailInvoiceLines | LoyalityCardRetailInvoiceLines |
None. |
Request Formats
application/xml, text/xml
Sample:
<LoyalityCardRetailInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <InvoiceYear>1</InvoiceYear> <ShopId>sample string 2</ShopId> <InvoiceBook>sample string 3</InvoiceBook> <CustomerID>sample string 4</CustomerID> <InvoiceDate>2025-04-03T04:52:41.8130942+02:00</InvoiceDate> <Document>sample string 5</Document> <RabatPercentage>1.1</RabatPercentage> <PriceListID>sample string 6</PriceListID> <CustomerType>sample string 7</CustomerType> <PaymentAmount>1</PaymentAmount> <LoyaltyCard>sample string 8</LoyaltyCard> <CustomerLoyaltyCardID>sample string 9</CustomerLoyaltyCardID> <VATInvoiceType>sample string 10</VATInvoiceType> <LoyalityCardRetailInvoiceLines> <LoyalityCardRetailInvoiceLine> <LineNumber>1</LineNumber> <ItemID>sample string 2</ItemID> <VATRateID>sample string 3</VATRateID> <VATPercentage>1.1</VATPercentage> <QuantityOfIssue>1.1</QuantityOfIssue> <SellingPrice>1.1</SellingPrice> <RetailPrice>1.1</RetailPrice> <IssueDiscountPercentage>1.1</IssueDiscountPercentage> <RowAmount>1.1</RowAmount> <Refunds>1.1</Refunds> <Component>sample string 4</Component> <ComponentID>sample string 5</ComponentID> </LoyalityCardRetailInvoiceLine> <LoyalityCardRetailInvoiceLine> <LineNumber>1</LineNumber> <ItemID>sample string 2</ItemID> <VATRateID>sample string 3</VATRateID> <VATPercentage>1.1</VATPercentage> <QuantityOfIssue>1.1</QuantityOfIssue> <SellingPrice>1.1</SellingPrice> <RetailPrice>1.1</RetailPrice> <IssueDiscountPercentage>1.1</IssueDiscountPercentage> <RowAmount>1.1</RowAmount> <Refunds>1.1</Refunds> <Component>sample string 4</Component> <ComponentID>sample string 5</ComponentID> </LoyalityCardRetailInvoiceLine> </LoyalityCardRetailInvoiceLines> </LoyalityCardRetailInvoice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
LoyalityCardPointsName | Description | Type | Additional information |
---|---|---|---|
HasPointsData | boolean |
None. |
|
Points | integer |
None. |
|
SumPoints | integer |
None. |
Response Formats
application/xml, text/xml
Sample:
<LoyalityCardPoints xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <HasPointsData>true</HasPointsData> <Points>1</Points> <SumPoints>1</SumPoints> </LoyalityCardPoints>