Skip to content

Latest commit

 

History

History
88 lines (55 loc) · 3 KB

ProductsSkuGroupPricesCustomerGroupIdTiersQtyPricePriceAPI.md

File metadata and controls

88 lines (55 loc) · 3 KB

\ProductsSkuGroupPricesCustomerGroupIdTiersQtyPricePriceAPI

All URIs are relative to http://example.com/rest/default

Method HTTP request Description
PostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePrice Post /V1/products/{sku}/group-prices/{customerGroupId}/tiers/{qty}/price/{price} products/{sku}/group-prices/{customerGroupId}/tiers/{qty}/price/{price}

PostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePrice

bool PostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePrice(ctx, sku, customerGroupId, price, qty).Execute()

products/{sku}/group-prices/{customerGroupId}/tiers/{qty}/price/{price}

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/Hevelop/go-client-magento"
)

func main() {
	sku := "sku_example" // string | 
	customerGroupId := "customerGroupId_example" // string | 'all' can be used to specify 'ALL GROUPS'
	price := float32(8.14) // float32 | 
	qty := float32(8.14) // float32 | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ProductsSkuGroupPricesCustomerGroupIdTiersQtyPricePriceAPI.PostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePrice(context.Background(), sku, customerGroupId, price, qty).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ProductsSkuGroupPricesCustomerGroupIdTiersQtyPricePriceAPI.PostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePrice``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePrice`: bool
	fmt.Fprintf(os.Stdout, "Response from `ProductsSkuGroupPricesCustomerGroupIdTiersQtyPricePriceAPI.PostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePrice`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
sku string
customerGroupId string 'all' can be used to specify 'ALL GROUPS'
price float32
qty float32

Other Parameters

Other parameters are passed through a pointer to a apiPostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePriceRequest struct via the builder pattern

Name Type Description Notes

Return type

bool

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml

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