---
search:
  tags:
    - Compliance
    - GET
seo:
  description: >-
    Any signed in user. Builds the EFRIS payload for one sale:… Reference for
    the GET /api/v1/compliance/efris-preview/{saleId} endpoint in the PharmaFlow
    API.
sidebar:
  label: Preview the EFRIS payload for a sale
  badge: GET
title: Preview the EFRIS payload for a sale
type: openapi-operation
---
Any signed in user. Builds the EFRIS payload for one sale: seller, buyer, totals, and items. The payload is a preview still to be submitted to EFRIS, and an unknown sale id is a 404.

`GET /api/v1/compliance/efris-preview/{saleId}`

**Responses**

- `200` — The fiscal payload for the sale
- `401` — Not authenticated
- `404` — Sale not found

Response example, 200:

```json
{
  "seller": {
    "tin": "string",
    "branch_id": "string",
    "invoice_number": "string",
    "icv": -9007199254740991
  },
  "buyer": {
    "tin": "string",
    "name": "string"
  },
  "totals": {
    "subtotal": 0,
    "vat": 0,
    "total": 0,
    "vat_breakdown": [
      {
        "rate": 0,
        "taxable_amount": 0,
        "vat_amount": 0
      }
    ]
  },
  "items": [
    {
      "id": "string",
      "sale_id": "string",
      "medicine_id": "string",
      "batch_id": "string",
      "quantity": -9007199254740991,
      "unit_price": 0,
      "vat_rate": -9007199254740991,
      "vat_amount": 0,
      "cost_at_sale": 0
    }
  ],
  "fiscalization": {
    "mode": "string",
    "note": "string"
  }
}
```
