Available from CRM.COM R4.0.0
GET segmentation/show
This method returns information related with a segmentation. Single segmentation is returned by each call
Resource URL
Parameters
Name | Type | Description | |||||||||
token | String | The token retrieved from the login method | |||||||||
segmentation_identifier (mandatory) | Identifier | The identifier of the segmentation that should be returned as a result. The allowed segmentation identifier fields are the following:
| |||||||||
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved segment |
number | String | The number of the retrieved segment |
alternative_code | String | The alternative code of the retrieved segment |
life_cycle_state | String | The life cycle state of the retrieved segment which can be DRAFT or POSTED |
criteria | String | The segmentation criteria of the retrieved segment |
entity | String | The entity of the retrieved segment which can be one of the following
SUBSCRIPTIONACTIONS is available from CRM.COM R14.2.0 CREDITNOTES, INVOICES, INVOICECANCELLATIONS, PAYMENTCANCELLATIONS, REFUNDS, REWARDOFFERS, WALLETS, WALLETTRANSACTIONS, WRITEOFFS are available from CRM.COM R15.0.0 |
udf_string_1 | String | User Defined Field of type String |
udf_string_2 | String | User Defined Field of type String |
udf_string_3 | String | User Defined Field of type String |
udf_string_4 | String | User Defined Field of type String |
udf_string_5 | String | User Defined Field of type String |
udf_string_6 | String | User Defined Field of type String |
udf_string_7 | String | User Defined Field of type String |
udf_string_8 | String | User Defined Field of type String |
udf_float_1 | Float | User Defined Field of type Float |
udf_float_2 | Float | User Defined Field of type Float |
udf_float_3 | Float | User Defined Field of type Float |
udf_float_4 | Float | User Defined Field of type Float |
udf_date_1 | Date | User Defined Field of type Date |
udf_date_2 | Date | User Defined Field of type Date |
udf_date_3 | Date | User Defined Field of type Date |
udf_date_4 | Date | User Defined Field of type Date |
exceptional_items | Exceptional items object | The exceptional items of the retrieved segment |
log_information | Log Information Object | The log information of the retrieved segment |
Referred Objects Response Data
Examples
GET segmentation/list
This method returns information related with a segmentation. Multiple communications are returned by each call
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
entity | String | The entity of the segments to be retrieved which can be CONTACT_INFORMATION, SUBSCRIPTIONS, ACCOUNTS_RECEIVABLE, BILLS, ACTIVITIES, JOBS |
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved segment |
number | String | The number of the retrieved segment |
alternative_code | String | The alternative code of the retrieved segment |
life_cycle_state | String | The life cycle state of the retrieved segment which can be DRAFT or POSTED |
criteria | String | The segmentation criteria of the retrieved segment |
entity | String | The entity of the retrieved segment which can be one of the following
SUBSCRIPTIONACTIONS is available from CRM.COM R14.2.0 CREDITNOTES, INVOICES, INVOICECANCELLATIONS, PAYMENTCANCELLATIONS, REFUNDS, REWARDOFFERS, WALLETS, WALLETTRANSACTIONS, WRITEOFFS are available from CRM.COM R15.0.0 |
udf_string_1 | String | User Defined Field of type String |
udf_string_2 | String | User Defined Field of type String |
udf_string_3 | String | User Defined Field of type String |
udf_string_4 | String | User Defined Field of type String |
udf_string_5 | String | User Defined Field of type String |
udf_string_6 | String | User Defined Field of type String |
udf_string_7 | String | User Defined Field of type String |
udf_string_8 | String | User Defined Field of type String |
udf_float_1 | Float | User Defined Field of type Float |
udf_float_2 | Float | User Defined Field of type Float |
udf_float_3 | Float | User Defined Field of type Float |
udf_float_4 | Float | User Defined Field of type Float |
udf_date_1 | Date | User Defined Field of type Date |
udf_date_2 | Date | User Defined Field of type Date |
udf_date_3 | Date | User Defined Field of type Date |
udf_date_4 | Date | User Defined Field of type Date |
exceptional_items | Exceptional items object | The exceptional items of the retrieved segment |
log_information | Log Information Object | The log information of the retrieved segment |
Referred Objects Response Data
Examples
GET segmentation/preview
This method returns information which is included in the segment. Single segmentation is returned by each call
Resource URL
Parameters
Name | Type | Description | |||||||||
token | String | The token retrieved from the login method | |||||||||
segmentation_identifier (mandatory) | Identifier | The identifier of the segmentation that should be returned as a result. The allowed segmentation identifier fields are the following:
| |||||||||
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
entity_name | String | The name of the segmentation entity |
entity_id | String | The id of the segmentation entity |
entity_number | String | The number of the segmentation entity, if applicable |
entity_alternative_code | String | The alternative code of the segmentation entity, if applicable |
entity_description | String | The description of the segmentation entity, if applicable |
accounts_receivable | Accounts Receivable Object | The Accounts Receivable of the segmented entity. Applicable only for Accounts Receivable-based entities and in cases in which the segment's entity is one of the following:
|
contact_information | Contact Information Object | The Contact Information of the segmented entity. Applicable only for Contact Information-based entities and in cases in which the segment's entity is one of the following:
|
Referred Objects Response Data
Examples
POST segmentation/exceptional_items/update
This method updates the exceptional items set. Single set of exceptional items can be updated by each call. Fields which are not specified are not updated at all. Fields which are specified as null will be set as null.
Resource URL
Parameters
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
token | String | The token retrieved from the login method | |||||||||
segmentation_identifier (mandatory) | Identifier | The identifier of the segmentation that should be returned as a result. The allowed segmentation identifier fields are the following:
| |||||||||
entity (mandatory) | String | The entity of the retrieved segment which can be CONTACT_INFORMATION, SUBSCRIPTIONS, ACCOUNTS_RECEIVABLE, BILLS, ACTIVITIES, JOBS |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved segment |
number | String | The number of the retrieved segment |
alternative_code | String | The alternative code of the retrieved segment |
life_cycle_state | String | The life cycle state of the retrieved segment which can be DRAFT or POSTED |
criteria | String | The segmentation criteria of the retrieved segment |
entity | String | The entity of the retrieved segment which can be one of the following
SUBSCRIPTIONACTIONS is available from CRM.COM R14.2.0 CREDITNOTES, INVOICES, INVOICECANCELLATIONS, PAYMENTCANCELLATIONS, REFUNDS, REWARDOFFERS, WALLETS, WALLETTRANSACTIONS, WRITEOFFS are available from CRM.COM R15.0.0 |
udf_string_1 | String | User Defined Field of type String |
udf_string_2 | String | User Defined Field of type String |
udf_string_3 | String | User Defined Field of type String |
udf_string_4 | String | User Defined Field of type String |
udf_string_5 | String | User Defined Field of type String |
udf_string_6 | String | User Defined Field of type String |
udf_string_7 | String | User Defined Field of type String |
udf_string_8 | String | User Defined Field of type String |
udf_float_1 | Float | User Defined Field of type Float |
udf_float_2 | Float | User Defined Field of type Float |
udf_float_3 | Float | User Defined Field of type Float |
udf_float_4 | Float | User Defined Field of type Float |
udf_date_1 | Date | User Defined Field of type Date |
udf_date_2 | Date | User Defined Field of type Date |
udf_date_3 | Date | User Defined Field of type Date |
udf_date_4 | Date | User Defined Field of type Date |
exceptional_items | Exceptional items object | The exceptional items of the retrieved segment |
log_information | Log Information Object | The log information of the retrieved segment |
Referred Objects Response Data