Party Management Open API

concept australia Updated Sep 10, 2026 73 min read tmf-party-management-open-api.md
Raw file servicenow.com

The Party Management Open API provides endpoints for managing parties with a relationship to the enterprise, like a consumer, account, or contact. Use this API to create, update, and retrieve data from the Consumer [csm_consumer], Account [customer_account], and Contact [customer_contact] tables.

The Party Management Open API is a ServiceNow® implementation of the TM Forum Party Management API REST specification. This implementation is based on the TMF632 Party Management API Conformance Profile v5.0.0 – TM Forum, June 2025. The Party Management Open API is conformance certified by TM Forum.

This API is provided within the sn_tmf_api namespace. The calling user must have the sn_tmf_api.party_integrator role. The Customer Service Base Entities (com.snc.cs_base) plugin is required, particularly for all GET operations.

This API can be extended to make customizations around required parameters, request body validation, additional REST operations, and field mappings. Sensitive fields like phone numbers may require special ACL permissions for update or retrieval.

Parent Topic:REST API reference

Party Management – DELETE /api/sn_tmf_api/v1/party/individual/{id}

Inactivates a specified record from the Consumer [csm_consumer] and Contact [customer_contact] tables.

URL format

Versioned URL: /api/sn_tmf_api/{api_version}/party/individual/{id}

Default URL: /api/sn_tmf_api/v1/party/individual/{id}

Supported request parameters

Name

Description

api_version

Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the latest. Data type: String

id

Sys_id or external_id of the Consumer or Contact record to set to an inactive state.Table: Consumer [csm_consumer] and Contact [customer_contact].

Data type: String

|Name|Description| |----|-----------| |None| |
Name Description
None

Headers

The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Header

Description

Accept

Data format of the response body. Supported types: application/json or application/xml. Default: application/json

|Header|Description| |------|-----------| |None| |

Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.

Status code Description
200 Successful. The request was successfully processed.
400 Bad Request. A bad request type or malformed request was detected.

Response body parameters (JSON or XML)

Name Description
None

cURL request

The following example deletes the given record.

Shell
curl "http://instance.service-now.com/api/sn_tmf_api/v1/party/individual/dca96eaa11f43110f877366201dea6c1" \--request DELETE \--header "Accept:application/json" \--user 'user':'password' \

Doesn't return a response body. Reference status codes for a success or failure indicator.

Party Management – GET /api/sn_tmf_api/v1/party/individual

Retrieves a list of all individual (party) records with a relationship to the enterprise. You can filter results by specific fields or IDs.

URL format

Versioned URL: /api/sn_tmf_api/v1/party/individual

Default URL: /api/sn_tmf_api/v1/party/individual

Supported request parameters

Name

Description

api_version

Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the latest. Data type: String

Name

Description

fields

List of fields to return in the response. Invalid fields are ignored.Valid fields:

  • @type
  • familyName
  • gender
  • givenName
  • href
  • id
  • middleName
  • name
  • nationality
  • status
  • title

Data type: String

Default: Returns all fields.

id

Filter party management by sys_id. Specified sys_ids are returned in the response.Data type: String

limit

Maximum number of records to return. For requests that exceed this number of records, use the offset parameter to paginate record retrieval.Data type: Number

Default: 20

Maximum: 100

offset

Starting index at which to begin retrieving records. Use this value to paginate record retrieval.Data type: Number

Default: 0

|Name|Description| |----|-----------| |None| |

Headers

The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Header

Description

Accept

Data format of the response body. Supported types: application/json or application/xml. Default: application/json

Header

Description

Content-Range

Range of content returned in a paginated call.For example, if offset=2 and limit=3, the value of the Content-Range header is items 3-5.

Content-Type

Data format of the response body. Only supports application/json.

Link

Contains the following links to navigate through query results:

  • first
  • last
  • next
  • previous

X-Total-Count

For paginated queries, this header specifies the total number of records available on the server.

### Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.

Status code

Description

200

Request successfully processed. Full resource returned in response (no pagination).

206

Partial resource returned in response (with pagination).

400

Bad request. Possible reasons:- Invalid path parameter

  • Invalid URI

404

Record not found. No records matching the query parameters are found in the table.

### Response body parameters \(JSON or XML\)

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address (street, city, state, postal code)
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the individual. Data type: String

contactMedium.contactType

The type of contact medium. Indicates the business-level attribute that specifies the kind of contact channel being used.Possible values:

  • businessPhone: Business phone number.
  • email: Email address.
  • homePhone: Home phone number.
  • mobilePhone: Mobile phone number.
  • postalAddress: Address, handled separately as a location.
  • faxPhone: Fax number.
  • phone: Generic phone number, omitted in v1 responses.

Data type: String

contactMedium.country

Country of the individual.Data type: String

contactMedium.emailAddress

Email address of the contact.Data type: String

contactMedium.locationId

Sys_id of the party location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the individual.Data type: String

contactMedium.postCode

Postal code of the individual.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is from a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

externalId

An external system identifier that links the party record to your source system or third-party application.Data type: String

familyName

Last name of the individual.Data type: String

gender

Gender of the individual.Data type: String

givenName

First name of the individual.Data type: String

href

Relative link to the user or consumer or contact record.Data type: String

id

Sys_id of the user or consumer or contact record to retrieve.Tables: Consumer [csm_consumer] or Contact [customer_contact]

Data type: String

middleName

Middle name of the individual.Data type: String

name

User name of the user or contact individual.Data type: String

nationality

Nationality of the individual.Data type: String

partyCharacteristics

List of characteristics associated with the party.Data type: Array of Objects

JSON
"partyCharacteristics": [ {  "@type": "String",  "name": " String",  "value": "String",  "valueType": "String" }]

partyCharacteristics.@type

When subclassing, this defines the subclass extensible name.Possible values:

  • StringCharacteristic
  • StringArrayCharacteristic
  • IntegerCharacteristic
  • BooleanCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of the individual.Valid values:

  • active: Individual is in an active status.
  • inactive: Individual is in an inactive status.

Data type: Boolean

title

Prefix or title of the individual. For example, Dr., Mr., Ms.).Data type: String

### cURL request

Retrieves a list of all party management records in the instance.

Text
curl"http://instance.servicenow.com/api/v1/sn_tmf_api/party/individual" \--request GET \--header "Accept:application/json" \--user 'user:password'

Response body for a Individual Contact party.

JSON
[{   "id": "34d92aaa11f43110f877366201dea67b",   "href": "api/sn_tmf_api/party/individual/34d92aaa11f43110f877366201dea67b",   "name": "carlos.star",   "givenName": "Carlos",   "middleName": "",   "familyName": "Star",   "gender": "",   "title": "",   "partyCharacteristics": [     {       "name": "notification",       "value": "Enable",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "preferredLanguage",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "dateFormat",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "timeFormat",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "timeZone",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "vip",       "value": false,       "valueType": "boolean",       "@type": "BooleanCharacteristic"     },     {       "name": "webServiceAccessOnly",       "value": false,       "valueType": "boolean",       "@type": "BooleanCharacteristic"     },     {       "name": "source",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "eduStatus",       "value": "Faculty",       "valueType": "string",       "@type": "StringCharacteristic"     }   ],   "contactMedium": [     {       "preferred": false,       "contactType": "email",       "emailAddress": "carlos.star@example.com",       "@type": "EmailContactMedium"     },     {       "preferred": false,       "contactType": "businessPhone",       "phoneNumber": "",       "@type": "BusinessPhoneContactMedium"     },     {       "preferred": false,       "contactType": "homePhone",       "phoneNumber": "",       "@type": "HomePhoneContactMedium"     },     {       "preferred": false,       "contactType": "mobilePhone",       "phoneNumber": "",       "@type": "MobilePhoneContactMedium"     }   ],   "externalReference": [],   "relatedParty": [     {       "role": "Company",       "partyOrPartyRole": {         "id": "9e2fd2ee11b43110f877366201dea674",         "name": "Startech svcs",         "@type": "Organization"       }     },     {       "role": "Department",       "partyOrPartyRole": {         "id": "",         "name": "",         "@type": "Organization"       }     }   ],   "status": "Active",   "@type": "Individual",   "partyOrPartyRole": {     "name": "Contact",     "@type": "Party"   } }]

Response body for a Individual Consumer party.

JSON
[{   "id": "168bfc6953a46210132bddeeff7b129f",   "href": "api/sn_tmf_api/party/individual/168bfc6953a46210132bddeeff7b129f",   "givenName": "yyyg",   "middleName": "hhh",   "familyName": "bhhhbjhh",   "gender": "",   "nationality": "",   "title": "",   "partyCharacteristics": [     {       "name": "notes",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "user",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "notification",       "value": "Enable",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "preferredLanguage",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "dateFormat",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "timeFormat",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "timeZone",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     }   ],   "contactMedium": [     {       "preferred": false,       "contactType": "businessPhone",       "phoneNumber": "",       "@type": "BusinessPhoneContactMedium"     },     {       "preferred": false,       "contactType": "homePhone",       "phoneNumber": "",       "@type": "HomePhoneContactMedium"     },     {       "preferred": false,       "contactType": "mobilePhone",       "phoneNumber": "",       "@type": "MobilePhoneContactMedium"     },     {       "preferred": false,       "contactType": "fax",       "phoneNumber": "",       "@type": "FaxContactMedium"     },     {       "preferred": false,       "contactType": "postalAddress",       "@type": "GeographicalAddressContactMedium",       "city": "ygyg",       "locationId": "a39bfc6953a46210132bddeeff7b12b7",       "country": "",       "postCode": "hh",       "stateOrProvince": "gyg",       "street1": "hgg",       "street2": ""     }   ],   "externalReference": [],   "relatedParty": [     {       "role": "User",       "partyOrPartyRole": {         "id": "",         "name": "",         "@type": "Individual"       }     }   ],   "status": "Active",   "@type": "Individual",   "partyOrPartyRole": {     "name": "Consumer",     "@type": "Party"   } }]

Party Management - GET /api/sn_tmf_api/v1/party/individual/{id}

Retrieves a specified record from the Consumer [csm_consumer] or Contact [customer_contact] tables. You can filter results by specific fields.

URL format

Versioned URL: /api/sn_tmf_api/{api_version}/party/individual

Default URL: /api/sn_tmf_api/v1/party/individual

Supported request parameters

Name

Description

api_version

Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the latest. Data type: String

id

Sys_id or external_id of the consumer or contact record to retrieve.Table: Consumer [csm_consumer] or Contact [customer_contact]

Data type: String

Name

Description

fields

