---
title: "PartyDetails"
url: "https://developer.pexa.co.uk/apis/workspace-v1-v1/versions/32819e5a-6411-493b-abe8-00b7c7ca6c77/schemas/PartyDetails"
---

> Full API specification: https://developer.pexa.co.uk/apis/workspace-v1-v1/versions/32819e5a-6411-493b-abe8-00b7c7ca6c77.md

# PartyDetails

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Workspace
  version: v1.3.0
servers:
  - url: https://api.pexa.co.uk
    description: API Gateway URL
components:
  schemas:
    PartyDetails:
      oneOf:
        - type: object
          required:
            - forenames
            - surname
          properties:
            forenames:
              maxLength: 90
              minLength: 1
              type: string
              example: James Thomas
              pattern: ^[A-Za-z][A-Za-z\- ']*$
            surname:
              maxLength: 50
              minLength: 1
              type: string
              example: Smith
              pattern: ^[A-Za-z][A-Za-z\- ']*$
        - type: object
          required:
            - organisationName
            - registrationNumber
            - organisationType
          properties:
            organisationName:
              maxLength: 160
              minLength: 1
              type: string
              example: My Organisation
              pattern: ^[a-zA-ZÀ-ÖØ-öø-ſĀ-ıĴ-ľŁ-ŉŊ-ŏŐ-őŒ-žǼǺǾẀẂẄỲǽǻǿẁẃẅỳ\d&@£$€¥#‘’'(){}<>!«»“”"\[\]?*=%+\s.,:\/;\\-]+$
            registrationNumber:
              type: string
              minLength: 6
              maxLength: 8
              pattern: ^[A-Z0-9]+$
              example: ABCD1234
            organisationType:
              maxLength: 200
              minLength: 1
              type: string
              pattern: ^(LIMITED_COMPANY)$
              example: LIMITED_COMPANY
              description: |
                Organisation Type:
                 * `LIMITED_COMPANY`
```
