diff --git a/src/Parthenon/Billing/BillaBear/Invoice/InvoiceProvider.php b/src/Parthenon/Billing/BillaBear/Invoice/InvoiceProvider.php index 9ae96993..a0c30872 100644 --- a/src/Parthenon/Billing/BillaBear/Invoice/InvoiceProvider.php +++ b/src/Parthenon/Billing/BillaBear/Invoice/InvoiceProvider.php @@ -35,7 +35,7 @@ public function __construct(private SdkFactory $sdkFactory) public function fetchInvoices(CustomerInterface $customer, mixed $lastKey = null): array { - $response = $this->sdkFactory->createCustomersApi()->listCustomerInvoices($customer->getExternalCustomerReference()); + $response = $this->sdkFactory->createCustomersApi()->getInvoicesForCustomer($customer->getExternalCustomerReference()); $output = []; foreach ($response->getData() as $invoice) {