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} |
bool PostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePrice(ctx, sku, customerGroupId, price, qty).Execute()
products/{sku}/group-prices/{customerGroupId}/tiers/{qty}/price/{price}
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)
}
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 are passed through a pointer to a apiPostV1ProductsSkuGrouppricesCustomerGroupIdTiersQtyPricePriceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
bool
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]