List of fields to return in the response. Invalid fields are ignored.Valid fields:

  • @type
  • familyName
  • gender
  • givenName
  • href
  • id
  • middleName
  • name
  • nationality
  • status
  • title

Data type: String

Default: Returns all fields

|Name|Description| |----|-----------| |None| |

Headers

The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Header

Description

Accept

Data format of the response body. Supported types: application/json or application/xml. Default: application/json

|Header|Description| |------|-----------| |None| |

Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.

Status code Description
200 Successful. The request was successfully processed.

Response body parameters (JSON or XML)

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address (street, city, state, postal code)
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the individual. Data type: String

contactMedium.contactType

The type of contact medium. Indicates the business-level attribute that specifies the kind of contact channel being used.Possible values:

  • businessPhone: Business phone number.
  • email: Email address.
  • homePhone: Home phone number.
  • mobilePhone: Mobile phone number.
  • postalAddress: Address, handled separately as a location.
  • faxPhone: Fax number.
  • phone: Generic phone number, omitted in v1 responses.

Data type: String

contactMedium.country

Country of the individual.Data type: String

contactMedium.emailAddress

Email address of the contact.Data type: String

contactMedium.locationId

Sys_id of the party location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the individual.Data type: String

contactMedium.postCode

Postal code of the individual.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is from a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

externalId

An external system identifier that links the party record to your source system or third-party application.Data type: String

familyName

Last name of the individual.Data type: String

gender

Gender of the individual.Data type: String

givenName

First name of the individual.Data type: String

href

Relative link to the user or consumer or contact record.Data type: String

id

Sys_id of the user or consumer or contact record to retrieve.Tables: Consumer [csm_consumer] or Contact [customer_contact]

Data type: String

middleName

Middle name of the individual.Data type: String

name

User name of the user or contact individual.Data type: String

nationality

Nationality of the individual.Data type: String

partyCharacteristics

List of characteristics associated with the party.Data type: Array of Objects

JSON
"partyCharacteristics": [ {  "@type": "String",  "name": " String",  "value": "String",  "valueType": "String" }]

partyCharacteristics.@type

When subclassing, this defines the subclass extensible name.Possible values:

  • StringCharacteristic
  • StringArrayCharacteristic
  • IntegerCharacteristic
  • BooleanCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of the individual.Valid values:

  • active: Individual is in an active status.
  • inactive: Individual is in an inactive status.

Data type: Boolean

title

Prefix or title of the individual. For example, Dr., Mr., Ms.).Data type: String

### cURL request

Retrieves a specified record, 12345, from the table.

Shell
curl "http://instance.servicenow.com/api/sn_tmf_api/v1/party/individual/12345" \--request GET \--header "Accept:application/json" \--user 'user':'password' \

Response body.

JSON
{  "id": "12345",  "givenName": "JohnTest6",  "middleName": "A.",  "familyName": "Doe",  "gender": "male",  "nationality": "American",  "title": "Mr",  "contactMedium": [    {      "preferred": true,      "contactType": "email",      "emailAddress": "john.doe18723@example.com",      "@type": "EmailContactMedium"    },    {      "preferred": false,      "contactType": "mobilePhone",      "phoneNumber": "+1-202-555-0198",      "@type": "PhoneContactMedium"    },    {      "preferred": false,      "contactType": "businessPhone",      "phoneNumber": "+1-202-555-0198",      "@type": "BusinessPhoneContactMedium"    },    {      "preferred":false,      "contactType":"faxPhone",      "phoneNumber":"123456789",      "@type":"FaxContactMedium"    },    {      "preferred": false,      "contactType": "homePhone",      "phoneNumber": "+1-202-555-0198",      "@type": "HomePhoneContactMedium"    },    {      "preferred": false,      "contactType": "postalAddress",      "@type": "GeographicAddressContactMedium",      "locationId":"25ab9e240a0a0bb3009eb9ef8dd0a2c0",      "city": "Town",      "country": "USA",      "postCode": "07960",      "stateOrProvince": "New Jersey",      "street1": "1820 Harris Houston Road, Charlotte",      "street2": "East Tower - 10th Floor"    },    {      "preferred": false,      "contactType": "postalAddress",      "@type": "GeographicAddressContactMedium",      "locationId":"25aba17a0a0a0bb3007efd809d6e695c",      "city": "Webster",      "country": "USA",      "postCode": "76022",      "stateOrProvince": "TN",      "street1": "17077 Texas Avenue, Webster",      "street2": "East Tower - 11th Floor"    }  ],  "externalReference": [    {      "externalIdentifierType": "facebook",      "id": "http://facebook.com/johndoe"    }  ],  "partyCharacteristic": [    {      "name": "notes",      "value": "notes about the consumer",      "valueType": "string",      "@type": "string"    },    {      "name": "dateFormat",      "value": "dd-mm-yyyy",      "valueType": "string",      "@type": "string"    },    {      "name": "timeformat",      "value": "hh.mm.ss (12 hour)",      "valueType": "string",      "@type": "string"    },    {      "name": "notification",      "value": "Enable",      "valueType": "string",      "@type": "string"    }  ],  "relatedParty": [    {      "role": "User",      "partyOrPartyRole": {        "id": "36901a6381116a50f8776cfcbee15f3c",        "name": "Hr",        "@type": "Individual"      }    }  ],  "status": "active",  "@type": "Individual",  "partyOrPartyRole": {    "role": "Consumer",    "@type":"Party"  }}

Party Management – GET/api/ sn_tmf_api/v1/party/organization/{id}

Retrieves a specified record from the Account [customer_account] tables. You can filter results by specific fields or IDs.

URL format

Versioned URL: /api/sn_tmf_api/v1/party/organization/{id}

Default URL: /api/sn_tmf_api/v1/party/organization/{id}

Supported request parameters

Name

Description

api_version

Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the latest. Data type: String

id

Sys_id of the company or account record to retrieve.Table: Account [customer_account]

Data type: String

Name

Description

fields

List of fields to return in the response. Invalid fields are ignored.Valid fields:

  • @type
  • href
  • id
  • legalName
  • name
  • status
  • tradingName

Data type: String

Default: Returns all fields

id

Filter party management by sys_id. Specified sys_ids are returned in the response.Data type: String

limit

Maximum number of records to return. For requests that exceed this number of records, use the offset parameter to paginate record retrieval.Data type: Number

Default: 20

Maximum: 100

offset

Starting index at which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks.Data type: Number

Default: 0

|Name|Description| |----|-----------| |None| |

Headers

The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Header

Description

Accept

Data format of the response body. Supported types: application/json or application/xml. Default: application/json

|Header|Description| |------|-----------| |None| |

Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.

Status code Description
200 Successful. The request was successfully processed.

Response body parameters (JSON or XML)

Response body parameters (JSON or XML)

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. A contact medium represents the way you communicate with or reach a party like an individual or organization. For example, a channel or method of contact associated with that party.Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contact medium. Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address (street, city, state, postal code)
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the organization.Data type: String

contactMedium.contactType

The type of contact medium. Possible values:

  • businessPhone
  • email
  • faxPhone
  • homePhone
  • mobilePhone
  • postalAddress

Data type: String

contactMedium.country

Country of the organization.Data type: String

contactMedium.emailAddress

Email address of the organization contact.Data type: String

contactMedium.locationId

Sys_id of the location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the organization contact.Data type: String

contactMedium.postCode

Postcode of the organization.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is from a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

createdDate

Timestamp when the organization record was created (ISO 8601 format). Data type: String

Example: "2025-06-25T14:32:18.000Z"

externalId

An external system identifier that links the party record to your source system or third-party application.Data type: String

externalReference

List of identifiers of the party in an external system.Data type: Array of Objects

Text
"externalReference": [  {   "externalIdentifierType": "String",   "name": "String"  }]

externalReference.externalIdentifierType

Type of entity within the external system.Data type: String

externalReference.name

Human-readable name of the external system or reference.Data type: String

href

Relative link to the account record (URI).Table: Account [customer_account]

Data type: String

id

Sys_id of the external entity account record.Table: Account [customer_account]

Data type: String

lastModifiedDate

Timestamp when the organization record was last modified (ISO 8601 format).Data type: String

Example: "2025-06-25T14:32:18.000Z"

legalName

Legal name of the organization.Data type: String

name

Name of the organization.Data type: String

partyCharacteristics

List of characteristics that a party can take on. Data type: Array of Objects

JSON
"partyCharacteristics": [  {   "@type": "String"   "name": "String",     "value": "String",   "valueType": "String" } ]

partyCharacteristics.@type

When subclassing, @type defines the subclass extensible name.Possible value:

  • BooleanCharacteristic
  • IntegerCharacteristic
  • StringArrayCharacteristic
  • StringCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of organization.Valid values:

  • active: Organization is active.
  • inactive: Organization is inactive.

Data type: Boolean

tradingName

Name that the organization trades under.Data type: String

### cURL request

The following GET call returns fields for the specified party management organization record with sys_id, 12345.

Shell
curl "http://instance.servicenow.com/api/sn_tmf_api/v1/party/organization/12345" \--request GET \--header "Accept:application/json" \--user 'user':'password' \

Response body.

