---
eip: 5570
label: ERC-5570
title: Digital Receipt Non-Fungible Tokens
status: Final
type: Standards Track
category: ERC
created: 2022-09-01
requires: 721
official: https://eips.ethereum.org/EIPS/eip-5570
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5570.md
canonical: https://eips.huatuo.xyz/eip-5570/
lang: en
tldr: A JSON metadata schema that turns an ERC-721 token into a digital purchase receipt (vendor, date, line items, tax, optional vendor signature), so on-chain purchases come with machine-readable records.
tags: [nft, erc-721, receipts, metadata, commerce]
---

# ERC-5570: Digital Receipt Non-Fungible Tokens

> Non-Fungible Tokens as digital receipts for physical purchases, where the metadata represents a JSON receipt

**TL;DR:** A JSON metadata schema that turns an ERC-721 token into a digital purchase receipt (vendor, date, line items, tax, optional vendor signature), so on-chain purchases come with machine-readable records.

## What problem does it solve?

Point-of-sale systems are digital, but receipts usually reach customers as paper or email. Anyone who needs them for accounting or tax ends up typing them in again or scanning them: digital, then analogue, then digital again.

When a purchase is paid on-chain, ERC-5570 proposes issuing the receipt as an NFT in the **same transaction flow**. A wallet can then link straight from the payment to a structured, machine-readable receipt. The receipt can also carry details such as serial numbers, and it can be signed by the vendor.

## How it works

It is an [ERC-721](/eip-721/) token with no new functions. The standard is the **shape of the metadata JSON** returned by `tokenURI`.

Suggested flow:

1. At checkout, the customer chooses to mint a receipt NFT.
2. The contract mints the token to the customer.
3. When the order is fulfilled, the vendor uploads the receipt JSON as that token's metadata.

**Root schema.** It keeps the usual ERC-721 metadata fields `name`, `description` and `image` (all required) and adds:

- `receipt` (required), containing:
  - `id`: the vendor's receipt ID
  - `date`
  - `vendor`: `name` and `website` required, plus optional `logo`, `address` and `contact`
  - `items`: at least one line item
  - `comments` (optional)
- `signature` (optional): the vendor's digital signature over the receipt data
- `extra` (optional): free-form notes

**Line item schema.** Required fields are `id`, `title`, `date`, `amount` (unit price excluding tax), `tax` and `quantity`. `tax` is an array of `{name, rate, amount}` entries, such as GST or PST. Optional fields are `description`, `link`, `contract` and `serial_number`.

Because the extra data sits under one new `receipt` key, existing NFT viewers still show the name and image.

## Sample code

Example metadata for one receipt (all values illustrative):

```json
{
  "name": "Receipt #A-1029",
  "description": "Digital receipt for order A-1029",
  "image": "ipfs://<cid>/receipt-A-1029.png",
  "receipt": {
    "id": "A-1029",
    "date": "2026-10-19",
    "vendor": { "name": "Example Store", "website": "https://store.example" },
    "items": [
      {
        "id": "SKU-42",
        "title": "Headphones",
        "date": "2026-10-19",
        "amount": 100.0,
        "tax": [{ "name": "GST", "rate": 10, "amount": 10.0 }],
        "quantity": 1,
        "serial_number": "HP-0001"
      }
    ]
  },
  "signature": "0x…"
}
```

If the receipt is filled in after minting, emit [ERC-4906](/eip-4906/) `MetadataUpdate` so viewers refresh it.

## Things to know

- **Status: Final.**
- **Privacy.** Receipts can contain personal data and purchase history. NFT metadata is usually public, and the link from an address to its purchases is permanent. The spec says personal data should be encrypted but leaves the method out of scope. Never publish customer details in plaintext.
- The signature format is not defined, so wallets cannot verify it in a standard way unless vendor and verifier agree on a scheme, for example EIP-712.
- The spec does not settle currency, rounding, or whether receipts may be transferred. Decide these per implementation.
- Whether an NFT receipt meets tax or bookkeeping requirements depends on the jurisdiction. Check with a professional before relying on it.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-5570
