Skip to main content

Create Person

Use the PatientCareIntegrationV2_createPerson method to create a legal entity in Patient Care.

This method lets you register the company's main registration data, such as legal name, trade name, phone number, document, country, and person type.


Step 1: Get the Authentication Token and Headers

Before performing any operation, you must authenticate and obtain a valid token.

This endpoint uses the Patient Care authentication flow.

For more details, see: Patient Care Authentication


Step 2: Create Person

Use the PatientCareIntegrationV2_createPerson method to create a company in Patient Care.

Parameters

ParameterTypeRequiredDescriptionValue
inputObjectYesLegal entity registration dataObject

Input Fields

FieldTypeRequiredDescription
programSlugStringYesProgram identifier in Patient Care. Possible values - programSlug
nameStringYesCompany legal name
socialNameStringNoCompany trade name
mainPhoneStringNoMain phone number
typeMainPhoneEnumNoMain phone type. Possible values - typeMainPhone
documentStringYesCompany document, CNPJ, numbers only
countryEnumYesCountry. Possible values - country
typePersonEnumYesPerson type. Possible values - typePerson
subTypePersonIntNoPerson subtype. Possible values - subTypePerson
emailStringNoCompany email
observationStringNoAdditional registration notes

Possible values - programSlug

ValueDescription
teva_sacTeva SAC Program
teva_cuidarTeva Cuidar Program

Possible values - typeMainPhone

ValueDescription
_0Residential
_1Commercial
_2Mobile
_3Message

Possible values - country

ValueCountry
_0Brazil
_1Peru
_2Mexico

Possible values - typePerson

ValueDescription
_0Individual
_1Legal Entity

Possible values - subTypePerson

ValueDescription
0Caregiver
1Distributor
2Student
3Pharmacy
4Laboratory
5Representative
6Other Healthcare Professionals
7Anonymous
8Consumer

GraphQL Mutation Example

mutation createPerson {
PatientCareIntegrationV2_createPerson(
input: {
programSlug: "teva_cuidar"
name: "EMPRESA EXEMPLO LTDA"
socialName: "EMPRESA EXEMPLO"
mainPhone: "11999999999"
typeMainPhone: _1
document: "12345678000199"
country: _0
typePerson: _1
subTypePerson: 0
email: "empresa.exemplo@email.com"
observation: "Cadastro de teste"
}
) {
idPerson
name
socialName
mainPhone
typeMainPhone
document
country
typePerson
subTypePerson
email
observation
}
}

Return Example

{
"data": {
"PatientCareIntegrationV2_createPerson": {
"idPerson": "d96ef1b7-8fe0-4a62-ae07-6d7efde03d10",
"name": "EMPRESA EXEMPLO LTDA",
"socialName": "EMPRESA EXEMPLO",
"mainPhone": "11999999999",
"typeMainPhone": "_1",
"phone2": null,
"typePhone2": null,
"phone3": null,
"typePhone3": null,
"document": "12345678000199",
"country": "_0",
"typePerson": "_1"
}
}
}

Notes

  • The programSlug field identifies the program in Patient Care.
  • The document field must be sent with numbers only.
  • The typeMainPhone, country, and typePerson fields use enumerated values.
  • The subTypePerson field uses numeric values according to the types available in the integration.
  • Optional fields may be omitted when no information is available.