JSON
{   "id": "2154376",   "name": "Advances Super Computing",   "href": "api/sn_tmf_api/party/organization/2154376",   "legalName": "Hello",   "tradingName": "World",   "contactMedium": [     {       "preferred": "false",       "contactType": "email",       "@type": "EmailContactMedium",       "emailAddress": "user@servicenow.com"     },     {       "preferred": "false",       "contactType": "phone",       "@type": "PhoneContactMedium",       "phone": "(555) 555-5555"     },     {       "preferred": "false",       "contactType": "faxPhone",       "@type": "FaxPhoneContactMedium",       "fax_phone": ""     }   ],   "externalReference": [     {       "externalIdentifierType": "Facebook",       "name": "facebook.com"     },     {       "externalIdentifierType": "Twitter",       "name": "twitter.com"     }   ],   "partyCharacteristic": [     {       "name": "notes",       "value": "efdxcjkn ",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "registrationCode",       "value": "23456789",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "accountCode",       "value": "####30",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "identificationNumber",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "taxId",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "industry",       "value": "",       "valueType": "choice",       "@type": "StringCharacteristic"     },     {       "name": "numEmployees",       "value": "",       "valueType": "integer",       "@type": "IntergerCharacteristic"     },     {       "name": "rankTier",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "publiclyTraded",       "value": "false",       "valueType": "boolean",       "@type": "BooleanCharacteristic"     },     {       "name": "stockSymbol",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "stockPrice",       "value": "",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "vendorType",       "value": "Services, Applications",       "valueType": "list",       "@type": "StringArrayCharacteristic"     },     {       "name": "marketCap",       "value": "0",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "profits",       "value": "0",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "revenuePerYear",       "value": "0",       "valueType": "string",       "@type": "StringCharacteristic"     },     {       "name": "website",       "value": "sdfgh.com",       "valueType": "string",       "@type": "StringCharacteristic"     }   ],   "relatedParty": [     {       "role": "primary",       "partyOrPartyRole": {         "@type": "Organization",         "id": "b88d14843bc02300bfe04d72f3efc4cd",         "name": "Amy Chen"       }     },     {       "role": "other",       "partyOrPartyRole": {         "@type": "Organization",         "id": "016b7a36ff14a610f8dfffffffffffcb",         "name": "Kutty"       }     },     {       "role": "other",       "partyOrPartyRole": {         "@type": "Organization",         "id": "e8bb9d1aff94a210f8dfffffffffff1d",         "name": "World"       }     }   ],   "organizationChildRelationship": [     {       "relationshipType": "partner_account",       "organization": {         "id": "9e2fd2ee11b43110f877366201dea674",         "name": "Startech svcs",         "href": "api/sn_tmf_api/party/organization/9e2fd2ee11b43110f877366201dea674",         "@type": "Organization"       }     },     {       "relationshipType": "New type",       "organization": {         "id": "9e2fd2ee11b43110f877366201dea674",         "name": "Startech svcs",         "href": "api/sn_tmf_api/party/organization/9e2fd2ee11b43110f877366201dea674",         "@type": "Organization"       }     },     {       "relationshipType": "child",       "organization": {         "id": "9e2fd2ee11b43110f877366201dea674",         "name": "Startech svcs",         "href": "api/sn_tmf_api/party/organization/null",         "@type": "Organization"       }     }   ],   "organizationParentRelationship": {     "relationshipType": "parent",     "organization": {       "id": "ffc68911c35420105252716b7d40dd55",       "name": "Funco Intl",       "href": "undefinedffc68911c35420105252716b7d40dd55",       "@type": "Organization"     }   },   "status": "inActive",   "@type": "Organization",   "partyOrPartyRole": {     "name": "customer_partner_vendor_manufacturer",     "role": "Account",     "@type": "Party"   } }

Party Management - GET /api/sn_tmf_api/v1/party/organization

Retrieves organization-level party records from the Company [core_company] and Account [customer_account] tables. You can filter results by specific fields or IDs.

URL format

Versioned URL: /api/sn_tmf_api/v1/party/organization

Default URL: /api/sn_tmf_api/v1/party/organization

Supported request parameters

Name

Description

api_version

Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the latest. Data type: String

Name

Description

fields

List of fields to return in the response. Invalid fields are ignored.Valid fields:

  • @type
  • href
  • id
  • legalName
  • name
  • status
  • tradingName

Data type: String

Default: Returns all fields

id

Filter party management by sys_id. Specified sys_ids are returned in the response.Data type: String

limit

Maximum number of records to return. For requests that exceed this number of records, use the offset parameter to paginate record retrieval.Data type: Number

Default: 20

Maximum: 100

offset

Starting index at which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks.Data type: Number

Default: 0

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address: street, city, state, postal code
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the individual. Data type: String

contactMedium.contactType

The type of contact medium. Indicates the business-level attribute that specifies the kind of contact channel being used.Possible values:

  • businessPhone
  • email
  • homePhone
  • mobilePhone
  • postalAddress

Data type: String

contactMedium.country

Country of the individual.Data type: String

contactMedium.emailAddress

Email address of the contact.Data type: String

contactMedium.locationId

Sys_id of the party location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the individual.Data type: String

contactMedium.postCode

Postcode of the individual.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is in a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

familyName

Last name of the individual.Data type: String

gender

Gender of the individual.Data type: String

givenName

First name of the individual.Data type: String

href

Relative link to the user or consumer or contact record.Data type: String

middleName

Middle name of the individual.Data type: String

name

User name of the user or contact individual.Data type: String

nationality

Nationality of the individual.Data type: String

partyCharacteristics

List of characteristics associated with the party.Data type: Array of Objects

JSON
"partyCharacteristics": [ {  "@type": "String",  "name": " String",  "value": "String",  "valueType": "String" }]

partyCharacteristics.@type

When subclassing, this parameter defines the subclass extensible name.Possible values:

  • StringCharacteristic
  • StringArrayCharacteristic
  • IntegerCharacteristic
  • BooleanCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of the individual.Valid values:

  • active: Individual is in an active status.
  • inactive: Individual isn't in an active status.

Data type: Boolean

title

Prefix or title of the individual. For example, Dr., Mr., Ms.).Data type: String

### Headers

The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Header

Description

Accept

Data format of the response body. Supported types: application/json or application/xml. Default: application/json

|Header|Description| |------|-----------| |None| |

Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.

Status code Description
200 Successful. The request was successfully processed.

Response body parameters (JSON or XML)

Name Description
None

cURL request

This returns all organization records related to the enterprise.

Text
curl"http://instance.servicenow.com/api/sn_tmf_api/v1/party/organization" \--request GET \--header "Accept:application/json" \--user 'user':'password'

Response body.

JSON
[  {    "id": "0bd6717c184da610f87765359bc696d3",    "name": "SERVICENOW 144",    "href": "api/sn_tmf_api/party/organization0bd6717c184da610f87765359bc696d3",    "legalName": "",    "tradingName": "",    "contactMedium": [      {        "preferred": "false",        "contactType": "email",        "@type": "EmailContactMedium",        "emailAddress": "user@email.com"      },      {        "preferred": "false",        "contactType": "phone",        "@type": "PhoneContactMedium",        "phone": "+1-555-555-5555"      },      {        "preferred": "false",        "contactType": "faxPhone",        "@type": "FaxPhoneContactMedium",        "fax_phone": ""      }    ],    "externalReference": [      {        "externalIdentifierType": "Instagram",        "name": ""      }    ],    "partyCharacteristic": [      {        "name": "notes",        "value": "Testing for update the notes",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "registrationCode",        "value": "111122112211",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "accountCode",        "value": "accountcode1",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "identificationNumber",        "value": "",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "taxId",        "value": "CTNUM1000123",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "industry",        "value": "technology_services",        "valueType": "choice",        "@type": "StringCharacteristic"      },      {        "name": "numEmployees",        "value": "",        "valueType": "integer",        "@type": "IntergerCharacteristic"      },      {        "name": "rankTier",        "value": "rankTier",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "publiclyTraded",        "value": "false",        "valueType": "boolean",        "@type": "BooleanCharacteristic"      },      {        "name": "stockSymbol",        "value": "Market",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "stockPrice",        "value": "1000",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "vendorType",        "value": "Hardware",        "valueType": "list",        "@type": "StringArrayCharacteristic"      },      {        "name": "marketCap",        "value": "0",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "profits",        "value": "0",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "revenuePerYear",        "value": "0",        "valueType": "string",        "@type": "StringCharacteristic"      },      {        "name": "website",        "value": "",        "valueType": "string",        "@type": "StringCharacteristic"      }    ],    "relatedParty": [],    "organizationChildRelationship": [      {        "relationshipType": "Partner Account",        "organization": {          "id": "396b47201841a610f87765359bc696cf",          "name": "child",          "href": "api/sn_tmf_api/party/organization396b47201841a610f87765359bc696cf",          "@type": "Organization"        }      }    ],    "organizationParentRelationship": {      "relationshipType": "parent",      "organization": {        "id": "9e2fd2ee11b43110f877366201dea674",        "name": "Startech svcs",        "href": "api/sn_tmf_api/party/organization9e2fd2ee11b43110f877366201dea674",        "@type": "Organization"      }    },    "@type": "Organization",    "partyOrPartyRole": {      "name": "customer_partner",      "role": "Account",      "@type": "Party"    }  }]

Party Management – PATCH/api/sn_tmf_api/v1/party/individual/{id}

Updates an existing individual party record in the Consumer [csm_consumer] or Contact [customer_contact] table without replacing the entire resource.

URL format

Versioned URL: /api/sn_tmf_api/v1/party/individual

Default URL: /api/sn_tmf_api/v1/party/individual

Supported request parameters

Name

Description

api_version

Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the latest. Data type: String

id

Sys_id of the consumer or contact.Tables: Consumer [csm_consumer] or Contact [customer_contact]

Data type: String

|Name|Description| |----|-----------| |None| |

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address: street, city, state, postal code
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the individual. Data type: String

contactMedium.contactType

The type of contact medium. Indicates the business-level attribute that specifies the kind of contact channel being used.Possible values:

  • businessPhone
  • email
  • homePhone
  • mobilePhone
  • postalAddress

Data type: String

contactMedium.country

Country of the individual.Data type: String

contactMedium.emailAddress

Email address of the contact.Data type: String

contactMedium.locationId

Sys_id of the party location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the individual.Data type: String

contactMedium.postCode

Postcode of the individual.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is in a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

familyName

Last name of the individual.Data type: String

gender

Gender of the individual.Data type: String

givenName

First name of the individual.Data type: String

href

Relative link to the user or consumer or contact record.Data type: String

middleName

Middle name of the individual.Data type: String

name

User name of the user or contact individual.Data type: String

nationality

Nationality of the individual.Data type: String

partyCharacteristics

List of characteristics associated with the party.Data type: Array of Objects

JSON
"partyCharacteristics": [ {  "@type": "String",  "name": " String",  "value": "String",  "valueType": "String" }]

partyCharacteristics.@type

When subclassing, this parameter defines the subclass extensible name.Possible values:

  • StringCharacteristic
  • StringArrayCharacteristic
  • IntegerCharacteristic
  • BooleanCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of the individual.Valid values:

  • active: Individual is in an active status.
  • inactive: Individual isn't in an active status.

Data type: Boolean

title

Prefix or title of the individual. For example, Dr., Mr., Ms.).Data type: String

### Headers

The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Header

Description

Accept

Data format of the response body. Supported types: application/json or application/xml. Default: application/json

|Header|Description| |------|-----------| |None| |

Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.

Status code Description
200 Successful. The request was successfully processed.

Response body parameters (JSON or XML)

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address (street, city, state, postal code)
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the individual. Data type: String

contactMedium.contactType

The type of contact medium. Indicates the business-level attribute that specifies the kind of contact channel being used.Possible values:

  • businessPhone: Business phone number.
  • email: Email address.
  • homePhone: Home phone number.
  • mobilePhone: Mobile phone number.
  • postalAddress: Address, handled separately as a location.
  • faxPhone: Fax number.
  • phone: Generic phone number, omitted in v1 responses.

