Get Fields for Price Type Bindings to Customer Groups catalog.priceTypeGroup.getFields
We are still updating this page
Some data may be missing here — we will fill it in shortly.
Scope:
catalogWho can execute the method: any user
Description
catalog.priceTypeGroup.getFields()
The method returns the fields for binding price types to customer groups.
Parameters
No parameters.
Examples
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'catalog.priceTypeGroup.getFields',
{}
);
const result = response.getData().result;
if(result.error())
{
console.error(result.error().ex);
}
else
{
console.log(result);
}
}
catch(error)
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'catalog.priceTypeGroup.getFields',
[]
);
$result = $response
->getResponseData()
->getResult();
if ($result->error()) {
error_log($result->error()->ex);
} else {
echo 'Success: ' . print_r($result->data(), true);
}
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error getting price type group fields: ' . $e->getMessage();
}
BX24.callMethod(
'catalog.priceTypeGroup.getFields',
{},
function(result)
{
if(result.error())
console.error(result.error().ex);
else
console.log(result.data());
}
);
How to Use Examples in Documentation
Returned Fields
|
Field |
Description |
Note |
|
access* |
Type of added binding:
|
|
|
catalogGroupId* |
ID of the price type. |
|
|
groupId* |
ID of the group to which the price is bound. |
|
|
id |
Identifier of the binding. |
Immutable field. |
Required parameters are marked with *
Copied
Previous