salesInvoices->create(['currency' => 'EUR', 'status' => \Mollie\Api\Types\SalesInvoiceStatus::DRAFT, 'vatScheme' => 'standard', 'vatMode' => 'inclusive', 'paymentTerm' => \Mollie\Api\Types\PaymentTerm::DAYS_30, 'recipientIdentifier' => 'XXXXX', 'recipient' => ['type' => 'consumer', 'email' => 'darth@vader.deathstar', 'streetAndNumber' => 'Sample Street 12b', 'postalCode' => '2000 AA', 'city' => 'Amsterdam', 'country' => 'NL', 'locale' => 'nl_NL'], 'lines' => [['description' => 'Monthly subscription fee', 'quantity' => 1, 'vatRate' => '21', 'unitPrice' => ['currency' => 'EUR', 'value' => '10.00']]]]); echo "

New sales invoice created with ID: " . \htmlspecialchars($salesInvoice->id) . "

"; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . \htmlspecialchars($e->getMessage()); }