Services API Endpoint

Services API Endpoint

Read Call

In an effort to make the PCR-360 API more flexible, PCR has made the decision to no longer create individual endpoints for all the different data types. Instead, PCR is encouraging Users to use the SQL endpoint with a structured SELECT statement to retrieve exactly the data you want. Please see the SQL endpoint documentation for more information.

Example SELECT query for retrieving RECID's of 'Services' and 'Charges':

SELECT * FROM SERVICES_CHARGES;

Controlling Results Count

By default, 20 items will be returned at a time. However, you can retrieve up to 50 items in a single API call by changing the ‘limit’ field. If you wish to retrieve more than 50 listings, you can do so by using the 'page' field and making more than one API call.

Note: These parameters are added in addition to any fields from the specific data types.

Parameter

Default

Description

Parameter

Default

Description

limit

20

The number of listings to show. Maximum is 50.

page

1

Page number to show. To view more than 50 listings, make successive API calls while incrementing this field.

Response Data

Name

Datatype

Searchable

Notes

Name

Datatype

Searchable

Notes

BILLABLE

Yes/No

Yes

To indicate whether the service item is or is not billable

STATUS_DATE

string

Yes

Shows the date when the service was set to its current status

SERVICE_HOST

string

Yes

The Service Host associated with the service

SERVICE_ID

string

Yes

Service Id (phone_number, etc.)

SERVICE_ID_FMT

string

Yes

Formatted Service Id

CATALOG

string

Yes

Service Catalog name

OWNER

string

Yes

Name of the service owner – either a person or org hierarchy

LOCATIONS_PATH

string

Yes

The hierarchical path to the location of the service; use LOCATIONS when searching

SLA_CATALOG_PATH

string

Yes

The hierarchical path to the SLA of the service; use SLA when searching

SERVICES_STATUS

string

Yes

The current status of the service

SERVICES_UDF

list

No

List of all the User Defined Fields and the selected values for this service

SERVICES_CHARGES

list

No

Charges listed for this service

SERVICES_CONTACTS

list

No

Contacts associated with the service

SERVICES_EQUIPMENT

list

No

Pieces of equipment to be used/listed for this service

SERVICES_EXPENSE_GLA

list

No

Expense G/L Accounts to be used for billing of this service

SERVICES_REMARKS

list

No

List of all remarks/comments for this service

Results





Lists

When inserting or updating Service records, it is sometimes necessary to provide values that exist elsewhere in the system. The LIST method can help to retrieve available options for these values.

Below is how to make a LIST request:

GET http://DOMAIN/api/API_KEY/services.OUTPUT?LIST=LISTTYPE

Searchable

If a LISTTYPE is designated as searchable in the table below, adding the "SEARCH" param will return values that contain the provided value.

GET http://DOMAIN/api/API_KEY/services.OUTPUT?LIST=LISTTYPE&SEARCH=test



Parameter

Replace With

Parameter

Replace With

LISTTYPE

The type of List to be retrieved. Types can be found below.

List Types

Type

Description

Extra Parameters*

Searchable

Results

Type

Description

Extra Parameters*

Searchable

Results

CONTACTS

Retrieve available Contacts

CTYPE - Type of contact. Example: "worker"

yes

Contacts Results







DEPTHIER

Retrieve available Department Hierarchies



Coming Soon

Department Hierarchy Results





EXPENSE_TYPE

Retrieve available Expense Types



no

Expense Types Results





GLAS

Retrieve available GLAs



no

GLAs Results





LOCATIONS

Retrieve available Locations



yes

Locations Results







CHARGE_CATALOG

Retrieve available Charge Catalogs



yes

Charge Catalog Results







SERVICE_CATALOG

Retrieve available Service Catalogs



yes

Service Catalog Results







SERVICE_HOSTS

Retrieve available Service Hosts



no

Service Hosts Results







UDFS

Retrieve available User Defined Fields (UDF)

SERV_CATALOG_RECID (required)

no

UDFs Results







SLAS

Retrieve available SLAs



no

SLAs Results







POOLS

Retrieve available Service Pools



no

Service Pools Results







SERVICE_CLASSES

