salesInvoices->update($invoiceId, ['status' => \Mollie\Api\Types\SalesInvoiceStatus::PAID, 'recipientIdentifier' => 'XXXXX', 'lines' => [['id' => 'line_001', 'description' => 'Updated subscription fee', 'quantity' => 2, 'vatRate' => '21', 'unitPrice' => ['currency' => 'EUR', 'value' => '15.00']]]]); echo "
Sales invoice updated with ID: " . \htmlspecialchars($updatedInvoice->id) . "
"; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . \htmlspecialchars($e->getMessage()); }