Skip to main content

B2B Account Pricing

Account Price Record is used for variable pricing for account customers. This is more common for B2B sites or those sites that use account specific pricing. This is an optional section in the PureClarity product feed format. The account price record can be included in the product feed along with the products array, or alternatively it may be sent as a Product Delta.
{
  "Products": [ {<product1>}, . . . ., {<productN>} ],
  "AccountPrices": [ {<price>}, . . . ., {<priceN>} ],
}
Where each Price record is in the format:
{
  "AccountId": <string>,
  "Id": <string>,
  "Prices": [<same as in Prices record>],
  "SalePrices": [<same as in Prices record>]
}
If using account pricing, you must ensure that in the customer_details and order trackings event that the accid of the account is sent. PureClarity will then display the appropriate account price.
If you have a significant number of accounts, or a significant number of prices per account, it may be unfeasible to send all the data to PureClarity. If this is the case you will need to use our server-side API, and handle the pricing yourself.