{"modulePath":"github.com/hostinger/api-cli","version":"v1.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package orders\n\n## Variables\n\n```go\nvar GroupCmd = \u0026cobra.Command{\n\tUse:   \"orders\",\n\tShort: \"Orders commands\",\n}\n```\n\n```go\nvar ListCmd = \u0026cobra.Command{\n\tUse:   \"list\",\n\tShort: \"List orders\",\n\tLong:  \"Retrieve a paginated list of orders accessible to the authenticated client.\\n\\nThis endpoint returns orders of your hosting accounts as well as orders\\nof other client hosting accounts that have shared access with you.\\n\\nUse the available query parameters to filter results by order statuses\\nor specific order IDs for more targeted results.\",\n\tRun: func(cmd *cobra.Command, args []string) {\n\t\tr, err := api.Request().HostingListOrdersV1WithResponse(context.TODO(), listParams(cmd))\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\toutput.Format(cmd, r.Body, r.StatusCode())\n\t},\n}\n```\n\n","path":"github.com/hostinger/api-cli/cmd/hosting/orders","name":"orders","synopsis":"","isRedistributable":true}
