All URIs are relative to http://example.com/rest/default
Method | HTTP request | Description |
---|---|---|
PostV1ProductsBasepricesinformation | Post /V1/products/base-prices-information | products/base-prices-information |
[]CatalogDataBasePriceInterface PostV1ProductsBasepricesinformation(ctx).PostV1ProductsBasepricesinformationRequest(postV1ProductsBasepricesinformationRequest).Execute()
products/base-prices-information
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Hevelop/go-client-magento"
)
func main() {
postV1ProductsBasepricesinformationRequest := *openapiclient.NewPostV1ProductsBasepricesinformationRequest([]string{"Skus_example"}) // PostV1ProductsBasepricesinformationRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ProductsBasePricesInformationAPI.PostV1ProductsBasepricesinformation(context.Background()).PostV1ProductsBasepricesinformationRequest(postV1ProductsBasepricesinformationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProductsBasePricesInformationAPI.PostV1ProductsBasepricesinformation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostV1ProductsBasepricesinformation`: []CatalogDataBasePriceInterface
fmt.Fprintf(os.Stdout, "Response from `ProductsBasePricesInformationAPI.PostV1ProductsBasepricesinformation`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiPostV1ProductsBasepricesinformationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
postV1ProductsBasepricesinformationRequest | PostV1ProductsBasepricesinformationRequest |
[]CatalogDataBasePriceInterface
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]