All URIs are relative to http://t213.vg/rest/default
Method | HTTP request | Description |
---|---|---|
salesRuleCouponManagementV1DeleteByCodesPost | POST /V1/coupons/deleteByCodes | |
salesRuleCouponManagementV1DeleteByIdsPost | POST /V1/coupons/deleteByIds | |
salesRuleCouponManagementV1GeneratePost | POST /V1/coupons/generate |
\SpringImport\Swagger\Magento2\Client\Model\SalesRuleDataCouponMassDeleteResultInterface salesRuleCouponManagementV1DeleteByCodesPost($body)
Delete coupon by coupon codes.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\SalesRuleCouponManagementV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body93(); // \SpringImport\Swagger\Magento2\Client\Model\Body93 |
try {
$result = $api_instance->salesRuleCouponManagementV1DeleteByCodesPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesRuleCouponManagementV1Api->salesRuleCouponManagementV1DeleteByCodesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \SpringImport\Swagger\Magento2\Client\Model\Body93 | [optional] |
\SpringImport\Swagger\Magento2\Client\Model\SalesRuleDataCouponMassDeleteResultInterface
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SpringImport\Swagger\Magento2\Client\Model\SalesRuleDataCouponMassDeleteResultInterface salesRuleCouponManagementV1DeleteByIdsPost($body)
Delete coupon by coupon ids.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\SalesRuleCouponManagementV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body92(); // \SpringImport\Swagger\Magento2\Client\Model\Body92 |
try {
$result = $api_instance->salesRuleCouponManagementV1DeleteByIdsPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesRuleCouponManagementV1Api->salesRuleCouponManagementV1DeleteByIdsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \SpringImport\Swagger\Magento2\Client\Model\Body92 | [optional] |
\SpringImport\Swagger\Magento2\Client\Model\SalesRuleDataCouponMassDeleteResultInterface
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string[] salesRuleCouponManagementV1GeneratePost($body)
Generate coupon for a rule
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\SalesRuleCouponManagementV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body91(); // \SpringImport\Swagger\Magento2\Client\Model\Body91 |
try {
$result = $api_instance->salesRuleCouponManagementV1GeneratePost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SalesRuleCouponManagementV1Api->salesRuleCouponManagementV1GeneratePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \SpringImport\Swagger\Magento2\Client\Model\Body91 | [optional] |
string[]
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]