Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 1.92 KB

OrdersIdUnholdAPI.md

File metadata and controls

79 lines (49 loc) · 1.92 KB

\OrdersIdUnholdAPI

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

Method HTTP request Description
PostV1OrdersIdUnhold Post /V1/orders/{id}/unhold orders/{id}/unhold

PostV1OrdersIdUnhold

bool PostV1OrdersIdUnhold(ctx, id).Execute()

orders/{id}/unhold

Example

package main

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

func main() {
	id := int32(56) // int32 | The order ID.

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 The order ID.

Other Parameters

Other parameters are passed through a pointer to a apiPostV1OrdersIdUnholdRequest 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]