Data type: String

contactMedium.country

Country of the individual.Data type: String

contactMedium.emailAddress

Email address of the contact.Data type: String

contactMedium.locationId

Sys_id of the party location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the individual.Data type: String

contactMedium.postCode

Postal code of the individual.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is from a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

externalId

An external system identifier that links the party record to your source system or third-party application.Data type: String

familyName

Last name of the individual.Data type: String

gender

Gender of the individual.Data type: String

givenName

First name of the individual.Data type: String

href

Relative link to the user or consumer or contact record.Data type: String

id

Sys_id of the user or consumer or contact record to retrieve.Tables: Consumer [csm_consumer] or Contact [customer_contact]

Data type: String

middleName

Middle name of the individual.Data type: String

name

User name of the user or contact individual.Data type: String

nationality

Nationality of the individual.Data type: String

partyCharacteristics

List of characteristics associated with the party.Data type: Array of Objects

JSON
"partyCharacteristics": [ {  "@type": "String",  "name": " String",  "value": "String",  "valueType": "String" }]

partyCharacteristics.@type

When subclassing, this defines the subclass extensible name.Possible values:

  • StringCharacteristic
  • StringArrayCharacteristic
  • IntegerCharacteristic
  • BooleanCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of the individual.Valid values:

  • active: Individual is in an active status.
  • inactive: Individual is in an inactive status.

Data type: Boolean

title

Prefix or title of the individual. For example, Dr., Mr., Ms.).Data type: String

### cURL request

Updates an existing individual party record with sys_id, 12345, in the Consumer [csm_consumer] or Contact [customer_contact] table without replacing the entire resource.

Shell
curl "http://localhost:8080/api/sn_tmf_api/v1/party/Individual/12345" \--request PATCH \--header "Accept:application/json" \--header "Content-Type:application/json" \--user 'user':'password'--data "{  \"name\": \"John.Doe\",  \"givenName\": \"John\",  \"middleName\": \"A.\",  \"familyName\": \"Doe\",  \"gender\": \"male\",  \"nationality\": \"American\",  \"title\": \"Mr\",  \"contactMedium\": [    {      \"preferred\": true,      \"contactType\": \"email\",      \"emailAddress\": \"john.doe@gmail.com\",      \"@type\": \"EmailContactMedium\"    },    {      \"preferred\": false,      \"contactType\": \"businessPhone\",      \"phoneNumber\": \"+1-202-555-0188\",      \"@type\": \"PhoneContactMedium\"    },    {      \"preferred\": false,      \"contactType\": \"homePhone\",      \"phoneNumber\": \"+1-202-555-0198\",      \"@type\": \"HomePhoneContactMedium\"    },    {      \"preferred\": false,      \"contactType\": \"postalAddress\",      \"@type\": \"GeographicAddressContactMedium\",      \"locationId\":\"92656927259338967\",      \"city\": \"Morristown\",      \"country\": \"USA\",      \"postCode\": \"07960\",      \"stateOrProvince\": \"New Jersey\",      \"street1\": \"240 Headquarters Plazza\",       \"street2\": \"East Tower - 10th Floor\"    }  ],  \"partyCharacteristic\": [    {        \"name\": \"notification\",        \"value\": \"enable\",        \"valueType\": \"string\",        \"@type\": \"string\"    },    {        \"name\": \"dateFormat\",        \"value\": \"MM/DD/YYYY\",        \"valueType\": \"string\",        \"@type\": \"string\"    },    {        \"name\": \"timeFormat\",        \"value\": \"12-hour\",        \"valueType\": \"string\",        \"@type\": \"string\"    },    {        \"name\": \"timeZone\",        \"value\": \"EST\",        \"valueType\": \"string\",        \"@type\": \"string\"    },    {        \"name\": \"vip\",        \"value\": true,        \"valueType\": \"boolean\",        \"@type\": \"string\"    },    {        \"name\": \"webServiceAccessOnly\",        \"value\": false,        \"valueType\": \"boolean\",        \"@type\": \"string\"    },    {        \"name\": \"source\",        \"value\": \"Third-party system\",        \"valueType\": \"string\",        \"@type\": \"string\"    },    {        \"name\": \"eduStatus\",        \"value\": \"Graduated\",        \"valueType\": \"string\",        \"@type\": \"string\"    }  ],  \"relatedParty\": [    {      \"role\": \"Company\",      \"partyOrPartyRole\": {        \"id\": \"86c1f3193790200044e0bfc8bcbe5d95\",        \"name\": \"Acme Corporation\",        \"@type\": \"Organization\"      }    },    {      \"role\": \"Department\",      \"partyOrPartyRole\": {        \"id\": \"c3fdd27a7b9822105e0d5494548cb6b0\",        \"name\": \"Acme Corporation\",        \"@type\": \"Organization\"      }    }  ],  \"status\": \"active\",  \"@type\": \"Individual\",  \"partyOrPartyRole\": {    \"role\": \"Consumer\",    \"@type\":\"Party\"  }}" \

Response body.

JSON
{   "name": "Jane Smith",  "givenName": "Jane",  "middleName": "B.",  "familyName": "Smith",  "gender": "female",  "nationality": "American",  "title": "Ms",  "contactMedium": [    {      "preferred": true,      "contactType": "email",      "emailAddress": "jane.smith@example.com",      "@type": "EmailContactMedium"    },    {      "preferred": false,      "contactType": "mobilePhone",      "phoneNumber": "+1-416-555-1234",      "@type": "PhoneContactMedium"    },    {      "preferred": false,      "contactType": "businessPhone",      "phoneNumber": "+1-416-555-5678",      "@type": "BusinessPhoneContactMedium"    },    {      "preferred": false,      "contactType": "fax",      "fax": "987654321",      "@type": "FaxContactMedium"    },    {      "preferred": false,      "contactType": "homePhone",      "phoneNumber": "+1-416-555-4321",      "@type": "HomePhoneContactMedium"    },    {      "preferred": false,      "contactType": "postalAddress",      "@type": "GeographicAddressContactMedium",      "locationId": "03e588a17be062105e0d5494548cb68c",      "city": "Toronto",      "country": "Canada",      "postCode": "M5H 2N2",      "stateOrProvince": "Ontario",      "street1": "123 Queen St W",      "street2": "Suite 1500"    }  ],  "externalReference": [    {      "externalIdentifierType": "linkedin",      "id": "http://linkedin.com/in/janesmith"    }  ],  "partyCharacteristic": [    {      "name": "notes",      "value": "General consumer information.",      "valueType": "string",      "@type": "string"    },    {      "name": "userName",      "value": "janesmith",      "valueType": "string",      "@type": "string"    },    {      "name": "vip",      "value": false,      "valueType": "boolean",      "@type": "string"    },    {      "name": "source",      "value": "CRM System",      "valueType": "string",      "@type": "string"    },    {      "name": "dateFormat",      "value": "yyyy-mm-dd",      "valueType": "string",      "@type": "string"    },    {      "name": "timeformat",      "value": "HH:mm:ss (24 hour)",      "valueType": "string",      "@type": "string"    },    {      "name": "notification",      "value": "Disabled",      "valueType": "string",      "@type": "string"    }  ],  "relatedParty": [    {      "role": "User",      "partyOrPartyRole": {        "id": "c456def03710200044e0bfc8bcbe5d99",        "name": "Global Corp",        "@type": "Individual"      }    }  ],  "status": "active",  "@type": "Individual",  "partyOrPartyRole": {    "role": "Consumer",    "@type": "Party"  },   "warning": [    "relatedParty[0] is incorrect. User does not exist"  ]}

Party Management - PATCH /api/sn_tmf_api/v1/party/organization/{id}

Updates an existing individual party record in the Account [customer_account] tables without replacing the entire resource.

URL format

Versioned URL: /api/sn_tmf_api/v1/party/organization/{id}

Default URL: /api/sn_tmf_api/v1/party/organization/{id}

Supported request parameters

Name

Description

api_version

Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the latest. Data type: String

|Name|Description| |----|-----------| |None| |

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. A contact medium represents the way you communicate with or reach a party like an individual or organization. For example, a channel or method of contact associated with that party.Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contact medium. Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address (street, city, state, postal code)
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the organization.Data type: String

contactMedium.contactType

The type of contact medium. Possible values:

  • businessPhone
  • email
  • faxPhone
  • homePhone
  • mobilePhone
  • postalAddress

Data type: String

contactMedium.country

Country of the organization.Data type: String

contactMedium.emailAddress

Email address of the organization contact.Data type: String

contactMedium.locationId

Sys_id of the location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the organization contact.Data type: String

contactMedium.postCode

Postcode of the organization.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is from a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

externalReference

List of identifiers of the party in an external system.Data type: Array of Objects

Text
"externalReference": [  {   "externalIdentifierType": "String",   "name": "String"  }]

externalReference.externalIdentifierType

Type of entity within the external system.Data type: String

externalReference.name

Human-readable name of the external system or reference.Data type: String

href

Relative link to the account record (URI).Table: Account [customer_account]

Data type: String

id

Sys_id of the external entity account record.Table: Account [customer_account]

Data type: String

legalName

Legal name of the organization.Data type: String

name

Name of the organization.Data type: String

organizationChildRelationship

List of child organization relationships, such as subsidiary, partner, or branch organizations. Data type: Array of Objects

Text
"organizationChildRelationship": [  {    "relationshipType": "String",    "organization": {Object}  }]

organizationChildRelationship.organization

Child organization object containing identity and details.Data type: Object

JSON
"organization": {        "id": "String",        "name": "String",        "@type": "String"      }

organizationChildRelationship.organization.@type

Type of the organization object. Value is always Organization.Data type: String

organizationChildRelationship.organization.id

Sys_id of the child organization record.Table: Account [customer_account] or Organization [core_company]

Data type: String

organizationChildRelationship.organization.name

Display name of the child organization.Data type: String

organizationChildRelationship.relationshipType

Type of relationship between parent and child organization.Data type: String

Accepted values:

  • partneraccount
  • distributor
  • subsidiary
  • branch
  • reseller

organizationParentRelationship

Parent organization relationship. Data type: Object

Text
"organizationParentRelationship": {  "relationshipType": "String",  "organization": {Object}}

organizationParentRelationship.organization

Parent organization object containing identity and details.Data type: Object

JSON
"organization": {      "id": "String",      "name": "String",      "@type": "String"    }

organizationParentRelationship.organization.@type

Type of the organization object. Value is always Organization.Data type: String

organizationParentRelationship.organization.id

Sys_id of the parent organization record. Table: Account [customer_account] or Organization [core_company]

