---
title: "Share patient records with the RDVM by generating a PDF export"
method: POST
path: "/Referrals/{id}/share-records"
tags: ["Referrals"]
---

# Share patient records with the RDVM by generating a PDF export

`POST /Referrals/{id}/share-records`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/Referrals/{id}/share-records`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/Referrals/:id/share-records/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- SharePatientRecordsRequest
  - `includeMedicalHistory` boolean
  - `includeSoapNotes` boolean
  - `includeMedications` boolean
  - `includeDischargeRecords` boolean
  - `includeTransactionHistory` boolean
  - `includeLabs` boolean
  - `includeImaging` boolean
  - `dateFrom` string, date-time, nullable
  - `dateTo` string, date-time, nullable
  - `order` integer

## Response `201`

Created

- ReferralDocumentDto
  - `id` string
  - `referralId` string
  - `documentType` string
  - `fileName` string
  - `description` string, nullable
  - `fileUrl` string, nullable
  - `fileSizeBytes` union
    - integer
    - string, int64
  - `mimeType` string, nullable
  - `uploadedById` string
  - `uploadedBy` ReferralUserSummaryDto
    - `id` string
    - `name` string
    - `role` string, nullable
  - `uploadedAt` string, date-time
  - `isSent` boolean
  - `sentAt` string, date-time, nullable
  - `createdAt` string, date-time

## Other responses

- `400`: Bad Request

## Changes

- **2026-10-21** `85ee96c0bb96`: 3 info
  - added the new optional request property `order` (media type: application/json)
  - added the new optional request property `order` (media type: text/json)
  - added the new optional request property `order` (media type: application/*+json)

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/Referrals/:id/share-records/post.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
