Menu Close

Specific price rule conditions API for Prestashop module

Specific price rule conditions API for Prestashop module
Specific price rule conditions API for Prestashop module

Dynamic Puzzle successfully developed “Specific price rule conditions API for Prestashop module”. 

The module allows developers to create, update or delete specific price rule conditions using API.

We created this module because native Prestashop webservices does not support specific price rule conditions.

This module is very useful if you want to integrate Prestashop with ERP using API.

DypSpecificPriceRuleConditions PrestaShop API

Add Prestashop webservice for SpecificPriceRuleConditions

This module is tested with Prestashop 1.7. Maximum Prestashop version supported is 1.7.8.8.

Using

Simple GET call:

GET http://192.168.3.2:8380/api/dyp_specific_price_rule_conditions

Response:

<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
    <dyp_specific_price_rule_conditions>
        <dyp_specific_price_rule_condition id="1" condition_type="feature" condition_value="11"/>
        <dyp_specific_price_rule_condition id="2" condition_type="feature" condition_value="11"/>
        <dyp_specific_price_rule_condition id="3" condition_type="feature" condition_value="12"/>
        <dyp_specific_price_rule_condition id="4" condition_type="feature" condition_value="12"/>
        <dyp_specific_price_rule_condition id="5" condition_type="feature" condition_value="12"/>
        <dyp_specific_price_rule_condition id="6" condition_type="feature" condition_value="13"/>
        <dyp_specific_price_rule_condition id="7" condition_type="feature" condition_value="13"/>
        <dyp_specific_price_rule_condition id="8" condition_type="feature" condition_value="12"/>
        <dyp_specific_price_rule_condition id="9" condition_type="feature" condition_value="13"/>
        <dyp_specific_price_rule_condition id="10" condition_type="feature" condition_value="12"/>
        <dyp_specific_price_rule_condition id="11" condition_type="feature" condition_value="13"/>
    </dyp_specific_price_rule_conditions>
</prestashop>

GET http://192.168.3.2:8380/api/dyp_specific_price_rule_conditions/5

Response:

<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
    <dyp_specific_price_rule_conditions>
        <dyp_specific_price_rule_condition id="5" condition_type="feature" condition_value="12"/>
    </dyp_specific_price_rule_conditions>
</prestashop>

Simple POST/PUT call:

POST http://192.168.3.2:8380/api/dyp_specific_price_rule_conditions body:

<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<dyp_specific_price_rule_condition>
  <id>11</id>
  <condition_type>feature</condition_type>
  <condition_value>12</condition_value>
</dyp_specific_price_rule_condition>
</prestashop>

If you send the condition will be deleted.

Authors

License

This project is licensed under the Dynamic Puzzle License.

Changelog

All notable changes to DypSpecificPriceRuleCondition project will be documented in this file.

[1.0.0] - 2023-01-22

Added

  • add Prestashop webservice for specific price rule conditions

Do you have a business puzzle?