Data type: String

organizationParentRelationship.organization.name

Display name of the parent organization.Data type: String

organizationParentRelationship.relationshipType

Type of relationship between this organization and its parent.Accepted values:

  • Account
  • Company
  • HoldingCompany
  • ParentAccount

Data type: String

partyCharacteristics

List of characteristics that a party can take on. Data type: Array of Objects

JSON
"partyCharacteristics": [  {   "@type": "String"   "name": "String",     "value": "String",   "valueType": "String" } ]

partyCharacteristics.@type

When subclassing, @type defines the subclass extensible name.Possible value:

  • BooleanCharacteristic
  • IntegerCharacteristic
  • StringArrayCharacteristic
  • StringCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Accepted values:

  • notes
  • customer
  • registrationCode
  • vendorType
  • industry
  • taxId
  • numEmployees
  • rankTier
  • publiclyTraded
  • stockSymbolstockPrice
  • vendor
  • manufacturer
  • marketCap
  • profits
  • revenuePerYear
  • vendorType

Note: The partyCharacteristic.value attribute accepts the display value of rankTier and industry choice fields as input. Invalid values will trigger a warning message in the response.

Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of organization.Valid values:

  • active: Organization is active.
  • inactive: Organization is inactive.

Data type: Boolean

tradingName

Name that the organization trades under.Data type: String

### Headers

The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Header

Description

Accept

Data format of the response body. Supported types: application/json or application/xml. Default: application/json

|Header|Description| |------|-----------| |None| |

Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.

Status code Description
200 Successful. The request was successfully processed.

Response body parameters (JSON or XML)

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. A contact medium represents the way you communicate with or reach a party like an individual or organization. For example, a channel or method of contact associated with that party.Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contact medium. Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address (street, city, state, postal code)
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the organization.Data type: String

contactMedium.contactType

The type of contact medium. Possible values:

  • businessPhone
  • email
  • faxPhone
  • homePhone
  • mobilePhone
  • postalAddress

Data type: String

contactMedium.country

Country of the organization.Data type: String

contactMedium.emailAddress

Email address of the organization contact.Data type: String

contactMedium.locationId

Sys_id of the location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the organization contact.Data type: String

contactMedium.postCode

Postcode of the organization.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is from a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

createdDate

Timestamp when the organization record was created (ISO 8601 format). Data type: String

Example: "2025-06-25T14:32:18.000Z"

externalId

An external system identifier that links the party record to your source system or third-party application.Data type: String

externalReference

List of identifiers of the party in an external system.Data type: Array of Objects

Text
"externalReference": [  {   "externalIdentifierType": "String",   "name": "String"  }]

externalReference.externalIdentifierType

Type of entity within the external system.Data type: String

externalReference.name

Human-readable name of the external system or reference.Data type: String

href

Relative link to the account record (URI).Table: Account [customer_account]

Data type: String

id

Sys_id of the external entity account record.Table: Account [customer_account]

Data type: String

lastModifiedDate

Timestamp when the organization record was last modified (ISO 8601 format).Data type: String

Example: "2025-06-25T14:32:18.000Z"

legalName

Legal name of the organization.Data type: String

name

Name of the organization.Data type: String

partyCharacteristics

List of characteristics that a party can take on. Data type: Array of Objects

JSON
"partyCharacteristics": [  {   "@type": "String"   "name": "String",     "value": "String",   "valueType": "String" } ]

partyCharacteristics.@type

When subclassing, @type defines the subclass extensible name.Possible value:

  • BooleanCharacteristic
  • IntegerCharacteristic
  • StringArrayCharacteristic
  • StringCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of organization.Valid values:

  • active: Organization is active.
  • inactive: Organization is inactive.

Data type: Boolean

tradingName

Name that the organization trades under.Data type: String

### cURL request

This returns specified fields for the party management organization records.

Shell
curl "http://instance.service-now.com/api/sn_tmf_api/v1/party/organization" \--request PATCH\--header "Accept:application/json" \--header "Content-Type:application/json" \--user 'user':'password' \--data "{  \"name\": \"SERVICENOW 144\",  \"legalName\": \"Acme Corp Ltd.\",  \"tradingName\": \"Acme Inc.\",  \"contactMedium\": [    {      \"preferred\": true,      \"contactType\": \"email\",      \"emailAddress\": \"athammhd@email.com\",      \"@type\": \"EmailContactMedium\"    },    {      \"preferred\": false,      \"contactType\": \"phone\",      \"phoneNumber\": \"+1-202-555-0198\",      \"@type\": \"PhoneContactMedium\"    },    {      \"preferred\": false,      \"contactType\": \"businessPhone\",      \"phoneNumber\": \"+1-202-555-0198\",      \"@type\": \"BusinessPhoneContactMedium\"    },    {      \"preferred\": false,      \"contactType\": \"homePhone\",      \"phoneNumber\": \"+1-202-555-0198\",      \"@type\": \"HomePhoneContactMedium\"    },    {      \"preferred\": false,      \"contactType\": \"postalAddress\",      \"validFor\": {        \"startDateTime\": \"2017-03-15T07:49:25.246Z\"      },      \"@type\": \"GeographicAddressContactMedium\",      \"city\": \"chennai\",      \"country\": \"INDIA\",      \"postCode\": \"608001\",      \"stateOrProvince\": \"tamil nadu\",      \"street1\": \"samcon street\",      \"street2\": \"adyar,chennai\"    }  ],  \"externalReference\": [    {      \"externalIdentifierType\": \"Instagram\",      \"id\": \"Instagram\"    }  ],  \"partyCharacteristic\": [    {      \"name\": \"notes\",      \"value\": \"Testing for update the notes\",      \"valueType\": \"string\",      \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"customer\",      \"value\": \"true\",      \"valueType\": \"boolean\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"registrationCode\",      \"value\": \"001\",      \"valueType\": \"string\",       \"@type\": \"StringCharacteristics\"    },    {     \"name\": \"vendorType\",     \"value\": [\"Hardware\"],     \"valueType\": \"array\",      \"@type\": \"StringArrayCharacteristic\"     },     {      \"name\": \"industry\",      \"value\": \"technology_services\",      \"valueType\": \"choice\",        \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"taxId\",      \"value\": \"CTNUM1000123\",      \"valueType\": \"string\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"numEmployees\",      \"value\": \"EMP1000\",      \"valueType\": \"integer\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"rankTier\",      \"value\": \"rankTier\",      \"valueType\": \"string\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"publiclyTraded\",      \"value\": \"false\",      \"valueType\": \"boolean\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"stockSymbol\",      \"value\": \"Market\",      \"valueType\": \"string\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"stockPrice\",      \"value\": \"1000\",      \"valueType\": \"string\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"vendor\",      \"value\": \"false\",      \"valueType\": \"boolean\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"manufacturer\",      \"value\": \"false\",      \"valueType\": \"boolean\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"marketCap\",      \"value\": \"0\",      \"valueType\": \"currency\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"profits\",      \"value\": \"0\",      \"valueType\": \"currency\",       \"@type\": \"StringCharacteristics\"    },    {      \"name\": \"revenuePerYear\",      \"value\": \"0\",      \"valueType\": \"currency\",       \"@type\": \"StringCharacteristics\"    }  ],  \"relatedParty\": [    {      \"role\": \"primaryContact\",      \"partyOrPartyRole\": {        \"id\": \"eaf68911c35420105252716b7d40ddde\",        \"name\": \"John Doe\",        \"@type\": \"Individual\"      }    },    {      \"role\": \"other\",      \"partyOrPartyRole\": {        \"id\": \"776a22ea11f43110f877366201dea6b7\",        \"name\": \"Mary Star\",        \"@type\": \"Individual\"      }    }  ],  \"organizationChildRelationship\": [    {      \"relationshipType\": \"partneraccount\",      \"organization\": {        \"id\": \"0fef075b2fe06a10b79db3bf42faf31a\",        \"name\": \"mhd\",        \"@type\": \"Organization\"      }    }  ],  \"organizationParentRelationship\":     {      \"relationshipType\": \"Account\",      \"organization\": {        \"id\": \"9e2fd2ee11b43110f877366201dea674\",        \"name\": \"Global Holdings Ltd.\",        \"@type\": \"Organization\"      }    },  \"status\": \"active\",  \"@type\": \"Organization\",  \"partyOrPartyRole\": {    \"@type\":\"Party\",    \"name\":\"Customer\",    \"role\": \"Account\"   }}" \

Response body.

JSON
{  "name": "SERVICENOW 144",  "legalName": "Acme Corp Ltd.",  "tradingName": "Acme Inc.",  "contactMedium": [    {      "preferred": true,      "contactType": "email",      "emailAddress": "athammhd@email.com",      "@type": "EmailContactMedium"    },    {      "preferred": false,      "contactType": "phone",      "phoneNumber": "+1-202-555-0198",      "@type": "PhoneContactMedium"    },    {      "preferred": false,      "contactType": "businessPhone",      "phoneNumber": "+1-202-555-0198",      "@type": "BusinessPhoneContactMedium"    },    {      "preferred": false,      "contactType": "homePhone",      "phoneNumber": "+1-202-555-0198",      "@type": "HomePhoneContactMedium"    },    {      "preferred": false,      "contactType": "postalAddress",      "validFor": {        "startDateTime": "2017-03-15T07:49:25.246Z"      },      "@type": "GeographicAddressContactMedium",      "city": "chennai",      "country": "INDIA",      "postCode": "608001",      "stateOrProvince": "tamil nadu",      "street1": "samcon street",      "street2": "adyar,chennai"    }  ],  "externalReference": [    {      "externalIdentifierType": "Instagram",      "id": "Instagram"    }  ],  "partyCharacteristic": [    {      "name": "notes",      "value": "Testing for update the notes",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "customer",      "value": "true",      "valueType": "boolean",       "@type": "StringCharacteristics"    },    {      "name": "registrationCode",      "value": "001",      "valueType": "string",       "@type": "StringCharacteristics"    },    {     "name": "vendorType",     "value": ["Hardware"],     "valueType": "array",      "@type": "StringArrayCharacteristic"     },     {      "name": "industry",      "value": "technology_services",      "valueType": "choice",        "@type": "StringCharacteristics"    },    {      "name": "taxId",      "value": "CTNUM1000123",      "valueType": "string",       "@type": "StringCharacteristics"    },    {      "name": "numEmployees",      "value": "EMP1000",      "valueType": "integer",       "@type": "StringCharacteristics"    },    {      "name": "rankTier",      "value": "rankTier",      "valueType": "string",       "@type": "StringCharacteristics"    },    {      "name": "publiclyTraded",      "value": "false",      "valueType": "boolean",       "@type": "StringCharacteristics"    },    {      "name": "stockSymbol",      "value": "Market",      "valueType": "string",       "@type": "StringCharacteristics"    },    {      "name": "stockPrice",      "value": "1000",      "valueType": "string",       "@type": "StringCharacteristics"    },    {      "name": "vendor",      "value": "false",      "valueType": "boolean",       "@type": "StringCharacteristics"    },    {      "name": "manufacturer",      "value": "false",      "valueType": "boolean",       "@type": "StringCharacteristics"    },    {      "name": "marketCap",      "value": "0",      "valueType": "currency",       "@type": "StringCharacteristics"    },    {      "name": "profits",      "value": "0",      "valueType": "currency",       "@type": "StringCharacteristics"    },    {      "name": "revenuePerYear",      "value": "0",      "valueType": "currency",       "@type": "StringCharacteristics"    }  ],  "relatedParty": [    {      "role": "primaryContact",      "partyOrPartyRole": {        "id": "eaf68911c35420105252716b7d40ddde",        "name": "John Doe",        "@type": "Individual"      }    },    {      "role": "other",      "partyOrPartyRole": {        "id": "776a22ea11f43110f877366201dea6b7",        "name": "Mary Star",        "@type": "Individual"      }    }  ],  "organizationChildRelationship": [    {      "relationshipType": "partneraccount",      "organization": {        "id": "0fef075b2fe06a10b79db3bf42faf31a",        "name": "mhd",        "@type": "Organization"      }    }  ],  "organizationParentRelationship":     {      "relationshipType": "Account",      "organization": {        "id": "9e2fd2ee11b43110f877366201dea674",        "name": "Global Holdings Ltd.",        "@type": "Organization"      }    },  "status": "active",  "@type": "Organization",  "partyOrPartyRole": {    "@type":"Party",    "name":"Customer",    "role": "Account"   }}

