src/Yandex/Market/Partner/PartnerClient.php
public function setOrderStatus($orderId, $status, $subStatus = null)
    {
        $resource = 'campaigns/' . $this->campaignId . '/orders/' . $orderId . '/status.json';

        $data = [
            "order" => [
                "status" => $status
            ]
        ];
        if ($subStatus) {
            $data['order']['substatus'] = $subStatus;
        }

        $response = $this->sendRequest(
            'PUT',
            $this->getServiceUrl($resource),
            [
                'json' => $data
            ]
        );

        $decodedResponseBody = $this->getDecodedBody($response->getBody());

        $updateOrderStatusResponse = new UpdateOrderStatusResponse($decodedResponseBody);
        return $updateOrderStatusResponse->getOrder();
    }
public function setOrderStatus($orderId, $status, $subStatus = null)
    {
        $resource = 'campaigns/' . $this->campaignId . '/orders/' . $orderId . '/status.json';

        $data = [
            "order" => [
                "status" => $status
            ]
        ];
        if ($subStatus) {
            $data['order']['substatus'] = $subStatus;
        }

        $response = $this->sendRequest(
            'PUT',
            $this->getServiceUrl($resource),
            [
                'json' => $data
            ]
        );

        $decodedResponseBody = $this->getDecodedBody($response->getBody());

        $updateOrderStatusResponse = new UpdateOrderStatusResponse($decodedResponseBody);
        return $updateOrderStatusResponse->getOrder();
    }
public function setOrderStatus ( $ orderId , $ status , $ subStatus = null ) { $ resource = 'campaigns/' . $ this -> campaignId . '/orders/' . $ orderId . '/status.json' ; $ data = [ "order" => [ "status" => $ status ] ] ; if ( $ subStatus ) { $ data [ 'order' ] [ 'substatus' ] = $ subStatus ; } $ response = $ this -> sendRequest ( 'PUT' , $ this -> getServiceUrl ( $ resource ) , [ 'json' => $ data ] ) ; $ decodedResponseBody = $ this -> getDecodedBody ( $ response -> getBody ( ) ) ; $ updateOrderStatusResponse = new UpdateOrderStatusResponse ( $ decodedResponseBody ) ; return $ updateOrderStatusResponse -> getOrder ( ) ; }
Send changed status to Yandex.Market

@param int $orderId
@param string $status
@param null|string $subStatus
@return Order

@link http://api.yandex.ru/market/partner/doc/dg/reference/put-campaigns-id-orders-id-status.xml
Send changed status to Yandex . Market