---
title: "Create a PetParent"
method: POST
path: "/api/v1/pet-parents"
tags: ["Pet Parents"]
---

# Create a PetParent

`POST /api/v1/pet-parents`

Permissions needed: CREATE_PATIENTS
Create a new pet parent.  If the cross-clinic account validation feature is enabled, the email must be unique globally.  If an existing account is found with the same email, and the feature is active, validation will fail.

## Request body

- object
  - `clinic_id` integer — Clinic id.
  - `name` string, required
  - `last_name` string, required
  - `email` string
  - `password` string — If omitted, a random password will be generated and sent to the user on creation and the old one will be kept on update.
  - `phone` string — Phone number in E.164 format
  - `secondary_phone` string, nullable — Phone number in E.164 format
  - `google_place_id` string, nullable
  - `address` string, nullable
  - `address2` string, nullable
  - `city` string, nullable
  - `birthdate` string, nullable
  - `zip_code` string, nullable
  - `street` string, nullable
  - `street_number` string, nullable
  - `region` string, nullable
  - `region_short_code` string, nullable
  - `country_id` string, nullable
  - `latitude` string, nullable
  - `longitude` string, nullable
  - `cnp` string, nullable
  - `terms_and_conditions` boolean, required
  - `observations` string, nullable
  - `tag_ids` integer[], nullable
  - `enable_chat_without_app` boolean, nullable
  - `referral_source_type` 'google_search' | 'social_media' | 'referral' | 'walk_in' | 'local_event' | 'paid_ad' | 'blog' | 'signage' | 'walk_by' | 'online_reviews' | 'vet_referral' | 'other', nullable
  - `referral_source_details` string, nullable
  - `avatar` string, binary

## Response `201`

successful operation

- object
  - `data` object — PetParent = User = Customer = Owner. PetParent is the preferred term.
    - `id` integer
    - `name` string
    - `last_name` string
    - `email` string, nullable
    - `phone` string — In E164 format
    - `secondary_phone` string, nullable — In E164 format
    - `chatUid` string, nullable
    - `has_app` integer
    - `has_app_date` string, nullable
    - `enable_chat_without_app` integer
    - `created_at` string
    - `updated_at` string
    - `address` string, nullable
    - `address_2` string, nullable
    - `city` string, nullable
    - `birthdate` string, date-time, nullable
    - `observations` string, nullable
    - `cnp` string, nullable
    - `chip_number` string, nullable
    - `discounts` object[]
      - `id` integer
      - `name` string
      - `description` string, nullable
      - `discount` integer, nullable
      - `discount_type` 0 | 1 — `0` - fixed `1` - percentage
      - `apply_on_cogs` boolean
      - `discount_products` number, nullable
      - `discount_type_products` 0 | 1 — `0` - fixed `1` - percentage
      - `discount_services` number, nullable
      - `discount_type_services` 0 | 1 — `0` - fixed `1` - percentage
      - `enabled` boolean
    - `address_meta_data` object
      - `zip_code` string
      - `city` string
      - `street` string
      - `street_number` string
      - `region` string
      - `region_short_code` string
      - `country_id` integer
      - `latitude` string
      - `longitude` string
      - `address_2` string
    - `current_client_id` integer, nullable
    - `clients` object[]
      - `id` integer
      - `clinic_id` integer
      - `referral_source_type` 'google_search' | 'social_media' | 'referral' | 'walk_in' | 'local_event' | 'paid_ad' | 'blog' | 'signage' | 'walk_by' | 'online_reviews' | 'vet_referral' | 'other', nullable
      - `referral_source_details` string, nullable
    - `preferences` object, nullable

## Other responses

- `400` — unresolved $ref
- `401` — unresolved $ref
- `403` — unresolved $ref
- `422` — unresolved $ref
- `429` — unresolved $ref

---

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