All URIs are relative to http://example.com/rest/default
Method | HTTP request | Description |
---|---|---|
PostV1NegotiableQuoteDraft | Post /V1/negotiableQuote/draft | negotiableQuote/draft |
int32 PostV1NegotiableQuoteDraft(ctx).PostV1NegotiableQuoteDraftRequest(postV1NegotiableQuoteDraftRequest).Execute()
negotiableQuote/draft
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Hevelop/go-client-magento"
)
func main() {
postV1NegotiableQuoteDraftRequest := *openapiclient.NewPostV1NegotiableQuoteDraftRequest(int32(123)) // PostV1NegotiableQuoteDraftRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.NegotiableQuoteDraftAPI.PostV1NegotiableQuoteDraft(context.Background()).PostV1NegotiableQuoteDraftRequest(postV1NegotiableQuoteDraftRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NegotiableQuoteDraftAPI.PostV1NegotiableQuoteDraft``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostV1NegotiableQuoteDraft`: int32
fmt.Fprintf(os.Stdout, "Response from `NegotiableQuoteDraftAPI.PostV1NegotiableQuoteDraft`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiPostV1NegotiableQuoteDraftRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
postV1NegotiableQuoteDraftRequest | PostV1NegotiableQuoteDraftRequest |
int32
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]