Skip to content

Latest commit

 

History

History
146 lines (94 loc) · 5.02 KB

SalesRuleCouponManagementV1Api.md

File metadata and controls

146 lines (94 loc) · 5.02 KB

SpringImport\Swagger\Magento2\Client\SalesRuleCouponManagementV1Api

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

salesRuleCouponManagementV1DeleteByCodesPost

\SpringImport\Swagger\Magento2\Client\Model\SalesRuleDataCouponMassDeleteResultInterface salesRuleCouponManagementV1DeleteByCodesPost($body)

Delete coupon by coupon codes.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body \SpringImport\Swagger\Magento2\Client\Model\Body93 [optional]

Return type

\SpringImport\Swagger\Magento2\Client\Model\SalesRuleDataCouponMassDeleteResultInterface

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

salesRuleCouponManagementV1DeleteByIdsPost

\SpringImport\Swagger\Magento2\Client\Model\SalesRuleDataCouponMassDeleteResultInterface salesRuleCouponManagementV1DeleteByIdsPost($body)

Delete coupon by coupon ids.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body \SpringImport\Swagger\Magento2\Client\Model\Body92 [optional]

Return type

\SpringImport\Swagger\Magento2\Client\Model\SalesRuleDataCouponMassDeleteResultInterface

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

salesRuleCouponManagementV1GeneratePost

string[] salesRuleCouponManagementV1GeneratePost($body)

Generate coupon for a rule

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body \SpringImport\Swagger\Magento2\Client\Model\Body91 [optional]

Return type

string[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]