# Merchant side invoicing

{% hint style="info" %}
Implementation is **OPTIONAL**
{% endhint %}

### General Flow

1. Customer scans products to shopping cart.
2. Smarts will send shopping cart to merchant when customer is ready to pay for the purchase.
3. Merchant will response with generated receipt
4. Customer will pay for receipt.
5. Smarts will send receipt payment confirmation to merchant.

### Configuration

Visit your store configuration page in Smarts manager UI. Switch store side invoicing to **ON** position and implement required endpoints.

### Implementation

Implement following endpoints

[**Create receipt endpoint**](/integration/custom-integration/merchant-side-invoicing/create-receipt.md)

[**Confirm receipt payment endpoint**](/integration/custom-integration/merchant-side-invoicing/confirm-receipt-payment.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.smarts.ee/integration/custom-integration/merchant-side-invoicing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