Party Management - POST /api/sn_tmf_api/v1/party/individual

Creates a new individual party management record in the Consumer [csm_consumer] or Contact [customer_contact] tables.

URL format

Versioned URL: /api/sn_tmf_api/v1/party/individual

Default URL: /api/sn_tmf_api/v1/party/individual

Supported request parameters

Name

Description

api_version

Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the latest. Data type: String

|Name|Description| |----|-----------| |None| |

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address: street, city, state, postal code
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the individual. Data type: String

contactMedium.contactType

The type of contact medium. Indicates the business-level attribute that specifies the kind of contact channel being used.Possible values:

  • businessPhone
  • email
  • homePhone
  • mobilePhone
  • postalAddress

Data type: String

contactMedium.country

Country of the individual.Data type: String

contactMedium.emailAddress

Email address of the contact.Data type: String

contactMedium.locationId

Sys_id of the party location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the individual.Data type: String

contactMedium.postCode

Postcode of the individual.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is in a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

familyName

Last name of the individual.Data type: String

gender

Gender of the individual.Data type: String

givenName

First name of the individual.Data type: String

href

Relative link to the user or consumer or contact record.Data type: String

middleName

Middle name of the individual.Data type: String

name

User name of the user or contact individual.Data type: String

nationality

Nationality of the individual.Data type: String

partyCharacteristics

List of characteristics associated with the party.Data type: Array of Objects

JSON
"partyCharacteristics": [ {  "@type": "String",  "name": " String",  "value": "String",  "valueType": "String" }]

partyCharacteristics.@type

When subclassing, this parameter defines the subclass extensible name.Possible values:

  • StringCharacteristic
  • StringArrayCharacteristic
  • IntegerCharacteristic
  • BooleanCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of the individual.Valid values:

  • active: Individual is in an active status.
  • inactive: Individual isn't in an active status.

Data type: Boolean

title

Prefix or title of the individual. For example, Dr., Mr., Ms.).Data type: String

### Headers

The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Header

Description

Accept

Data format of the response body. Supported types: application/json or application/xml. Default: application/json

|Header|Description| |------|-----------| |None| |

Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.

Status code Description
200 Successful. The request was successfully processed.

Response body parameters (JSON or XML)

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address (street, city, state, postal code)
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the individual. Data type: String

contactMedium.contactType

The type of contact medium. Indicates the business-level attribute that specifies the kind of contact channel being used.Possible values:

  • businessPhone: Business phone number.
  • email: Email address.
  • homePhone: Home phone number.
  • mobilePhone: Mobile phone number.
  • postalAddress: Address, handled separately as a location.
  • faxPhone: Fax number.
  • phone: Generic phone number, omitted in v1 responses.

Data type: String

contactMedium.country

Country of the individual.Data type: String

contactMedium.emailAddress

Email address of the contact.Data type: String

contactMedium.locationId

Sys_id of the party location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the individual.Data type: String

contactMedium.postCode

Postal code of the individual.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is from a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

externalId

An external system identifier that links the party record to your source system or third-party application.Data type: String

familyName

Last name of the individual.Data type: String

gender

Gender of the individual.Data type: String

givenName

First name of the individual.Data type: String

href

Relative link to the user or consumer or contact record.Data type: String

id

Sys_id of the user or consumer or contact record to retrieve.Tables: Consumer [csm_consumer] or Contact [customer_contact]

Data type: String

middleName

Middle name of the individual.Data type: String

name

User name of the user or contact individual.Data type: String

nationality

Nationality of the individual.Data type: String

partyCharacteristics

List of characteristics associated with the party.Data type: Array of Objects

JSON
"partyCharacteristics": [ {  "@type": "String",  "name": " String",  "value": "String",  "valueType": "String" }]

partyCharacteristics.@type

When subclassing, this defines the subclass extensible name.Possible values:

  • StringCharacteristic
  • StringArrayCharacteristic
  • IntegerCharacteristic
  • BooleanCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of the individual.Valid values:

  • active: Individual is in an active status.
  • inactive: Individual is in an inactive status.

Data type: Boolean

title

Prefix or title of the individual. For example, Dr., Mr., Ms.).Data type: String

### cURL request

This returns specified fields for the party management individual records.

Shell
curl "http://instance.servicenow.com/api/sn_tmf_api/v1/party/individual" \--request POST \--header "Accept:application/json" \--header "Content-Type:application/json" \--user 'user':'password'--data "{    \"id\": \"98765\",    \"name\": \"Jane Smith\",    \"givenName\": \"Jane\",    \"middleName\": \"B.\",    \"familyName\": \"Smith\",    \"gender\": \"female\",    \"nationality\": \"American\",    \"title\": \"Ms\",    \"contactMedium\": [      {        \"preferred\": true,        \"contactType\": \"email\",        \"emailAddress\": \"jane.smith@example.com\",        \"@type\": \"EmailContactMedium\"      },      {        \"preferred\": false,        \"contactType\": \"mobilePhone\",        \"phoneNumber\": \"+1-416-555-1234\",        \"@type\": \"PhoneContactMedium\"      },      {        \"preferred\": false,        \"contactType\": \"businessPhone\",        \"phoneNumber\": \"+1-416-555-5678\",        \"@type\": \"BusinessPhoneContactMedium\"      },      {        \"preferred\": false,        \"contactType\": \"fax\",        \"fax\": \"987654321\",        \"@type\": \"FaxContactMedium\"      },      {        \"preferred\": false,        \"contactType\": \"homePhone\",        \"phoneNumber\": \"+1-416-555-4321\",        \"@type\": \"HomePhoneContactMedium\"      },      {        \"preferred\": false,        \"contactType\": \"postalAddress\",        \"@type\": \"GeographicAddressContactMedium\",        \"locationId\": \"12345678901234567\",        \"city\": \"Toronto\",        \"country\": \"Canada\",        \"postCode\": \"M5H 2N2\",        \"stateOrProvince\": \"Ontario\",        \"street1\": \"123 Queen St W\",        \"street2\": \"Suite 1500\"      }    ],    \"externalReference\": [      {        \"externalIdentifierType\": \"linkedin\",        \"id\": \"http://linkedin.com/in/janesmith\"      }    ],    \"partyCharacteristic\": [      {        \"name\": \"notes\",        \"value\": \"General consumer information.\",        \"valueType\": \"string\",        \"@type\": \"string\"      },      {        \"name\": \"userName\",        \"value\": \"janesmith\",        \"valueType\": \"string\",        \"@type\": \"string\"      },      {        \"name\": \"vip\",        \"value\": false,        \"valueType\": \"boolean\",        \"@type\": \"string\"      },      {        \"name\": \"source\",        \"value\": \"CRM System\",        \"valueType\": \"string\",        \"@type\": \"string\"      },      {        \"name\": \"dateFormat\",        \"value\": \"yyyy-mm-dd\",        \"valueType\": \"string\",        \"@type\": \"string\"      },      {        \"name\": \"timeformat\",        \"value\": \"HH:mm:ss (24 hour)\",        \"valueType\": \"string\",        \"@type\": \"string\"      },      {        \"name\": \"notification\",        \"value\": \"Disabled\",        \"valueType\": \"string\",        \"@type\": \"string\"      }    ],    \"relatedParty\": [      {        \"role\": \"User\",        \"partyOrPartyRole\": {          \"id\": \"c456def03710200044e0bfc8bcbe5d99\",          \"name\": \"Global Corp\",          \"@type\": \"Individual\"        }      }    ],    \"status\": \"active\",    \"@type\": \"Individual\",    \"partyOrPartyRole\": {      \"role\": \"Consumer\",      \"@type\": \"Party\"    }  }" \

Response body.

