For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve price matrix for product

Use the GetPriceMatrix API call to retrieve details that are used to add or update a special price promotion.

Request parameters

Parameter
Type / Description

sessionID

Required (string) The unique identifier of the session.

PriceMatrixRequest

Required (array of objects) Contains details that are used to add or update a special price promotion.

PriceMatrixRequestObject

Required (object)

ProductCode

Required (string) Product code for the price matrix.

PricingConfigurationCode

Required (string) Pricing configuration code for the price matrix, must be related to the product.

Request sample

<?php

require('PATH_TO_AUTH');


$priceMatrixRequestObject1 = new stdClass;
$priceMatrixRequestObject1->productCode = "474FF7C0FD"
$priceMatrixRequestObject1->pricingConfigurationCode = "514EE48419"

$requestBody = [
    $priceMatrixRequestObject1
]

try {
    $priceMatrix = $client->addPromotion($sessionID, $requestBody);
} catch (SoapFault $e) {
    echo "NewPromotion: " . $e->getMessage();
    exit;
}

var_dump("Promotion", $priceMatrix);

Response parameters

Parameter
Type / Description

PriceMatrix

Array of objects Only for this type of promotion. It is generated by getPriceMatrix and used to set promotion special prices.

ProductCode

String Product code for the price matrix.

PricingConfigurationCode

String Pricing configuration code for the price matrix, must be related to the product.

OptionHash

String Unique identifier of one combination of price configuration options.

Options

Array of objects Describes price configuration options identified by OptionHash.

GroupName

String

OptionText

String

Prices

Array of objects Promotion prices by currency, price for default currency is required.

Value

Int Decimal.

Currency

String ISO currency code.

Last updated

Was this helpful?