qvalia->httpClient($uri, (\App\Enum\HttpVerb::GET)->value, []); return $r->object(); } /** * send * * @param string $legal_entity_id * @param string $document * @return mixed */ public function send(string $legal_entity_id, string $document) { // Set Headers // Either "application/json" (default) or "application/xml" $headers = [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', // 'Content-Type' => 'application/xml', ]; $data = [ 'Invoice' => $document ]; $uri = "/transaction/{$legal_entity_id}/invoices/outgoing"; $r = $this->qvalia->httpClient($uri, (\App\Enum\HttpVerb::POST)->value, $data, $headers); return $r->object(); } }