JSON
{  "id": "83e588a17b6062105e0d5494548cb65d","href": "api/sn_tmf_api/party/individual/83e588a17b6062105e0d5494548cb65d",  "name": "Jane Smith",  "givenName": "Jane",  "middleName": "B.",  "familyName": "Smith",  "gender": "female",  "nationality": "American",  "title": "Ms",  "contactMedium": [    {      "preferred": true,      "contactType": "email",      "emailAddress": "jane.smith@example.com",      "@type": "EmailContactMedium"    },    {      "preferred": false,      "contactType": "mobilePhone",      "phoneNumber": "+1-416-555-1234",      "@type": "PhoneContactMedium"    },    {      "preferred": false,      "contactType": "businessPhone",      "phoneNumber": "+1-416-555-5678",      "@type": "BusinessPhoneContactMedium"    },    {      "preferred": false,      "contactType": "fax",      "fax": "987654321",      "@type": "FaxContactMedium"    },    {      "preferred": false,      "contactType": "homePhone",      "phoneNumber": "+1-416-555-4321",      "@type": "HomePhoneContactMedium"    },    {      "preferred": false,      "contactType": "postalAddress",      "@type": "GeographicAddressContactMedium",      "locationId": "03e588a17be062105e0d5494548cb68c",      "city": "Toronto",      "country": "Canada",      "postCode": "M5H 2N2",      "stateOrProvince": "Ontario",      "street1": "123 Queen St W",      "street2": "Suite 1500"    }  ],  "externalReference": [    {      "externalIdentifierType": "linkedin",      "id": "http://linkedin.com/in/janesmith"    }  ],  "partyCharacteristic": [    {      "name": "notes",      "value": "General consumer information.",      "valueType": "string",      "@type": "string"    },    {      "name": "userName",      "value": "janesmith",      "valueType": "string",      "@type": "string"    },    {      "name": "vip",      "value": false,      "valueType": "boolean",      "@type": "string"    },    {      "name": "source",      "value": "CRM System",      "valueType": "string",      "@type": "string"    },    {      "name": "dateFormat",      "value": "yyyy-mm-dd",      "valueType": "string",      "@type": "string"    },    {      "name": "timeformat",      "value": "HH:mm:ss (24 hour)",      "valueType": "string",      "@type": "string"    },    {      "name": "notification",      "value": "Disabled",      "valueType": "string",      "@type": "string"    }  ],  "relatedParty": [    {      "role": "User",      "partyOrPartyRole": {        "id": "c456def03710200044e0bfc8bcbe5d99",        "name": "Global Corp",        "@type": "Individual"      }    }  ],  "status": "active",  "@type": "Individual",  "partyOrPartyRole": {    "role": "Consumer",    "@type": "Party"  },   "warning": [    "relatedParty[0] is incorrect. User does not exist"  ]}

Party Management - POST /api/sn_tmf_api/v1/party/organization

Creates a new party organization record in the Account [customer_account] tables. You can also create and associate Contact and Location records inline during organization creation, eliminating the need for separate POST operations.

Automatic Location Creation with contactMedium

When you include address information in the contactMedium field (with @type set to GeographicAddressContactMedium), the system automatically handles location creation and association based on what you provide:

  1. If you supply a valid locationId, the system links the existing location record to the organization you are creating.
  2. If you provide address attributes (street, city, country, postCode, stateOrProvince) along with an invalid or non-existent locationId, the system automatically creates a new location record with those attributes and associates it to the organization.
  3. If you provide address attributes without specifying a locationId at all, the system creates a new location record and associates it to the organization.

Note: Location creation requires no mandatory fields. You can provide any combination of address attributes (street1, street2, city, state, postCode, country) based on your needs. If you omit all address attributes from the contactMedium section, no location record is created or linked to the organization.

Inline Contact Creation with relatedParty

When you include contact attributes in the relatedParty field without providing a contact ID, the system automatically creates a new contact record and associates it to the organization you are creating. This eliminates the need for a separate POST request to create the contact first. You can include the following contact information directly in the relatedParty.partyOrPartyRole object.

Mandatory attributes for inline contact creation:

  • familyName (or lastName)
  • email

Optional attributes:

  • givenName
  • middleName
  • gender
  • title
  • nationality
  • contactMedium (to include phone, address, or other contact details)

Example: Creating a contact inline without a pre-existing ID.

JSON
{  "relatedParty": [    {      "role": "primaryContact",      "partyOrPartyRole": {        "givenName": "John",        "familyName": "Doe",        "email": "john.doe@example.com",        "@type": "Individual"      }    }  ]}

Legacy approach: Linking an existing contact by ID.

If you already have a contact record, you can link it by providing its sys_id instead:

JSON
{  "relatedParty": [    {      "role": "primaryContact",      "partyOrPartyRole": {        "id": "existing_contact_sys_id",        "name": "John Doe",        "@type": "Individual"      }    }  ]}

Both approaches are supported. The system automatically determines whether to create a new contact or link an existing one based on whether the partyOrPartyRole includes an id field.

URL format

Versioned URL: /api/sn_tmf_api/v1/party/organization

Default URL: /api/sn_tmf_api/v1/party/organization

Supported request parameters

Name

Description

api_version

Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the latest. Data type: String

|Name|Description| |----|-----------| |None| |

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. A contact medium represents the way you communicate with or reach a party like an individual or organization. For example, a channel or method of contact associated with that party.Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contact medium. Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address (street, city, state, postal code)
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the organization.Data type: String

contactMedium.contactType

The type of contact medium. Possible values:

  • businessPhone
  • email
  • faxPhone
  • homePhone
  • mobilePhone
  • postalAddress

Data type: String

contactMedium.country

Country of the organization.Data type: String

contactMedium.emailAddress

Email address of the organization contact.Data type: String

contactMedium.locationId

Sys_id of the location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the organization contact.Data type: String

contactMedium.postCode

Postcode of the organization.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is from a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

externalReference

List of identifiers of the party in an external system.Data type: Array of Objects

Text
"externalReference": [  {   "externalIdentifierType": "String",   "name": "String"  }]

externalReference.externalIdentifierType

Type of entity within the external system.Data type: String

externalReference.name

Human-readable name of the external system or reference.Data type: String

href

Relative link to the account record (URI).Table: Account [customer_account]

Data type: String

id

Sys_id of the external entity account record.Table: Account [customer_account]

Data type: String

legalName

Legal name of the organization.Data type: String

name

Name of the organization.Data type: String

organizationChildRelationship

List of child organization relationships, such as subsidiary, partner, or branch organizations. Data type: Array of Objects

Text
"organizationChildRelationship": [  {    "relationshipType": "String",    "organization": {Object}  }]

organizationChildRelationship.organization

Child organization object containing identity and details.Data type: Object

JSON
"organization": {        "id": "String",        "name": "String",        "@type": "String"      }

organizationChildRelationship.organization.@type

Type of the organization object. Value is always Organization.Data type: String

organizationChildRelationship.organization.id

Sys_id of the child organization record.Table: Account [customer_account] or Organization [core_company]

Data type: String

organizationChildRelationship.organization.name

Display name of the child organization.Data type: String

organizationChildRelationship.relationshipType

Type of relationship between parent and child organization.Data type: String

Accepted values:

  • partneraccount
  • distributor
  • subsidiary
  • branch
  • reseller

organizationParentRelationship

Parent organization relationship. Data type: Object

Text
"organizationParentRelationship": {  "relationshipType": "String",  "organization": {Object}}

organizationParentRelationship.organization

Parent organization object containing identity and details.Data type: Object

JSON
"organization": {      "id": "String",      "name": "String",      "@type": "String"    }

organizationParentRelationship.organization.@type

Type of the organization object. Value is always Organization.Data type: String

organizationParentRelationship.organization.id

Sys_id of the parent organization record. Table: Account [customer_account] or Organization [core_company]

Data type: String

organizationParentRelationship.organization.name

Display name of the parent organization.Data type: String

organizationParentRelationship.relationshipType

Type of relationship between this organization and its parent.Accepted values:

  • Account
  • Company
  • HoldingCompany
  • ParentAccount

Data type: String

partyCharacteristics

List of characteristics that a party can take on. Data type: Array of Objects

JSON
"partyCharacteristics": [  {   "@type": "String"   "name": "String",     "value": "String",   "valueType": "String" } ]

partyCharacteristics.@type

When subclassing, @type defines the subclass extensible name.Possible value:

  • BooleanCharacteristic
  • IntegerCharacteristic
  • StringArrayCharacteristic
  • StringCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Accepted values:

  • notes
  • customer
  • registrationCode
  • vendorType
  • industry
  • taxId
  • numEmployees
  • rankTier
  • publiclyTraded
  • stockSymbolstockPrice
  • vendor
  • manufacturer
  • marketCap
  • profits
  • revenuePerYear
  • vendorType

Note: The partyCharacteristic.value attribute accepts the display value of rankTier and industry choice fields as input. Invalid values will trigger a warning message in the response.

Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of organization.Valid values:

  • active: Organization is active.
  • inactive: Organization is inactive.

Data type: Boolean

tradingName

Name that the organization trades under.Data type: String

### Headers

The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.

Header

Description

Accept

Data format of the response body. Supported types: application/json or application/xml. Default: application/json

|Header|Description| |------|-----------| |None| |

Status codes

The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.

Status code

Description

200

