Build your site

Guides

Automatic receipts and invoices for online orders: how to set them up

Updated · By HaiPip

In short: To issue receipts automatically for online orders, connect your website's checkout to an invoicing service through its API, so that every confirmed payment creates one numbered document that is emailed to the customer. In Israel the document depends on your tax status: an osek patur issues a receipt, an osek murshe a tax invoice-receipt; services such as Morning (Green Invoice), iCount and EZcount can issue both. Test the whole flow in a test account before you take real payments.

Why does every online payment need a receipt or invoice?

A document per payment is how you, your accountant and the tax authority match the money in your bank account to real sales. In Israel, a business must document every payment it receives, and online payments are no exception. Customers also expect one: they need it for their own expenses, for warranty claims and for returns.

In the United States there is no single federal rule that every sale needs a receipt, but you still have to keep records that support your income, and customers expect an emailed receipt after paying online. Payment companies such as Stripe and PayPal can email a basic payment receipt; a business that needs numbered invoices usually adds accounting or invoicing software.

Doing this by hand works for a few orders a week. After that, documents get forgotten, numbers are skipped and the books stop matching the bank. Automation makes the document part of the payment itself.

What is the difference between a receipt, a tax invoice and an invoice-receipt?

The names differ by country, but the idea is the same: an invoice says what was sold and for how much, a receipt says the money was received. When the customer pays at the moment of purchase, as in an online store, one combined document often covers both.

In Israel the choice follows your registration with the Tax Authority. An osek patur (exempt dealer) does not charge VAT and issues a receipt (kabala). An osek murshe (licensed dealer) charges VAT and issues a tax invoice (cheshbonit mas); for an online sale paid on the spot, the usual document is a tax invoice-receipt (cheshbonit mas kabala). Ask your accountant which applies to you, and check whether business customers above a certain amount need an allocation number from the Tax Authority on their tax invoice; the threshold has been lowered in steps, so check the current amount.

DocumentWho issues itWhenShows VAT
Receipt (kabala)Osek patur, or any business confirming a paymentWhen money is receivedNo
Tax invoice (cheshbonit mas)Osek mursheWhen the sale or service happensYes
Tax invoice-receipt (cheshbonit mas kabala)Osek mursheSale and payment at the same time, typical onlineYes
Credit document (cheshbonit zikui)Osek mursheAfter a refund or a cancelled saleYes
Invoice or receipt (US)Any businessInvoice before payment, receipt afterSales tax where it applies

Which invoicing services can issue documents automatically?

Israeli businesses mostly use an online invoicing service approved for issuing digital documents. Morning (formerly Green Invoice), iCount and EZcount all offer an API, which is what lets a website or store create documents without you. Their plans and prices change, so compare them on their own sites as of December 2026, and check that API access is included in the plan you pick.

In the US, small businesses often rely on the receipt email from Stripe, Square or PayPal, and use QuickBooks, Xero or similar software when they need numbered invoices and bookkeeping.

What to checkWhy it matters
API access on your planWithout it, nothing can be issued automatically
A test (sandbox) environmentYou can try the whole flow without creating real tax documents
Document types you needReceipt for osek patur, tax invoice-receipt for osek murshe
Email to the customerThe service sends the document so you don't have to
Language and currencyEnglish documents and foreign currencies for customers abroad
Protection against duplicatesA retry after a network error must not create a second document

How does automatic issuing work behind the scenes?

The safe order is: the customer pays on the payment company's page, your system confirms with the payment company that the money really arrived, and only then asks the invoicing service for a document. The request includes the customer's name and email, what was bought, the amount, the currency and how it was paid. The service returns a document number and a link, and emails the document to the customer.

Most problems happen at the edges. If the invoicing service is down for a minute, the document must be retried later rather than lost. If the same payment is reported twice, it must still produce one document. And a test payment must never create a real tax document, or your numbering and books will be wrong.

How do I set it up and test it?

Plan an hour for this, and do it before your first real sale.

  • Confirm with your accountant which document you issue (receipt or tax invoice-receipt) and whether prices include VAT
  • Open an account at the invoicing service and fill in your business details, logo and numbering
  • Create an API key in the service's settings, usually under a developer or API section, and paste it into your store's invoicing settings
  • If the service has a test environment, connect that first and run a test payment from start to finish
  • Check the test document: your business details, the customer's name, the item, the amount, VAT and the email the customer received
  • Switch to the live account and make one small real purchase yourself, then cancel or refund it the way your accountant prefers
  • Decide who handles refunds: a refund usually needs a credit document or a cancellation in the invoicing service, which you may have to issue yourself

How does HaiPip issue receipts for orders and bookings?

In HaiPip, you connect your own Morning (Green Invoice), iCount or EZcount account once, and say whether you are a licensed business or an exempt one. After that, every paid store order, paid booking and paid payment link gets one document: a tax invoice-receipt for a licensed business, a receipt for an exempt one. The invoicing service emails it to the customer when the customer left an email address.

An order counts as paid only after HaiPip checks the payment with your payment company itself. Each payment gets one document, even if the payment is reported twice. If the invoicing service is unavailable, HaiPip tries again a few times and then shows the failure in your dashboard so you can issue it by hand. Morning and EZcount can be connected in test mode first; test payments never create real tax documents. Your API keys are stored encrypted and are never shown again after you save them. Refunds and credit documents stay in your invoicing service.

What are the most common mistakes with automatic receipts?

These are the problems accountants see most often when a store starts issuing documents on its own.

  • Issuing a tax invoice as an osek patur, or a plain receipt as an osek murshe
  • Testing with real payments in the live invoicing account, which leaves real documents to cancel
  • Issuing the document when the order is placed instead of when the payment is confirmed
  • Forgetting refunds: the document stays valid until you issue a credit document or cancel it
  • Letting the API key expire or be deleted without noticing that documents stopped
  • Not checking the first few documents by hand after launch

Questions and answers

Does an osek patur need to issue a receipt for online sales?

Yes. An osek patur documents every payment with a receipt (kabala). It does not issue tax invoices and does not add VAT. Your accountant can confirm the details for your business.

What is a tax invoice-receipt?

A tax invoice-receipt (cheshbonit mas kabala) is one Israeli document that serves as both a tax invoice and a receipt. An osek murshe uses it when the sale and the payment happen at the same time, as in most online orders.

Can my website issue invoices automatically?

Yes, if your store or booking system connects to an invoicing service through its API. Morning, iCount and EZcount in Israel, and accounting software such as QuickBooks or Xero in the US, all support this in some form; check which plan includes API access.

Do I need to send a receipt for every online order in the US?

There is no single federal rule requiring it, but you must keep records of your income, and customers expect a receipt. Stripe and PayPal can email one automatically; add invoicing software if you need numbered invoices.

What happens to the receipt when I refund an order?

The original document stays. You record the refund with a credit document or a cancellation in your invoicing service, as your accountant prefers. Most store integrations, including HaiPip's, leave this step to you.

Does HaiPip issue receipts for bookings too?

Yes. When a customer pays online for a booking, a payment link or a store order, HaiPip issues one document through your connected Morning, iCount or EZcount account.

More guides

Your website is one sentence away

Describe your business and see it for yourself.

Build your site