Price and Payment Related Object Types
Amounts
Amounts contain product prices.
<object_guid>
Defines the products associated with this amount.
<object_type>
Defines the type of object the amount represents.
<list_price>192.00</list_price>
The list price for the product.
<price_list_guid>
Defines the price list assignment associated with this amount
Sample XML:
<amounts>
<base_amount>
<guid>47B01916-7E58-631C-5C72-E1603B5BD419</guid>
<object_guid>CANON_CAMERA_WITH_COLOR_CASE_AND_BACKPACK</object_guid>
<object_type>PRODUCT</object_type>
<quantity>1.00</quantity>
<list_price>300.99</list_price>
<sale_price>289.99</sale_price>
<price_list_guid>SNAPITUP_USD</price_list_guid>
</base_amount>
...
</amounts>
Price Lists
A price list contains a set of pricing information that can be related to different products. The conditions under which price lists are applied to products are stored in the Price List Assignment. The actual price of the product is stored in Amounts.
Sample XML:
<price_lists>
<price_list>
<guid>SeniorPL</guid>
<description>Price List with cheaper prices for selective Telescope products</description>
<currency_code>USD</currency_code>
<name>Senior Price List</name>
<hidden>false</hidden>
</price_list>
...
</price_list>
Price List Assignment
A price list assignment links Price Lists to products for specific catalogs. Price list assignments also contain the pricing conditions that can provide customer prices for targeted shoppers.
Sample XML:
<price_list_assignments>
<price_list_assignment>
<guid>4C640BA5-A95A-B02D-503C-23239EBB381D</guid>
<name>Senior Shopper</name>
<description>Shoppers who are seniors will receive cheaper pricing on selected Telescope products.</description>
<priority>8</priority>
<catalog_guid>SNAPITUPUS</catalog_guid>
<price_list_guid>SeniorPL</price_list_guid>
<selling_context>
<guid>2054C56D-250F-E515-CA69-AC097DA371D5</guid>
<name>Senior Shopper</name>
<description>PLA SellingContext for Senior Shopper</description>
<priority>1</priority>
<conditions>
<condition>
<guid>25E48ED8-7541-D072-EFF9-B4AF76C45511</guid>
<name>name_TIME</name>
<description>desc_TIME</description>
<condition_string>{AND {SHOPPING_START_TIME.greaterThan (1230796800000L)} {SHOPPING_START_TIME.lessThan (1669967999000L)}}</condition_string>
<dictionary_guid>TIME</dictionary_guid>
</condition>
<condition>
<guid>394CEAE8-F46A-2633-4208-9F38600176FD</guid>
<name>name_PLA_SHOPPER</name>
<description>desc_PLA_SHOPPER</description>
<condition_string>{ AND { AND { CUSTOMER_AGE_YEARS.greaterThanOrEqualTo (65i) } } }</condition_string>
<dictionary_guid>PLA_SHOPPER</dictionary_guid>
</condition>
</conditions>
</selling_context>
</price_list_assignment>
...
</price_list_assignments>
Payment Providers
A payment provider is a payment functionality provider and defines the payment methods and interactions that it supports. The <properties>
in the Payment_Providers.xml
depend on the type of payment provider that you select for your storefront.
Sample XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<property> Key-Value pair of the payment provider configuration </property>
<payment_providers>
<payment_provider_configuration guid="demo-payment-provider-config" status="DRAFT">
<name>Demo Config</name>
<default_display_name>Demo Config display name</default_display_name>
<localized_names>
<value language="en">Demo Config_en</value>
<value language="fr">Demo Config_fr</value>
<value language="zh">Demo Config_zh</value>
</localized_names>
<payment_provider_id>happyPathPaymentProviderPlugin</payment_provider_id>
<properties>
<property key="Config B">Value of Config B</property>
<property key="Config A">Value of Config A</property>
</properties>
</payment_provider_configuration>
</payment_providers>