---
search:
  tags:
    - Sales
    - GET
seo:
  description: >-
    Any signed in user. Returns one sale with its items and the same money and…
    Reference for the GET /api/v1/sales/{saleId} endpoint in the PharmaFlow API.
sidebar:
  label: Read a sale
  badge: GET
title: Read a sale
type: openapi-operation
---
Any signed in user. Returns one sale with its items and the same money and identity fields. Reading another pharmacist's sale or a manager another branch's gets 404, disclosing nothing.

`GET /api/v1/sales/{saleId}`

**Responses**

- `200` — The sale and its items
- `401` — Not authenticated
- `404` — Sale not found

Response example, 200:

```json
{
  "id": "string",
  "branch_id": "string",
  "user_id": "string",
  "invoice_number": "string",
  "uuid": "string",
  "icv": -9007199254740991,
  "client_mutation_id": "string",
  "payload_hash": "string",
  "device_id": "string",
  "sync_status": "string",
  "subtotal_amount": "string",
  "vat_amount": "string",
  "total_amount": "string",
  "currency_code": "string",
  "fx_rate_to_base": "string",
  "base_currency_code": "string",
  "base_total_amount": "string",
  "vat_breakdown": [
    {
      "rate": 0,
      "taxable_amount": 0,
      "vat_amount": 0
    }
  ],
  "payment_method": "string",
  "payment_lines": [
    {
      "method": "string",
      "amount": 0
    }
  ],
  "notes": "string",
  "session_id": "string",
  "customer_id": "string",
  "customer_name": "string",
  "coupon_id": "string",
  "global_discount": "string",
  "coupon_discount": "string",
  "zatca_status": "string",
  "zatca_xml": "string",
  "zatca_hash": "string",
  "is_deleted": -9007199254740991,
  "sold_at": "string",
  "pharmacist_name": "string",
  "customer_display_name": "string",
  "branch_name": "string",
  "branch_address": "string",
  "branch_vat_number": "string",
  "organization_name": "string",
  "organization_legal_name": "string",
  "organization_phone": "string",
  "organization_email": "string",
  "organization_address": "string",
  "organization_tin": "string",
  "organization_vat_number": "string",
  "receipt_header": "string",
  "receipt_footer": "string",
  "return_policy": "string",
  "items": [
    {
      "id": "string",
      "sale_id": "string",
      "medicine_id": "string",
      "batch_id": "string",
      "quantity": -9007199254740991,
      "unit_price": "string",
      "vat_rate": "string",
      "vat_amount": "string",
      "cost_at_sale": "string",
      "medicine_name": "string"
    }
  ]
}
```
