whatis / yandex-market-api
API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом. В числе возможностей интеграции: * управление каталогом товаров и витриной, * обработка заказов, * изменение настроек магазина, * получение отчетов.
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2024-10-25 11:37:49 UTC
README
API Яндекс Маркета помогает продавцам автоматизировать и упростить работу с маркетплейсом.
В числе возможностей интеграции:
-
управление каталогом товаров и витриной,
-
обработка заказов,
-
изменение настроек магазина,
-
получение отчетов.
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
To install the bindings via Composer, add the following to composer.json
:
composer require whatis/yandex-market-api
Or
{ "require": { "whatis/yandex-market-api": "1.0.0" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: OAuth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OpenAPI\Client\Api\BidsApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $business_id = 56; // int | Идентификатор кабинета. Чтобы узнать идентификатор, воспользуйтесь запросом [GET campaigns](../../reference/campaigns/getCampaigns.md#businessdto). ℹ️ [Что такое кабинет и магазин на Маркете](https://yandex.ru/support/marketplace/account/introduction.html) $page_token = eyBuZXh0SWQ6IDIzNDIgfQ==; // string | Идентификатор страницы c результатами. Если параметр не указан, возвращается самая старая страница. Рекомендуется передавать значение выходного параметра `nextPageToken`, полученное при последнем запросе. Если задан `page_token`, параметры `offset`, `page_number` и `page_size` игнорируются. $limit = 20; // int | Количество товаров на одной странице. $get_bids_info_request = new \OpenAPI\Client\Model\GetBidsInfoRequest(); // \OpenAPI\Client\Model\GetBidsInfoRequest | description try { $result = $apiInstance->getBidsInfoForBusiness($business_id, $page_token, $limit, $get_bids_info_request); print_r($result); } catch (Exception $e) { echo 'Exception when calling BidsApi->getBidsInfoForBusiness: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://api.partner.market.yandex.ru
Models
- AcceptOrderCancellationRequest
- AddHiddenOffersRequest
- AddOffersToArchiveDTO
- AddOffersToArchiveErrorDTO
- AddOffersToArchiveErrorType
- AddOffersToArchiveRequest
- AddOffersToArchiveResponse
- AgeDTO
- AgeUnitType
- ApiClientDataErrorResponse
- ApiErrorDTO
- ApiErrorResponse
- ApiForbiddenErrorResponse
- ApiLimitErrorResponse
- ApiLockedErrorResponse
- ApiNotFoundErrorResponse
- ApiResponse
- ApiResponseStatusType
- ApiServerErrorResponse
- ApiUnauthorizedErrorResponse
- BaseCampaignOfferDTO
- BaseOfferDTO
- BasePriceDTO
- BidRecommendationItemDTO
- BriefOrderItemDTO
- BriefOrderItemInstanceDTO
- BusinessDTO
- CampaignDTO
- CampaignSettingsDTO
- CampaignSettingsDeliveryDTO
- CampaignSettingsLocalRegionDTO
- CampaignSettingsScheduleDTO
- CampaignSettingsScheduleSourceType
- CampaignSettingsTimePeriodDTO
- CategoryContentParametersDTO
- CategoryDTO
- CategoryParameterDTO
- ChangeOutletRequest
- ChatMessageDTO
- ChatMessagePayloadDTO
- ChatMessageSenderType
- ChatMessagesResultDTO
- ChatStatusType
- ChatType
- ConfirmPricesRequest
- ConfirmShipmentRequest
- CreateChatRequest
- CreateChatResponse
- CreateChatResultDTO
- CreateOutletResponse
- CurrencyType
- DayOfWeekType
- DeleteCampaignOffersDTO
- DeleteCampaignOffersRequest
- DeleteCampaignOffersResponse
- DeleteHiddenOffersRequest
- DeleteOffersDTO
- DeleteOffersFromArchiveDTO
- DeleteOffersFromArchiveRequest
- DeleteOffersFromArchiveResponse
- DeleteOffersRequest
- DeleteOffersResponse
- DeliveryServiceDTO
- DeliveryServiceInfoDTO
- DeliveryServicesDTO
- DocumentDTO
- EacVerificationResultDTO
- EacVerificationStatusType
- EmptyApiResponse
- EnrichedMappingsOfferDTO
- EnrichedModelDTO
- EnrichedOrderBoxLayoutDTO
- FeedCategoryDTO
- FeedContentDTO
- FeedContentErrorDTO
- FeedContentErrorType
- FeedDTO
- FeedDownloadDTO
- FeedDownloadErrorDTO
- FeedDownloadErrorType
- FeedIndexLogsErrorDTO
- FeedIndexLogsErrorType
- FeedIndexLogsFeedDTO
- FeedIndexLogsIndexType
- FeedIndexLogsOffersDTO
- FeedIndexLogsRecordDTO
- FeedIndexLogsResultDTO
- FeedIndexLogsStatusType
- FeedParameterDTO
- FeedPlacementDTO
- FeedPublicationDTO
- FeedPublicationFullDTO
- FeedPublicationPriceAndStockUpdateDTO
- FeedStatusType
- FeedbackAuthorDTO
- FeedbackCommentAuthorDTO
- FeedbackCommentAuthorType
- FeedbackCommentDTO
- FeedbackDTO
- FeedbackDeliveryType
- FeedbackFactorDTO
- FeedbackGradesDTO
- FeedbackListDTO
- FeedbackOrderDTO
- FeedbackShopDTO
- FeedbackStateType
- FieldStateType
- FlippingPagerDTO
- ForwardScrollingPagerDTO
- FulfillmentWarehouseDTO
- FulfillmentWarehousesDTO
- FullOutletDTO
- FullOutletLicenseDTO
- GenerateGoodsMovementReportRequest
- GenerateGoodsRealizationReportRequest
- GenerateGoodsTurnoverRequest
- GeneratePricesReportRequest
- GenerateReportDTO
- GenerateReportResponse
- GenerateShowsSalesReportRequest
- GenerateStocksOnWarehousesReportRequest
- GenerateUnitedMarketplaceServicesReportRequest
- GenerateUnitedNettingReportRequest
- GenerateUnitedOrdersRequest
- GetAllOffersResponse
- GetBidsInfoRequest
- GetBidsInfoResponse
- GetBidsInfoResponseDTO
- GetBidsRecommendationsRequest
- GetBidsRecommendationsResponse
- GetBidsRecommendationsResponseDTO
- GetBusinessBuyerInfoResponse
- GetBusinessDocumentsInfoResponse
- GetCampaignCategoriesResponse
- GetCampaignLoginsResponse
- GetCampaignOfferDTO
- GetCampaignOffersRequest
- GetCampaignOffersResponse
- GetCampaignOffersResultDTO
- GetCampaignRegionResponse
- GetCampaignResponse
- GetCampaignSettingsResponse
- GetCampaignsResponse
- GetCategoriesResponse
- GetCategoryContentParametersResponse
- GetChatHistoryRequest
- GetChatHistoryResponse
- GetChatInfoDTO
- GetChatsInfoDTO
- GetChatsRequest
- GetChatsResponse
- GetDeliveryServicesResponse
- GetFeedCategoriesResponse
- GetFeedIndexLogsResponse
- GetFeedResponse
- GetFeedbackListResponse
- GetFeedsResponse
- GetFulfillmentWarehousesResponse
- GetGoodsStatsRequest
- GetGoodsStatsResponse
- GetHiddenOffersResponse
- GetHiddenOffersResultDTO
- GetMappingDTO
- GetModelsOffersResponse
- GetModelsRequest
- GetModelsResponse
- GetOfferCardsContentStatusRequest
- GetOfferCardsContentStatusResponse
- GetOfferDTO
- GetOfferMappingDTO
- GetOfferMappingEntriesResponse
- GetOfferMappingsRequest
- GetOfferMappingsResponse
- GetOfferMappingsResultDTO
- GetOfferRecommendationsRequest
- GetOfferRecommendationsResponse
- GetOffersResponse
- GetOrderBuyerInfoResponse
- GetOrderLabelsDataResponse
- GetOrderResponse
- GetOrdersResponse
- GetOrdersStatsRequest
- GetOrdersStatsResponse
- GetOutletLicensesResponse
- GetOutletResponse
- GetOutletsResponse
- GetPriceDTO
- GetPriceWithDiscountDTO
- GetPriceWithVatDTO
- GetPricesByOfferIdsRequest
- GetPricesByOfferIdsResponse
- GetPricesResponse
- GetQuarantineOffersRequest
- GetQuarantineOffersResponse
- GetQuarantineOffersResultDTO
- GetRegionWithChildrenResponse
- GetRegionsResponse
- GetReportInfoResponse
- GetReturnResponse
- GetReturnsResponse
- GetShipmentOrdersInfoResponse
- GetShipmentResponse
- GetSuggestedOfferMappingEntriesRequest
- GetSuggestedOfferMappingEntriesResponse
- GetSuggestedOfferMappingsRequest
- GetSuggestedOfferMappingsResponse
- GetSuggestedOfferMappingsResultDTO
- GetWarehouseStocksDTO
- GetWarehouseStocksRequest
- GetWarehouseStocksResponse
- GetWarehousesResponse
- GoodsStatsDTO
- GoodsStatsGoodsDTO
- GoodsStatsWarehouseDTO
- GoodsStatsWeightDimensionsDTO
- GpsDTO
- HiddenOfferDTO
- LicenseCheckStatusType
- LicenseType
- LogisticPickupPointDTO
- LogisticPointType
- MappingsOfferDTO
- MappingsOfferInfoDTO
- ModelDTO
- ModelOfferDTO
- ModelPriceDTO
- OfferAvailabilityStatusType
- OfferCampaignStatusDTO
- OfferCampaignStatusType
- OfferCardDTO
- OfferCardRecommendationDTO
- OfferCardRecommendationType
- OfferCardStatusType
- OfferCardsContentStatusDTO
- OfferConditionDTO
- OfferConditionQualityType
- OfferConditionType
- OfferContentDTO
- OfferContentErrorDTO
- OfferContentErrorType
- OfferDTO
- OfferErrorDTO
- OfferForRecommendationDTO
- OfferManualDTO
- OfferMappingDTO
- OfferMappingEntriesDTO
- OfferMappingEntryDTO
- OfferMappingInfoDTO
- OfferMappingKindType
- OfferMappingSuggestionsListDTO
- OfferParamDTO
- OfferPriceByOfferIdsListResponseDTO
- OfferPriceByOfferIdsResponseDTO
- OfferPriceDTO
- OfferPriceFeedDTO
- OfferPriceListResponseDTO
- OfferPriceResponseDTO
- OfferProcessingNoteDTO
- OfferProcessingNoteType
- OfferProcessingStateDTO
- OfferProcessingStatusType
- OfferRecommendationDTO
- OfferRecommendationInfoDTO
- OfferRecommendationsResultDTO
- OfferSellingProgramDTO
- OfferSellingProgramStatusType
- OfferType
- OfferWeightDimensionsDTO
- OffersDTO
- OptionValuesLimitedDTO
- OrderBoxLayoutDTO
- OrderBoxLayoutItemDTO
- OrderBoxLayoutPartialCountDTO
- OrderBoxesLayoutDTO
- OrderBusinessBuyerDTO
- OrderBusinessDocumentsDTO
- OrderBuyerBasicInfoDTO
- OrderBuyerDTO
- OrderBuyerInfoDTO
- OrderBuyerType
- OrderCancellationReasonType
- OrderCourierDTO
- OrderDTO
- OrderDeliveryAddressDTO
- OrderDeliveryDTO
- OrderDeliveryDateDTO
- OrderDeliveryDateReasonType
- OrderDeliveryDatesDTO
- OrderDeliveryDispatchType
- OrderDeliveryEacType
- OrderDeliveryPartnerType
- OrderDeliveryType
- OrderDigitalItemDTO
- OrderDocumentStatusType
- OrderItemDTO
- OrderItemDetailDTO
- OrderItemInstanceDTO
- OrderItemInstanceModificationDTO
- OrderItemInstanceType
- OrderItemModificationDTO
- OrderItemPromoDTO
- OrderItemStatusType
- OrderItemSubsidyDTO
- OrderItemsModificationRequestReasonType
- OrderItemsModificationResultDTO
- OrderLabelDTO
- OrderLiftType
- OrderParcelBoxDTO
- OrderParcelStatusType
- OrderPaymentMethodType
- OrderPaymentType
- OrderPromoType
- OrderShipmentDTO
- OrderStateDTO
- OrderStatsStatusType
- OrderStatusChangeDTO
- OrderStatusChangeDeliveryDTO
- OrderStatusChangeDeliveryDatesDTO
- OrderStatusType
- OrderSubsidyType
- OrderSubstatusType
- OrderTaxSystemType
- OrderTrackDTO
- OrderUpdateStatusType
- OrderVatType
- OrdersShipmentInfoDTO
- OrdersStatsCommissionDTO
- OrdersStatsCommissionType
- OrdersStatsDTO
- OrdersStatsDeliveryRegionDTO
- OrdersStatsDetailsDTO
- OrdersStatsItemDTO
- OrdersStatsItemStatusType
- OrdersStatsOrderDTO
- OrdersStatsOrderPaymentType
- OrdersStatsPaymentDTO
- OrdersStatsPaymentOrderDTO
- OrdersStatsPaymentSourceType
- OrdersStatsPaymentType
- OrdersStatsPriceDTO
- OrdersStatsPriceType
- OrdersStatsStockType
- OrdersStatsWarehouseDTO
- OutletAddressDTO
- OutletDTO
- OutletDeliveryRuleDTO
- OutletLicenseDTO
- OutletLicensesResponseDTO
- OutletResponseDTO
- OutletStatusType
- OutletType
- OutletVisibilityType
- OutletWorkingScheduleDTO
- OutletWorkingScheduleItemDTO
- PageFormatType
- PagedReturnsDTO
- PalletsCountDTO
- ParameterType
- ParameterValueConstraintsDTO
- ParameterValueDTO
- ParameterValueOptionDTO
- ParcelBoxDTO
- ParcelBoxLabelDTO
- ParcelDTO
- PartnerShipmentWarehouseDTO
- PickupAddressDTO
- PlacementType
- PriceCompetitivenessThresholdsDTO
- PriceCompetitivenessType
- PriceDTO
- PriceQuarantineVerdictDTO
- PriceQuarantineVerdictParamNameType
- PriceQuarantineVerdictParameterDTO
- PriceQuarantineVerdictType
- PriceRecommendationItemDTO
- PriceSuggestDTO
- PriceSuggestOfferDTO
- PriceSuggestType
- ProvideOrderDigitalCodesRequest
- ProvideOrderItemIdentifiersRequest
- ProvideOrderItemIdentifiersResponse
- PutSkuBidsRequest
- QuantumDTO
- QuarantineOfferDTO
- RecipientType
- RefundStatusType
- RegionDTO
- RegionType
- RegionalModelInfoDTO
- ReportFormatType
- ReportInfoDTO
- ReportStatusType
- ReportSubStatusType
- ReturnDTO
- ReturnDecisionDTO
- ReturnDecisionReasonType
- ReturnDecisionSubreasonType
- ReturnDecisionType
- ReturnInstanceDTO
- ReturnInstanceStatusType
- ReturnInstanceStockType
- ReturnItemDTO
- ReturnRequestDecisionType
- ReturnShipmentStatusType
- ReturnType
- ScrollingPagerDTO
- SearchModelsResponse
- SearchShipmentsRequest
- SearchShipmentsResponse
- SearchShipmentsResponseDTO
- SellingProgramType
- SendMessageToChatRequest
- SetFeedParamsRequest
- SetOrderBoxLayoutRequest
- SetOrderBoxLayoutResponse
- SetOrderDeliveryDateRequest
- SetOrderDeliveryTrackCodeRequest
- SetOrderShipmentBoxesRequest
- SetOrderShipmentBoxesResponse
- SetReturnDecisionRequest
- SetShipmentPalletsCountRequest
- ShipmentActionType
- ShipmentBoxesDTO
- ShipmentDTO
- ShipmentInfoDTO
- ShipmentPalletLabelPageFormatType
- ShipmentStatusChangeDTO
- ShipmentStatusType
- ShipmentType
- ShowsSalesGroupingType
- SkuBidItemDTO
- SkuBidRecommendationItemDTO
- SortOrderType
- StockDTO
- StockItemDTO
- StockType
- SuggestOfferPriceDTO
- SuggestPricesRequest
- SuggestPricesResponse
- SuggestPricesResultDTO
- SuggestedOfferDTO
- SuggestedOfferMappingDTO
- TariffDTO
- TariffType
- TimePeriodDTO
- TimeUnitType
- TrackDTO
- TransferOrdersFromShipmentRequest
- TurnoverDTO
- TurnoverType
- UpdateBusinessOfferPriceDTO
- UpdateBusinessPricesRequest
- UpdateCampaignOfferDTO
- UpdateCampaignOffersRequest
- UpdateMappingDTO
- UpdateMappingsOfferDTO
- UpdateOfferContentRequest
- UpdateOfferContentResponse
- UpdateOfferContentResultDTO
- UpdateOfferDTO
- UpdateOfferMappingDTO
- UpdateOfferMappingEntryDTO
- UpdateOfferMappingEntryRequest
- UpdateOfferMappingsRequest
- UpdateOrderItemRequest
- UpdateOrderStatusDTO
- UpdateOrderStatusRequest
- UpdateOrderStatusResponse
- UpdateOrderStatusesDTO
- UpdateOrderStatusesRequest
- UpdateOrderStatusesResponse
- UpdateOrderStorageLimitRequest
- UpdateOutletLicenseRequest
- UpdatePriceWithDiscountDTO
- UpdatePricesRequest
- UpdateStocksRequest
- UpdateTimeDTO
- ValueRestrictionDTO
- VerifyOrderEacRequest
- VerifyOrderEacResponse
- WarehouseAddressDTO
- WarehouseDTO
- WarehouseGroupDTO
- WarehouseOfferDTO
- WarehouseOffersDTO
- WarehouseStockDTO
- WarehouseStockType
- WarehousesDTO
Authorization
Authentication schemes defined for the API:
OAuth
- Type:
OAuth
- Flow:
implicit
- Authorization URL:
https://oauth.yandex.ru/authorize
- Scopes:
- market:partner-api: API Яндекс.Маркета / Поиска по товарам для партнеров
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
LATEST
- Generator version:
7.4.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen