Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinetrue
stylenone

...

Field

Required

Data Type

Options

Default

Notes

department

noInteger

Department RECID that the Contact is assigned to.

customer_number

no*Integer

Customer Number assigned to the Contact. Conditionally Required if Contact is a CUSTOMER type

first_name

yesString

Contact's First Name.
last_nameyesString

Contact's Last Name.

contact_directory

noyesIntegerNo = 0, Yes = 1
Is this Contact in the Directory?
contact_typesnoyesStringContact TypesCONTACT_TYPE List
What Type(s) of Contact is this? Example: "USER,CUSTOMER"
statusyesIntegerSTATUS_TYPE List
Stats of the Contact (Active/Inactive).
typenoStringEMAIL, ADDRESS, PHONE
What type of Contact information is being provided?
email_directoryyesIntegerNo = 0, Yes = 1
Should this Email show in the Directory.
emailyesString

New Primary Email for the Contact.

address_directory

noIntegerNo = 0, Yes = 1
Is this Address in the Directory?
address_typenostringADDRESS_TYPE TYPE List
What Type of Address is it?
street_addressno*String

First Line of the Address.

*If any Address fields are sent, all become Required

address2noString

Second Line of the Address.
cityno*String

City the Address is in.

*If any Address fields are sent, all become Required

stateno*String

State the Address is in. Use standard 2 Letter Abbreviation.

*If any Address fields are sent, all become Required

zip_codeno*Integer

5 digit Postal Code assigned to the Address.

*If any Address fields are sent, all become Required

phone_directoryyesIntegerNo = 0, Yes = 1
Should this Phone Number show in the Directory.
phone_primarynoyesIntegerNo = 0, Yes = 11
Is this the Primary Phone Number?
phone_typeyesStringPHONE_TYPE TYPE List
What Type of Phone Number is this.?
phone_numberyesInteger

Phone Number for the Contact.

List Types
Anchor
lists
lists

Type

Description

Values

STATUS_TYPEAvailable Status Types1 = ACTIVE, 0 = INACTIVE
CONTACT_TYPEAvailable Contact TypesUSER, CUSTOMER, COORDINATOR, WORKER, SERVICE REP, VENDOR, VIP, GUEST
ADDRESS_TYPEAvailable Address TypesOFFICE, WAREHOUSE, BILLING
PHONE_TYPEAvailable Phone Number TypesWORK, HOME, CELL, FAX

Email Request

In addition to the main Contact fields, additional fields are available for creating or updating Email Information.

...

Field

Required

Data Type

Options

Default

Notes

contact_recidyesInteger

RECID for the Contact
email_directoryyesIntegerNo = 0, Yes = 1
Should this Email show in the Directory.
emailyesString

New Primary Email for the Contact.

...

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

Body:

Key

Value

type

EMAIL

email

help@pcr.com

email_directory0
contact_Directory1
first_namePCR
last_nameSysAdmin
contact_typesUSER
status1
contact_recid1
Results
Toggle cloak
Cloak

If the request is successful, the RECID of the Contact is returned as follows:

Code Block
languagephp
linenumberstrue
{
    <status>success</status>
    <page>1</page>
    <count>1</count>
    <total_count>1</total_count>
    <contact>199017</contact>
}

...

Field

Required

Data Type

Options

Default

Notes

contact_recidyesInteger

RECID for the Contact

address_directory

noIntegerNo = 0, Yes = 1
Is this Address in the Directory?
address_typenostringADDRESS_TYPE List
What Type of Address is it?
street_addressno*String

First Line of the Address.

*See Note below

address2noString

Second Line of the Address.
cityno*String

City the Address is in.

*See Note below

stateno*String

State the Address is in. Use standard 2 Letter Abbreviation.

*See Note below

zip_codeno*Integer

5 digit Postal Code assigned to the Address.

*See Note below

...

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

Body:

Key

Value

type

ADDRESS

address_directory

0

address_typeWarehouse
street_address1313 Mockingbird Lane
cityMockingbird Heights
stateCA
zip_code55555
contact_Directory1
first_namePCR
last_nameSysAdmin
contact_typesUSER
status1
contact_recid1
Results
Toggle cloak
Cloak

If the request is successful, the RECID of the Contact is returned as follows:

Code Block
languagephp
linenumberstrue
{
    <status>success</status>
    <page>1</page>
    <count>1</count>
    <total_count>1</total_count>
    <contact>199017</contact>
}

...

Field

Required

Data Type

Options

Default

Notes

contact_recidyesInteger

RECID for the Contact
phone_directoryyesIntegerNo = 0, Yes = 1
Should this Phone Number show in the Directory.
phone_primarynoIntegerNo = 0, Yes = 11Is this the Primary Phone Number?
phone_typeyesStringPHONE_TYPE List
What Type of Phone Number is this.
phone_numberyesInteger

Phone Number for the Contact.

...

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

Body:

Key

Value

type

PHONE

phone_directory

0

phone_primary0
phone_typeWork
phone_number5558675309
contact_Directory1
first_namePCR
last_nameSysAdmin
contact_typesUSER
status1
contact_recid1
Results
Toggle cloak


Cloak

If the request is successful, the RECID of the Contact is returned as follows:

Code Block
languagephp
linenumberstrue
{
    <status>success</status>
    <page>1</page>
    <count>1</count>
    <total_count>1</total_count>
    <contact>199017</contact>
}

...