Versions Compared

Key

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

...

Code Block
languagephp
http://DOMAIN/api/API_KEY/locationlocations.OUTPUT

Insert excerpt
SQL API Endpoint
SQL API Endpoint
nopaneltrue

Insert excerpt
Custom API
Custom API
nopaneltrue

Location Fields

Name

Field

Type

Available Values

Default Value

Required

Required for Inserts

Required for Updates

Options

Default

location_recid

integer

status

boolean

1, 0

1

Integer

 

ADD_NEW

UPDATE

Yes

 

 

parent_location_recid

integer

Integer

 

 

 

 

NULL

name

String

Yes

 

 

location_type_recid

integer

LOCATION_TYPE
LIST RECID

 

status

Boolean

 

 

INSERT

1, 0

1

location_type

text

String

Yes

 

Any LOCATION_TYPE List Code

LIST CODE

 

INSERT

latitude

latitude

Decimal

float

 

 

NULL

 

 

longitude

float

Decimal

 

 

NULL

 

 

warehouse

Boolean

boolean

 

 

1, 0

0

 

report_911

Boolean

 

boolean

 

1, 0

0

 

default_warehouse_recid

Integer

integer

 

 

NULL

 

 

default_return_warehouse_recid

integer

Integer

 

 

NULL

 

 

Location Address Fields

...

Name

...

Type

...

Available Values

...

Default Value

...

Required

...

type

...

text

...

ADDRESS

...

 

...

The ADDRESS fields are unique in that all Locations can be used along with Address Fields. This can be useful when a User desires to make an API Call to Update a Location and its Address. Rather than making two separate calls, they can make one call for the other location and apply the Address details.

Field

Type

Required for Inserts

Required for Updates

Options

type

String

Yes

N/A

ADDRESS

building_id

text

String

 

NULL

 

 

community_name

text

String

 

NULL

 

 

street_address

text

String

 

NULL

 

 

address2

text

String

 

NULL

 

 

city

text

String

 

NULL

 

 

state

String

text

 

*Country Dependent
State abbreviation or name

NULL

 

 

Full name or abbreviation

zip_code

text

String

*Country Dependent

 

NULL

 

 

country

String

 

text

 

Any ADDRESS_COUNTIES

LIST CODE

NULL

 

List Code

E911 Fields

 Type

 Default Value

house_number

textString

NULL

house_suffix

textString

NULL

prefix_directional

textString

NULL

street_name

textString

NULL

street_suffix

textString

NULL

post_directional

textString

NULL

Address Request Example

...

Code Block
languagephp
POST DOMAIN/KEY/locationlocations.json
Headers:

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

...

Key

Value

type

ADDRESS

street_address

“555 Nowhere Ave”

city

“Grand Rapids”

state

“MI”

zip_code

“55555”

Location Contact Fields

Required

Name

Type

Available Values

Default Value

Required for Inserts

Required for Updates

Options

type

text

CONTACT

Yes

 

N/A

YES

CONTACT

location_recid

integer

Integer

Yes

 

 

INSERT

contact_recid

integer

Integer

Yes

 

 

INSERT

Contacts Request Example

Call:
Code Block
languagephp
POST DOMAIN/KEY/locationlocations.json
Headers:

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

...

Location Servicing Equipment Fields

Name

Field

Type

Available Values

Default Value

Required

type

text

Required for Inserts

Required for Updates

Options

type

String

Yes

N/A

SERVICING_EQUIPMENT

 

YES

location_recid

integer

Integer

Yes

 

 

INSERT, UPDATE

service_catalog_recid

integer

Integer

Yes

 

 

INSERT

equipment_recid

integer

Integer

Yes

 

 

INSERT

Location Servicing Equipment Request Example

...

Code Block
languagephp
POST DOMAIN/KEY/locationlocations.json
Headers:

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

...

Location Service Host Permission Fields

Required

Name

Type

Available Values

Default Value

Required for Inserts

Required for Updates

Options

type

text

String

Yes

N/A

SERVICE_HOST

 

YES

location_recid

integer

Integer

Yes

 

 

INSERT

service_host_recid

integer

Integer

Yes

 

 

INSERT

Location Service Hostt Request Example

...

Code Block
languagephp
POST DOMAIN/KEY/locationlocations.json
Headers:

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

...

Location Worker Permission Fields

Name

Type

Available Values

Required for Inserts

Required for Updates

Options

type

text

String

Yes

N/A

WORKER

YES

location_recid

integer

Integer

Yes

 

INSERT

 

contact_recid

Integer

integer

Yes

 

INSERT

 

Location Servicing Equipment Request Example

...

Code Block
languagephp
POST DOMAIN/KEY/locationlocations.json
Headers:

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

...

Key

Value

type

WORKER

location_recid

1111

contact_recid

2222

Location Remark Fields

Name

Type

Available Values

Required for Inserts

Required for Updates

Options

type

text

String

Yes

N/A

REMARK

YES

location_recid

Integer

integer

Yes

 

INSERT

 

remark

text

String

Yes

 

INSERT

 

author_contact_recid

integer

Integer

 

 

NON-AUTH-KEYS

 

Location Servicing Equipment Request Example

...

Code Block
languagephp
POST DOMAIN/KEY/locationlocations.json
Headers:

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

...

Key

Value

type

REMARK

location_recid

1111

remark

“This is a Remark”

Location UDF Fields

Name

Type

Available Values

Required for Inserts

Required for Updates

Options

type

text

String

Yes

N/A

UDF

YES

location_recid

integer

Integer

Yes

 

YES

 

udf_UDF-RECID

custom

String

Conditionally required if “udf_UDF-IDENTIFIER” not provided

 

 

udf_UDF-IDENTIFIER

custom

String

Conditionally required if “udf_UDF-RECID” not provided

 

 

Location Servicing Equipment Request Example

...

Code Block
languagephp
POST DOMAIN/KEY/locationlocations.json
Headers:

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

...

Location Attachment Fields

Name

Type

Available Values

Required for Inserts

Required for Updates

Options

type

text

String

Yes

N/A

ATTACHMENT

YES

location_recid

integer

Integer

Yes

 

INSERT

 

filename

text

String

Yes

 

INSERT

 

data

String

base64 encoded

Yes

 

INSERT

Base64 Encoded Text

Location Servicing Equipment Request Example

...

Code Block
languagephp
POST DOMAIN/KEY/locationlocations.json
Headers:

Key

Value

Content-Type

application/json

Pcr-Html-Encoded

TRUE

...