Successful. The request was successfully processed.Note: Response may include a warning array if:

  • Invalid relatedParty IDs are provided (related contact or party doesn't exist).
  • Invalid locationId is provided in contactMedium. Example warning: relatedParty[0] is incorrect. User does not exist.
### Response body parameters \(JSON or XML\)

Response body parameters (JSON or XML)

Name

Description

@type

Specifies the object type being created. Determines whether the request creates an Account, Consumer, or Contact record. Replaces the previous PartyOrPartyRole object. Valid values:

  • Account
  • Consumer
  • Contact

Data type: String

contactMedium

List of means for contacting the party. A contact medium represents the way you communicate with or reach a party like an individual or organization. For example, a channel or method of contact associated with that party.Data type: Array of Objects

JSON
"contactMedium": [ {  "@type": "String",  "city": "String",  "country": "String",  "emailAddress": "String",  "locationId": "String",  "contactType": "String",  "phoneNumber": "String",  "postCode": "String",  "preferred": "Boolean",  "stateOrProvince": "String",  "street1": "String",  "street2": "String" }]

contactMedium.@type

Type of contact medium. Type of contacting party. Indicates the specific schema or subclass type of the object.Possible values:

  • BusinessPhoneContactMedium: Business phone number
  • EmailContactMedium: Email address
  • FaxPhoneContactMedium: Fax number
  • GeographicAddressContactMedium: Physical address (street, city, state, postal code)
  • HomePhoneContactMedium: Home phone number
  • MobilePhoneContactMedium: Mobile number

Data type: String

contactMedium.city

City of the organization.Data type: String

contactMedium.contactType

The type of contact medium. Possible values:

  • businessPhone
  • email
  • faxPhone
  • homePhone
  • mobilePhone
  • postalAddress

Data type: String

contactMedium.country

Country of the organization.Data type: String

contactMedium.emailAddress

Email address of the organization contact.Data type: String

contactMedium.locationId

Sys_id of the location.Table: Location [cmn_location]

Data type: String

contactMedium.phoneNumber

Phone number of the organization contact.Data type: String

contactMedium.postCode

Postcode of the organization.Data type: String

contactMedium.preferred

This value is always false.Data type: Boolean

contactMedium.stateOrProvince

Indicates whether the location is from a state or province.Possible values:

  • state
  • province

Data type: String

contactMedium.street1

Describes the street.Data type: String

contactMedium.street2

Complementary street description.Data type: String

createdDate

Timestamp when the organization record was created (ISO 8601 format). Data type: String

Example: "2025-06-25T14:32:18.000Z"

externalId

An external system identifier that links the party record to your source system or third-party application.Data type: String

externalReference

List of identifiers of the party in an external system.Data type: Array of Objects

Text
"externalReference": [  {   "externalIdentifierType": "String",   "name": "String"  }]

externalReference.externalIdentifierType

Type of entity within the external system.Data type: String

externalReference.name

Human-readable name of the external system or reference.Data type: String

href

Relative link to the account record (URI).Table: Account [customer_account]

Data type: String

id

Sys_id of the external entity account record.Table: Account [customer_account]

Data type: String

lastModifiedDate

Timestamp when the organization record was last modified (ISO 8601 format).Data type: String

Example: "2025-06-25T14:32:18.000Z"

legalName

Legal name of the organization.Data type: String

name

Name of the organization.Data type: String

partyCharacteristics

List of characteristics that a party can take on. Data type: Array of Objects

JSON
"partyCharacteristics": [  {   "@type": "String"   "name": "String",     "value": "String",   "valueType": "String" } ]

partyCharacteristics.@type

When subclassing, @type defines the subclass extensible name.Possible value:

  • BooleanCharacteristic
  • IntegerCharacteristic
  • StringArrayCharacteristic
  • StringCharacteristic

Data type: String

partyCharacteristics.name

Name of the party characteristic.Data type: String

partyCharacteristics.value

Value of the party characteristic.Data type: String

partyCharacteristics.valueType

Data type of the characteristic's value.Data type: String

relatedParty

List of parties or party roles related to this party.Data type: Array of Objects

Text
"relatedParty": [ {  "@type": "User",  "role": "String" }]

relatedParty.@type

The type of related party. For Consumer creation, use "User". This value indicates that a new Consumer user will be created in ServiceNow, or if a matching user exists, it will be associated with the new Consumer.Data type: String

relatedParty.role

Functional, business role that the related party plays in the context of the current entity.Possible values:

  • Company (if related party is User)
  • Department (if related party is User)
  • Account (if related party is Customer)
  • User (if related party is Consumer)

Data type: String

status

Flag that indicates the status of organization.Valid values:

  • active: Organization is active.
  • inactive: Organization is inactive.

Data type: Boolean

tradingName

Name that the organization trades under.Data type: String

### cURL request

This returns specified fields for the party management organization records.

Shell
curl "http://instance.service-now.com/api/sn_tmf_api/v1/party/organization" \  --request POST \  --header "Accept: application/json" \  --header "Content-Type: application/json" \  --user 'user:password' \  --data '{  "name": "SERVICENOW 144",  "legalName": "Acme Corp Ltd.",  "tradingName": "Acme Inc.",  "contactMedium": [    {      "preferred": true,      "contactType": "email",      "emailAddress": "athammhd@email.com",      "@type": "EmailContactMedium"    },    {      "preferred": false,      "contactType": "mobilePhone",      "phoneNumber": "+1-202-555-0198",      "@type": "PhoneContactMedium"    },    {      "preferred": false,      "contactType": "businessPhone",      "phoneNumber": "+1-202-555-0198",      "@type": "BusinessPhoneContactMedium"    },    {      "preferred": false,      "contactType": "homePhone",      "phoneNumber": "+1-202-555-0198",      "@type": "HomePhoneContactMedium"    },    {      "preferred": false,      "contactType": "postalAddress",      "validFor": {        "startDateTime": "2017-03-15T07:49:25.246Z"      },      "@type": "GeographicAddressContactMedium",      "locationId": "12345678901234567",      "city": "chennai",      "country": "INDIA",      "postCode": "608001",      "stateOrProvince": "tamil nadu",      "street1": "samcon street",      "street2": "adyar,chennai"    }  ],  "externalReference": [    {      "externalIdentifierType": "Instagram",      "id": "Instagram"    }  ],  "partyCharacteristic": [    {      "name": "notes",      "value": "Testing for update the notes",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "customer",      "value": "true",      "valueType": "boolean",      "@type": "StringCharacteristics"    },    {      "name": "registrationCode",      "value": "001",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "vendorType",      "value": ["Hardware"],      "valueType": "array",      "@type": "StringArrayCharacteristic"    },    {      "name": "industry",      "value": "Manufacturing",      "valueType": "choice",      "@type": "StringCharacteristics"    },    {      "name": "taxId",      "value": "CTNUM1000123",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "numEmployees",      "value": "10",      "valueType": "integer",      "@type": "StringCharacteristics"    },    {      "name": "rankTier",      "value": "Valued Partner",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "publiclyTraded",      "value": "false",      "valueType": "boolean",      "@type": "StringCharacteristics"    },    {      "name": "stockSymbol",      "value": "Market",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "stockPrice",      "value": "1000",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "vendor",      "value": "false",      "valueType": "boolean",      "@type": "StringCharacteristics"    },    {      "name": "manufacturer",      "value": "false",      "valueType": "boolean",      "@type": "StringCharacteristics"    },    {      "name": "marketCap",      "value": "0",      "valueType": "currency",      "@type": "StringCharacteristics"    },    {      "name": "profits",      "value": "0",      "valueType": "currency",      "@type": "StringCharacteristics"    },    {      "name": "revenuePerYear",      "value": "0",      "valueType": "currency",      "@type": "StringCharacteristics"    }  ],  "relatedParty": [    {      "role": "primaryContact",      "partyOrPartyRole": {        "givenName": "John",        "familyName": "Doe",        "email": "john.doe@example.com",        "@type": "Individual"      }    },    {      "role": "other",      "partyOrPartyRole": {        "givenName": "Mary",        "familyName": "Star",        "email": "mary.star@example.com",        "@type": "Individual"      }    }  ],  "organizationChildRelationship": [    {      "relationshipType": "partneraccount",      "organization": {        "id": "0fef075b2fe06a10b79db3bf42faf31a",        "name": "mhd",        "@type": "Organization"      }    }  ],  "organizationParentRelationship": {    "relationshipType": "Account",    "organization": {      "id": "9e2fd2ee11b43110f877366201dea674",      "name": "Global Holdings Ltd.",      "@type": "Organization"    }  },  "status": "active",  "@type": "Organization"}'

Response body.

JSON
{  "id": "0fef075b2fe06a10b79db3bf42faf31c",  "href": "http://instance.service-now.com/api/sn_tmf_api/v1/party/organization/0fef075b2fe06a10b79db3bf42faf31c",  "name": "SERVICENOW 144",  "legalName": "Acme Corp Ltd.",  "tradingName": "Acme Inc.",  "contactMedium": [    {      "preferred": true,      "contactType": "email",      "emailAddress": "athammhd@email.com",      "@type": "EmailContactMedium"    },    {      "preferred": false,      "contactType": "mobilePhone",      "phoneNumber": "+1-202-555-0198",      "@type": "PhoneContactMedium"    },    {      "preferred": false,      "contactType": "businessPhone",      "phoneNumber": "+1-202-555-0198",      "@type": "BusinessPhoneContactMedium"    },    {      "preferred": false,      "contactType": "homePhone",      "phoneNumber": "+1-202-555-0198",      "@type": "HomePhoneContactMedium"    },    {      "preferred": false,      "contactType": "postalAddress",      "validFor": {        "startDateTime": "2017-03-15T07:49:25.246Z"      },      "@type": "GeographicAddressContactMedium",      "locationId": "03e588a17be062105e0d5494548cb68c",      "city": "chennai",      "country": "INDIA",      "postCode": "608001",      "stateOrProvince": "tamil nadu",      "street1": "samcon street",      "street2": "adyar,chennai"    }  ],  "externalReference": [    {      "externalIdentifierType": "Instagram",      "id": "Instagram"    }  ],  "partyCharacteristic": [    {      "name": "notes",      "value": "Testing for update the notes",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "customer",      "value": "true",      "valueType": "boolean",      "@type": "StringCharacteristics"    },    {      "name": "registrationCode",      "value": "001",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "vendorType",      "value": ["Hardware"],      "valueType": "array",      "@type": "StringArrayCharacteristic"    },    {      "name": "industry",      "value": "Manufacturing",      "valueType": "choice",      "@type": "StringCharacteristics"    },    {      "name": "taxId",      "value": "CTNUM1000123",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "numEmployees",      "value": "10",      "valueType": "integer",      "@type": "StringCharacteristics"    },    {      "name": "rankTier",      "value": "Valued Partner",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "publiclyTraded",      "value": "false",      "valueType": "boolean",      "@type": "StringCharacteristics"    },    {      "name": "stockSymbol",      "value": "Market",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "stockPrice",      "value": "1000",      "valueType": "string",      "@type": "StringCharacteristics"    },    {      "name": "vendor",      "value": "false",      "valueType": "boolean",      "@type": "StringCharacteristics"    },    {      "name": "manufacturer",      "value": "false",      "valueType": "boolean",      "@type": "StringCharacteristics"    },    {      "name": "marketCap",      "value": "0",      "valueType": "currency",      "@type": "StringCharacteristics"    },    {      "name": "profits",      "value": "0",      "valueType": "currency",      "@type": "StringCharacteristics"    },    {      "name": "revenuePerYear",      "value": "0",      "valueType": "currency",      "@type": "StringCharacteristics"    }  ],  "relatedParty": [    {      "role": "primaryContact",      "partyOrPartyRole": {        "id": "eaf68911c35420105252716b7d40ddde",        "givenName": "John",        "familyName": "Doe",        "email": "john.doe@example.com",        "name": "John Doe",        "@type": "Individual"      }    },    {      "role": "other",      "partyOrPartyRole": {        "id": "776a22ea11f43110f877366201dea6b7",        "givenName": "Mary",        "familyName": "Star",        "email": "mary.star@example.com",        "name": "Mary Star",        "@type": "Individual"      }    }  ],  "organizationChildRelationship": [    {      "relationshipType": "partneraccount",      "organization": {        "id": "0fef075b2fe06a10b79db3bf42faf31a",        "name": "mhd",        "@type": "Organization"      }    }  ],  "organizationParentRelationship": {    "relationshipType": "Account",    "organization": {      "id": "9e2fd2ee11b43110f877366201dea674",      "name": "Global Holdings Ltd.",      "@type": "Organization"    }  },  "status": "active",  "@type": "Organization",  "createdDate": "2025-06-25T14:32:18.000Z",  "lastModifiedDate": "2025-06-25T14:32:18.000Z"}
Search documentation
Search document titles and file paths on the australia branch