All URIs are relative to http://example.com/rest/default
Method | HTTP request | Description |
---|---|---|
PostV1NegotiablecartsCartIdEstimateshippingmethodsbyaddressid | Post /V1/negotiable-carts/{cartId}/estimate-shipping-methods-by-address-id | negotiable-carts/{cartId}/estimate-shipping-methods-by-address-id |
[]QuoteDataShippingMethodInterface PostV1NegotiablecartsCartIdEstimateshippingmethodsbyaddressid(ctx, cartId).PostV1CartsMineEstimateshippingmethodsbyaddressidRequest(postV1CartsMineEstimateshippingmethodsbyaddressidRequest).Execute()
negotiable-carts/{cartId}/estimate-shipping-methods-by-address-id
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Hevelop/go-client-magento"
)
func main() {
cartId := int32(56) // int32 | The shopping cart ID.
postV1CartsMineEstimateshippingmethodsbyaddressidRequest := *openapiclient.NewPostV1CartsMineEstimateshippingmethodsbyaddressidRequest(int32(123)) // PostV1CartsMineEstimateshippingmethodsbyaddressidRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NegotiableCartsCartIdEstimateShippingMethodsByAddressIdAPI.PostV1NegotiablecartsCartIdEstimateshippingmethodsbyaddressid(context.Background(), cartId).PostV1CartsMineEstimateshippingmethodsbyaddressidRequest(postV1CartsMineEstimateshippingmethodsbyaddressidRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NegotiableCartsCartIdEstimateShippingMethodsByAddressIdAPI.PostV1NegotiablecartsCartIdEstimateshippingmethodsbyaddressid``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostV1NegotiablecartsCartIdEstimateshippingmethodsbyaddressid`: []QuoteDataShippingMethodInterface
fmt.Fprintf(os.Stdout, "Response from `NegotiableCartsCartIdEstimateShippingMethodsByAddressIdAPI.PostV1NegotiablecartsCartIdEstimateshippingmethodsbyaddressid`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cartId | int32 | The shopping cart ID. |
Other parameters are passed through a pointer to a apiPostV1NegotiablecartsCartIdEstimateshippingmethodsbyaddressidRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postV1CartsMineEstimateshippingmethodsbyaddressidRequest | PostV1CartsMineEstimateshippingmethodsbyaddressidRequest | |
[]QuoteDataShippingMethodInterface
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]