Files
Sipro-Marketplaces/pkg/api/yandex/ymclient/docs/BusinessesAPI.md
2025-08-15 11:10:28 +03:00

2.8 KiB
Raw Blame History

\BusinessesAPI

All URIs are relative to https://api.partner.market.yandex.ru

Method HTTP request Description
GetBusinessSettings Post /businesses/{businessId}/settings Настройки кабинета

GetBusinessSettings

GetBusinessSettingsResponse GetBusinessSettings(ctx, businessId).Execute()

Настройки кабинета

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	businessId := int64(789) // int64 | Идентификатор кабинета. Чтобы его узнать, воспользуйтесь запросом [:no-translate[GET campaigns]](:no-translate[../../reference/campaigns/getCampaigns.md]).   [Что такое кабинет и магазин на Маркете](:no-translate[https://yandex.ru/support/marketplace/account/introduction.html]) 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
businessId int64 Идентификатор кабинета. Чтобы его узнать, воспользуйтесь запросом :no-translate[GET campaigns]. Что такое кабинет и магазин на Маркете

Other Parameters

Other parameters are passed through a pointer to a apiGetBusinessSettingsRequest struct via the builder pattern

Name Type Description Notes

Return type

GetBusinessSettingsResponse

Authorization

ApiKey, OAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]