Retrieve available Service Classes



no

Service Classes Results







SERVICE_HOST_PARTITIONS

Retrieve available Service Host Partitions



no

Service Host Partitions Results







AUTH_CODE_TYPE

Retrieve available Auth Code Types



no

Auth Code Types Results







BANDWIDTH

Retrieve available Bandwidths



no

Bandwidth Results







RATING_GROUP

Retrieve available Rating Groups



no

Rating Groups Results







SERVICE_STATUS

Retrieve available Service Statuses



no

Service Status Results





*Extra Parameters can be appended to the URL in standard Query String fashion.

Write Call



Available Fields

Field

Required

Data Type

Options

Default

Notes

Field

Required

Data Type

Options

Default

Notes

recid

no*

Integer





Identifier of the record. *See Note Below

status

yes

Integer

Services API Calls



The status of the service. To set a Service to Active, the Owner field becomes required if it is not already populated.

serv_catalog

yes

Integer

Services API Calls



Recid of the Service Catalog item.

service_id

yes

String





Service ID of this service. Before inserting a new record, the system confirms there is no existing matching formatted version. If a match is found, the call will update the appropriate record. The service_id field can be formatted or unformatted. The service_id cannot be updated. *See Note Below.

owner

no*

Integer

Services API Calls



Record ID of either the Contact or the Department owner. The API will validate if the Owner's GLA Format is compatible with the Service's Billing Group Format.

owner_type

no*

String

"contact" or "department"



Type of owner

location

no

Integer

Services API Calls



Recid of location for service.

service_host

no

Integer

Services API Calls



Recid of Service Host for service.

sla

no

Integer

Services API Calls



Recid of SLA for service.

reference

no

String





Reference for service

billable

no

Integer

1 = yes; 0 = no



Designate if the Service is Billable. To set an active Service to Billable, the GLA field will become required if it is not already populated.

billing_group

no

Integer

Services API Calls



Recid of billing group for service.

essential

no

Integer

1 = yes; 0 = no



Designate if this is an essential Service.

status_date

yes

String





Date status was set for Service. Format “YYYY/MM/DD”.

assoc_service

no

Integer

Services API Calls



Recid of Associated Service.

equipment

no

String

Services API Calls



Recid(s) of equipment to add to Service. If multiple Equipment are to be assigned, separate Recids with commas. Example: 56,875.

contact

no

String

Services API Calls



Recid(s) of Contacts to add to Service. If multiple contacts are to be assigned, separate recids with commas. Example: 1234,7894.

remarks

no

String





Remarks to add to the Service.

pool

no

String

Services API Calls



Recids of Service pool(s) to add to the Service. If multiple contacts are to be assigned, separate recids with commas. Example: 548,785.

gla

no

Integer

Services API Calls



Recid(s) of GLA record(s) to assign to this service. If multiple GLAs are to be assigned, separate recids with commas. Example: 874,32. The Override GLA Format should match the Billing Group Format of the Service,

gla_percent

no*

String



100

Percentage(s) of this Service that should apply to specified GLA(s). *If multiple GLAs are provided, then percent is required and the same count of percentages need to be provided also. Total of all percentages must equal exactly 100.

gla_type

no*

String

Services API Calls



List Value(s) of Expense Type(s). *Required if GLA is specified.

directory

yes

Integer

1 = yes; 0 = no



IF service_type = "phone". Designates if this Service is to be listed in the directory.

report_911

yes

Integer

1 = yes; 0 = no



IF service_type = "phone". Designates if this Service is to be listed in emergency 911 feed.

multiple_locations

no

Integer

1 = yes; 0 = no



IF service_type = "phone". Designates if this Service has multiple locations.

bandwidth

no

Integer

Services API Calls



IF service_type = "data" OR "backbone". Recid of bandwidth record.

auth_code_type

no

Integer

Services API Calls



IF service_type = "authcode". Recid of authcode type.

service_class

no

Integer

Services API Calls



IF service_type = "authcode". Recid of Service Class for authcode.

rating_group

no

Integer

Services API Calls



Recid of Rating Group for the Service.

Config USE_RATING_GROUP must be set to TRUE to use this field