---
title: "Get CDA document data"
method: GET
path: "/api/files/sales/{saleGuid}/cdaDocumentData"
tags: ["Sale CDA document data"]
---

# Get CDA document data

`GET /api/files/sales/{saleGuid}/cdaDocumentData`

Returns the CDA document data and field schema for a Sale. If no record exists, the field schema is resolved from the Forms API and DocumentData is returned as null.

### Validation & Requirements
#### Required Parameters
- `saleGuid` (path, string, format=guid)

#### Required JSON Body Fields
- None

#### Validations
- Invalid GUID values in `*Guid`/`*Guids` fields return `422 Unprocessable Entity`.
- Invalid date values in `*date*` fields return `422 Unprocessable Entity`.
- Missing required request body returns `422 Unprocessable Entity` with `Missing request body.`.
- Additional business-rule validation may return `422` with details in the `errors` array.

## Path parameters

- `saleGuid` string, guid, required

## Response `200`

- LinkedResponseOfGetCdaDocumentDataResponse
  - `value` GetCdaDocumentDataResponse
    - `publishedVersionId` integer, nullable
    - `documentData` unknown
    - `fieldDefinitions` CdaFieldDefinition[], nullable
      - `dataRef` string, nullable
      - `originalName` string, nullable
      - `type` string, nullable
      - `originalType` string, nullable
      - `format` string, nullable
      - `isGlobal` boolean
  - `warnings` string[], nullable
  - `links` Link[], nullable
    - `href` string, nullable
    - `rel` string, nullable
    - `method` string, nullable

## Other responses

- `404`

---

[API](https://skmtc.net/skyslope/apis/skyslope-api.md) · [All operations](https://skmtc.net/skyslope/apis/skyslope-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skyslope/skyslope-api/revisions/bad0d2db9b7a/schema)
