Skip to content

Commit 7d26454

Browse files
committed
invoice services Descargar XML por ID sample added
1 parent c1d3de8 commit 7d26454

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

examples.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,8 +1125,10 @@
11251125
// ------------------------------------------------------------------
11261126
// Descargar XML por ID
11271127
// ------------------------------------------------------------------
1128-
// $apiResponse = $client->getInvoiceService()->getXml("fc2bb1aa-12a7-4d92-bdea-57d589bd29d6");
1129-
// consoleLog($apiResponse);
1128+
$apiResponse = $client->getInvoiceService()->getXml("fc2bb1aa-12a7-4d92-bdea-57d589bd29d6");
1129+
consoleLog($apiResponse);
1130+
1131+
11301132

11311133
// ------------------------------------------------------------------
11321134
// Enviar factura por correo (por valores)

src/Services/InvoiceService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function getXml(string $id): FiscalApiHttpResponseInterface
9696
}
9797

9898
return $this->httpClient->get(
99-
$this->buildResourceUrl($id . '/xml')
99+
$this->buildResourceUrl($id , 'xml')
100100
);
101101
}
102102

0 commit comments

Comments
 (0)