protected function makeBody($pointHeaders, $data)
    {
        unset($data['uriData']);
        $apiHeaders = array_map(function ($value) {
            return $value->get();
        }, $this->api->getHeaders()->get());

        $dataChain = $this->endpoint->getMethod() == 'GET' ? 'query' : 'json';
        $body = array_merge($apiHeaders, $pointHeaders);
        $body[$dataChain] = $data;

        $request = new Request($body, $this->endpoint->getTransformer('request'), $dataChain);

        return $request->getBody($dataChain);
    }