--- title: Consumer API description: The Consumer API provides endpoints to retrieve and update Customer Service Management \(CSM\) consumer records.Retrieves a specified set of Customer Service Management \(CSM\) consumer records.Retrieves the specified Customer Service Management \(CSM\) consumer record.Creates a new Customer Service Management \(CSM\) consumer. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-apis/consumer-api.html release: australia product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 17 breadcrumb: [REST API reference, API reference, API implementation and reference] --- # Consumer API The Consumer API provides endpoints to retrieve and update Customer Service Management \(CSM\) consumer records. In addition, you can generate new social media profile records when creating a consumer. The Consumer API requires the Customer Service plugin \(com.sn\_customerservice\) and is provided within the `now` namespace. Users require the csm\_ws\_integration role for full API access. **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/api-rest.md) ## Consumer - GET /now/consumer Retrieves a specified set of Customer Service Management \(CSM\) consumer records. ### URL format Versioned URL: `/api/now/{api_version}/consumer` Default URL: `/api/now/consumer` **Note:** Available versions are specified in the [REST API Explorer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/use-REST-API-Explorer.md). For scripted REST APIs there is additional version information on the [Scripted REST Service form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md). ### 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 |
|---|---|
| sysparm\_limit | Maximum number of records to return. For requests that exceed this number of records, use the **sysparm\_offset** parameter to paginate record retrieval. In the response, the boolean parameter **hasMore** is returned. It indicates whether there are more records to return that meet the filter criteria. Data type: Number Default: 10 |
| sysparm\_offset | Starting record index for 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. For example, the first time you call this endpoint, **sysparm\_offset** is set to "0". To simply page through all available records, use `sysparm_offset=sysparm_offset+sysparm_limit`, until you reach the end of all records. Do not pass a negative number in the **sysparm\_offset** parameter. Data type: Number Default: 0 |
| sysparm\_query | Encoded query used to filter the result set.For example: `sysparm_query=caller_id=javascript:gs.getUserID()^active=true` The encoded query supports order by. To sort responses based on certain fields, use the ORDERBY and ORDERBYDESC clauses in **sysparm\_query**. For example, `sysparm_query=active=true^ORDERBYnumber^ORDERBYDESCcategory` filters all active records and orders the results in ascending order by number first, and then in descending order by category. If part of the query is invalid, such as by specifying an invalid field name, the instance ignores the invalid part. It then returns rows using only the valid portion of the query. You can control this behavior using the property **glide.invalid\_query.returns\_no\_rows**. Set this property to true to return no rows on an invalid query. **Note:** The **glide.invalid\_query.returns\_no\_rows** property controls the behavior of all queries across the instance, such as in lists, scripts \(GlideRecord.query\(\)\), and web service APIs. Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Element | Description |
|---|---|
| active | Flag that indicates whether the consumer is active.Possible values: - true: Consumer active - false: Consumer de-activated Data type: Boolean Default: true |
| business\_phone | Business phone number of the consumer.Data type: String Maximum length: 40 |
| city | City in which the consumer resides.Data type: String Maximum length: 100 |
| country | Country in which the consumer resides.Data type: String Maximum length: 40 |
| date\_format | Format in which to display dates.Valid values: - dd-mm-yyyy - dd/mm/yyyy - dd.mm.yyyy - mm-dd-yyyy - yyyy-mm-dd Data type: String Maximum length: 40 Default: blank \(system date format\) |
| Email address of the consumer.Data type: String Maximum length: 100 | |
| fax | Fax number of the consumer.Data type: String Maximum length: 40 |
| first\_name | Consumer first name.Data type: String Maximum length: 50 |
| gender | Gender of the consumer.Data type: String Maximum length: 40 |
| home\_phone | Home phone number of the consumer.Data type: String Maximum length: 40 |
| household | Sys\_id of the record that describes the household characteristics.Data type: String Table: Household \[csm\_household\] |
| last\_name | Consumer last name.Data type: String Maximum length: 50 |
| middle\_name | Consumer middle name.Data type: String Maximum length: 50 |
| mobile\_phone | Consumer mobile phone number.Data type: String Maximum length: 40 |
| name | Consumer full name; first\_name+middle\_name+last\_name.Data type: String Maximum length: 152 |
| notes | Notes on consumer.Data type: String Maximum length: 4,000 |
| notification | Indicates whether the consumer should receive notifications.Valid values: - 1: Disabled - 2: Enabled Data type: Number \(Integer\) Maximum length: 40 Default: 2 |
| number | Unique number associated with the consumer.Data type: String Maximum length: 40 |
| photo | Photo of the consumer.Data type: Image |
| preferred\_language | Consumer primary language.Data type: String Maximum length: 3 |
| prefix | Consumer name prefix such as, Dr., Mr., Mrs., or Ms.Data type: String Maximum length: 40 |
| primary | Flag that indicates whether this is the primary consumer.Possible values: - true: Primary consumer - false: Not primary consumer Data type: Boolean Default: false |
| state | State in which the consumer resides.Data type: String Maximum length: 100 |
| street | Consumer street address.Data type: String Maximum length: 255 |
| suffix | Consumer name suffix such as Jr., Sr., or II.Data type: String |
| sys\_created\_by | User that created the consumer record.Data type: String Maximum length: 40 |
| sys\_created\_on | Date and time the consumer record was originally created.Data type: String |
| sys\_domain | ServiceNow domain in which the consumer information resides.Data type: String |
| sys\_id | Unique identifier for the consumer.Data type: String |
| sys\_mod\_count | Number of times that the associated consumer information has been modified.Data type: Number \(Integer\) |
| sys\_tags | System tags.Data type: String |
| sys\_updated\_by | User that last updated the consumer information.Data type: String Maximum length: 40 |
| sys\_updated\_on | Date and time when the consumer information was last updated.Data type: String |
| time\_format | Format in which to display time.Valid values: - hh.mm.ss a: hh.mm.ss \(12 hour\) - hh:mm:ss a: hh:mm:ss \(12 hour\) - HH.mm.ss: hh.mm.ss \(24 hour\) - HH:mm:ss: hh:mm:ss \(24 hour\) Data type: String Maximum length: 40 Default: blank \(system time format\) |
| time\_zone | Consumer time zone, such as Canada/Central or US/Eastern.Data type: String Maximum length: 40 |
| title | Consumer business title such as Manager, Software Developer, or Contractor.Data type: String Maximum length: 60 |
| user | Sys\_id of the consumer user. Data type: String Table: Consumer User \[csm\_consumer\_user\] |
| zip | Consumer zip code. Data type: String Maximum length: 40 |
| 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 record to return.Data type: String Table: Consumer \[csm\_consumer\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Status code | Description |
|---|---|
| 200 | Successful. The request was successfully processed. |
| 401 | Unauthorized. The user credentials are incorrect or have not been passed. |
| 404 | Indicates that the request is invalid. Could be due to one of the following reasons:- Requested case doesn't exist. - User doesn't have access to the consumer record. |
| 500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
| Element | Description |
|---|---|
| active | Flag that indicates whether the consumer is active.Possible values: - true: Consumer active - false: Consumer de-activated Data type: Boolean Default: true |
| business\_phone | Business phone number of the consumer.Data type: String Maximum length: 40 |
| city | City in which the consumer resides.Data type: String Maximum length: 100 |
| country | Country in which the consumer resides.Data type: String Maximum length: 40 |
| date\_format | Format in which to display dates.Valid values: - dd-mm-yyyy - dd/mm/yyyy - dd.mm.yyyy - mm-dd-yyyy - yyyy-mm-dd Data type: String Maximum length: 40 Default: blank \(system date format\) |
| Email address of the consumer.Data type: String Maximum length: 100 | |
| fax | Fax number of the consumer.Data type: String Maximum length: 40 |
| first\_name | Consumer first name.Data type: String Maximum length: 50 |
| gender | Gender of the consumer.Data type: String Maximum length: 40 |
| home\_phone | Home phone number of the consumer.Data type: String Maximum length: 40 |
| household | Sys\_id of the record that describes the household characteristics.Data type: String Table: Household \[csm\_household\] |
| last\_name | Consumer last name.Data type: String Maximum length: 50 |
| middle\_name | Consumer middle name.Data type: String Maximum length: 50 |
| mobile\_phone | Consumer mobile phone number.Data type: String Maximum length: 40 |
| name | Consumer full name; first\_name+middle\_name+last\_name.Data type: String Maximum length: 152 |
| notes | Notes on consumer.Data type: String Maximum length: 4,000 |
| notification | Indicates whether the consumer should receive notifications.Valid values: - 1: Disabled - 2: Enabled Data type: Number \(Integer\) Maximum length: 40 Default: 2 |
| number | Unique number associated with the consumer.Data type: String Maximum length: 40 |
| photo | Photo of the consumer.Data type: Image |
| preferred\_language | Consumer primary language.Data type: String Maximum length: 3 |
| prefix | Consumer name prefix such as, Dr., Mr., Mrs., or Ms.Data type: String Maximum length: 40 |
| primary | Flag that indicates whether this is the primary consumer.Possible values: - true: Primary consumer - false: Not primary consumer Data type: Boolean Default: false |
| state | State in which the consumer resides.Data type: String Maximum length: 100 |
| street | Consumer street address.Data type: String Maximum length: 255 |
| suffix | Consumer name suffix such as Jr., Sr., or II.Data type: String |
| sys\_created\_by | User that created the consumer record.Data type: String Maximum length: 40 |
| sys\_created\_on | Date and time the consumer record was originally created.Data type: String |
| sys\_domain | ServiceNow domain in which the consumer information resides.Data type: String |
| sys\_id | Unique identifier for the consumer.Data type: String |
| sys\_mod\_count | Number of times that the associated consumer information has been modified.Data type: Number \(Integer\) |
| sys\_updated\_by | User that last updated the consumer information.Data type: String Maximum length: 40 |
| sys\_updated\_on | Date and time when the consumer information was last updated.Data type: String |
| time\_format | Format in which to display time.Valid values: - hh.mm.ss a: hh.mm.ss \(12 hour\) - hh:mm:ss a: hh:mm:ss \(12 hour\) - HH.mm.ss: hh.mm.ss \(24 hour\) - HH:mm:ss: hh:mm:ss \(24 hour\) Data type: String Maximum length: 40 Default: blank \(system time format\) |
| time\_zone | Consumer time zone, such as Canada/Central or US/Eastern.Data type: String Maximum length: 40 |
| title | Consumer business title such as Manager, Software Developer, or Contractor.Data type: String Maximum length: 60 |
| user | Sys\_id of the consumer user. Data type: String Table: Consumer User \[csm\_consumer\_user\] |
| zip | Consumer zip code. Data type: String Maximum length: 40 |
| 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 |
| Element | Description |
|---|---|
| active | Flag that indicates whether the consumer is active.Possible values: - true: Consumer active - false: Consumer de-activated Data type: Boolean Default: true |
| business\_phone | Business phone number of the consumer.Data type: String Maximum length: 40 |
| city | City in which the consumer resides.Data type: String Maximum length: 100 |
| country | Country in which the consumer resides.Data type: String Maximum length: 40 |
| date\_format | Format in which to display dates.Valid values: - dd-mm-yyyy - dd/mm/yyyy - dd.mm.yyyy - mm-dd-yyyy - yyyy-mm-dd Data type: String Maximum length: 40 Default: blank \(system date format\) |
| Email address of the consumer.Data type: String Maximum length: 100 | |
| fax | Fax number of the consumer.Data type: String Maximum length: 40 |
| first\_name | Consumer first name.Data type: String Maximum length: 50 |
| gender | Gender of the consumer.Data type: String Maximum length: 40 |
| home\_phone | Home phone number of the consumer.Data type: String Maximum length: 40 |
| household | Sys\_id of the record that describes the household characteristics.Data type: String Table: Household \[csm\_household\] |
| last\_name | Consumer last name.Data type: String Maximum length: 50 |
| middle\_name | Consumer middle name.Data type: String Maximum length: 50 |
| mobile\_phone | Consumer mobile phone number.Data type: String Maximum length: 40 |
| name | Consumer full name; first\_name+middle\_name+last\_name.Data type: String Maximum length: 152 |
| notes | Notes on consumer.Data type: String Maximum length: 4,000 |
| notification | Indicates whether the consumer should receive notifications.Valid values: - 1: Disabled - 2: Enabled Data type: Number \(Integer\) Maximum length: 40 Default: 2 |
| photo | Photo of the consumer.Data type: Image |
| preferred\_language | Consumer primary language.Data type: String Maximum length: 3 |
| prefix | Consumer name prefix such as, Dr., Mr., Mrs., or Ms.Data type: String Maximum length: 40 |
| primary | Flag that indicates whether this is the primary consumer.Possible values: - true: Primary consumer - false: Not primary consumer Data type: Boolean Default: false |
| social\_channel | Social media channel to which the consumer is associated such as Twitter, Facebook, or Instagram.Data type: String |
| social\_handle | User handle on the social media channel.Data type: String |
| social\_handle\_url | URL to the consumer's social channel handle.Data type: String |
| state | State in which the consumer resides.Data type: String Maximum length: 100 |
| street | Consumer street address.Data type: String Maximum length: 255 |
| suffix | Consumer name suffix such as Jr., Sr., or II.Data type: String |
| time\_format | Format in which to display time.Valid values: - hh.mm.ss a: hh.mm.ss \(12 hour\) - hh:mm:ss a: hh:mm:ss \(12 hour\) - HH.mm.ss: hh.mm.ss \(24 hour\) - HH:mm:ss: hh:mm:ss \(24 hour\) Data type: String Maximum length: 40 Default: blank \(system time format\) |
| time\_zone | Consumer time zone, such as Canada/Central or US/Eastern.Data type: String Maximum length: 40 |
| title | Consumer business title such as Manager, Software Developer, or Contractor.Data type: String Maximum length: 60 |
| user | Sys\_id of the consumer user. Data type: String Table: Consumer User \[csm\_consumer\_user\] |
| zip | Consumer zip code. Data type: String Maximum length: 40 |
| Element | Description |
|---|---|
| result | Sys\_id of the newly created consumer record.Data type: String |