Versions Compared

Key

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

Available from CRM.COM R11.0.0

Table of Contents
maxLevel2

GET customer_events/financial_statements/show

This method returns information related with a financial statement customer event.  A single financial statement customer event is returned by each call

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

(mandatory)

...

Customer Event identifier  

The identifier of the customer event that should be returned as a result. Only customer events of type financial statement can be specified. The allowed customer event 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

...

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request:

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
  "data": {
    "external_system_reference_number": null,
    "log_information": {
      "created_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "community_name": "Community",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "updated_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "community_name": "Community",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "created_date": "2016-10-19T11:45:05",
      "updated_date": "2016-10-19T11:45:36",
      "updated_by_user": {
        "person_name": "MPAdministrator",
        "id": "1",
        "username": "MPAdministrator"
      },
      "created_by_user": {
        "person_name": "MPAdministrator",
        "id": "1",
        "username": "MPAdministrator"
      }
    },
    "description": null,
    "udf_date_2": null,
    "type": "FINANCIAL_STATEMENT",
    "udf_date_1": null,
    "udf_date_4": null,
    "udf_date_3": null,
    "number": "106",
    "udf_float_3": null,
    "udf_float_4": null,
    "award_reward_transactions_set": null,
    "id": "50918D17F3904955A6CBA517E3D7C761",
    "udf_float_1": null,
    "udf_float_2": null,
    "measured_key_performance_indicators_set": [
      {
        "key_performance_indicator": {
          "alternative_code": "kpi_a",
          "name": "key performance indicator A",
          "id": "164DC042D50F462BB6B28E86AE2B6C8C"
        },
        "product": {
          "code": "Serendipity",
          "product_type": {
            "service_type": "USAGE",
            "used_for_provisioning": true,
            "alternative_code": "V",
            "composition_method": "FLAT",
            "name": "Usage Services",
            "description": "Used for VOD , PPV, TELEPHONE CALLS ETC",
            "id": "751C638AA3534B768408AAC4D73CF516",
            "classification": "SERVICES",
            "physical_good_type": null
          },
          "alternative_code": "S_1",
          "description": "VOD: Serendipity ",
          "id": "BD3ACEE7D6244DCAA375D0744DA75540"
        },
        "id": "999188CD5C2C45F4BC1F043521585BE2",
        "value": 5
      },
      {
        "key_performance_indicator": {
          "alternative_code": "kpi_a",
          "name": "key performance indicator A",
          "id": "164DC042D50F462BB6B28E86AE2B6C8C"
        },
        "product": null,
        "id": "8EF3C51A8EF8458C857ADEFFC1451505",
        "value": 10
      }
    ],
    "udf_string_2": null,
    "udf_string_3": null,
    "udf_string_4": null,
    "period": {
      "month": 1,
      "year": 2016
    },
    "udf_string_5": null,
    "udf_string_1": null,
    "accounts_receivable": {
      "number": "ACR0000000486",
      "name": "Polina N. Kestora",
      "id": "99E76A3A30854087B7C53C53B47EF868",
      "life_cycle_state": "ACTIVE",
      "account_owner": {
        "company_profile": null,
        "company_name": null,
        "name": "Polina Kestora",
        "last_name": "Kestora",
        "id": "F038161F36C845B98CEE7361A8C92157",
        "life_cycle_state": "FINANCIAL",
        "middle_name": null,
        "title": null,
        "type": "PERSON",
        "first_name": "Polina",
        "demographics": {
          "name_day": {
            "month": 7,
            "day": 21
          },
          "id_number": "112233",
          "gender": null,
          "country_of_residence": {
            "alternative_code": "IRN",
            "three_character_code": null,
            "name": "IRAN (ISLAMIC REPUBLIC OF)",
            "id": "231",
            "two_character_code": null
          },
          "date_of_birth": {
            "month": 3,
            "year": 1988,
            "day": 4
          },
          "industry_sector": null,
          "passport_number": null,
          "industry": null,
          "social_security_number": null,
          "id_issued_by_country": null,
          "passport_issued_by_country": null
        }
      }
    },
    "life_cycle_state": "POSTED",
    "performed_on": "2016-10-19T11:45:05",
    "classification": {
      "alternative_code": "YS",
      "name": "Yearly Statement",
      "id": "89F8733926844E8DA559672054434F36"
    },
    "process_immediately": false,
    "udf_string_6": null,
    "udf_string_7": null,
    "performed_by_unit": {
      "alternative_code": "adminunit",
      "group_name": "Main Group",
      "community_name": "Community",
      "name": "Admin Unit",
      "description": "admin unit",
      "id": "1"
    },
    "udf_string_8": null,
    "external_system": null
  },
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

POST customer_events/financial_statements/list

This method returns information related with financial statements customer events. Multiple financial statements customer events are returned by each call

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

rewards_participant_identifier

(semi-optional)

...

(semi-optional)

...

Accounts Receivable Identifier  

The identifier of the accounts receivable related with the customer events that should be retrieved. The allowed accounts receivable identifier fields are the following:

...

(semi-optional)

...

The identifier of the classification related with the customer events that should be retrieved. Only financial statement classifications are allowed to be specified. The allowed customer event classification 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. Multiple parameters are allowed to be specified.

Response Data

...

Examples

...

titleExample 1

HTTP Method: POST

 

Request:

Body:

Code Block
themeConfluence
languagejs
linenumberstrue
{
"token":"{{token}}",
"accounts_receivable_identifier":{"number":"ACR0000000376"},
"classification_identifier":{"alternative_code":"FS"}
}

 

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
  "data": [
    {
      "external_system_reference_number": null,
      "log_information": {
        "created_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "community_name": "Community",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "updated_by_unit": {
          "alternative_code": "adminunit",
          "group_name": "Main Group",
          "community_name": "Community",
          "name": "Admin Unit",
          "description": "admin unit",
          "id": "1"
        },
        "created_date": "2016-10-13T15:20:30",
        "updated_date": "2016-10-13T15:21:19",
        "updated_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        },
        "created_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        }
      },
      "description": null,
      "udf_date_2": null,
      "type": "FINANCIAL_STATEMENT",
      "udf_date_1": null,
      "udf_date_4": null,
      "udf_date_3": null,
      "number": "18",
      "udf_float_3": null,
      "udf_float_4": null,
      "award_reward_transactions_set": null,
      "id": "747370B6C3D5488ABD5D6C3BC0D23334",
      "udf_float_1": null,
      "udf_float_2": null,
      "measured_key_performance_indicators_set": [
        {
          "key_performance_indicator": {
            "alternative_code": "kpi_a",
            "name": "key performance indicator A",
            "id": "164DC042D50F462BB6B28E86AE2B6C8C"
          },
          "product": {
            "code": "InstaKit",
            "alternative_code": "I",
            "description": "InstaKit",
            "id": "EF503D536E544E01BD770A85309E90A5"
          },
          "id": "48EDC1FC802D48AC897A847DC8FA82C1",
          "value": 8
        },
        {
          "key_performance_indicator": {
            "alternative_code": "ETKPI",
            "name": "ET KPI",
            "id": "123456id"
          },
          "product": {
            "code": "PK_SmartCard",
            "alternative_code": "P_8",
            "description": "PK_SmartCard",
            "id": "2ED97CB3DC0141C5B8316525B9D54AB7"
          },
          "id": "7B47E2BE54D849969CC77E0B56A9AAE8",
          "value": 6
        }
      ],
      "udf_string_2": null,
      "udf_string_3": null,
      "udf_string_4": null,
      "period": {
        "month": "May",
        "year": 2016
      },
      "udf_string_5": null,
      "udf_string_1": null,
      "accounts_receivable": {
        "number": "ACR0000000376",
        "name": "Sevia24",
        "id": "2D06EDAFDFD34C59876DB135FB7FE820",
        "life_cycle_state": "ACTIVE",
        "account_owner": {
          "company_profile": null,
          "company_name": null,
          "name": "sevia kyriacou",
          "last_name": "kyriacou",
          "id": "ADBFCA4396394F638302E94C40B05A81",
          "life_cycle_state": "FINANCIAL",
          "middle_name": null,
          "title": null,
          "type": "PERSON",
          "first_name": "sevia",
          "demographics": {
            "name_day": {
              "month": null,
              "day": null
            },
            "id_number": null,
            "gender": "FEMALE",
            "country_of_residence": {
              "alternative_code": "CYP",
              "three_character_code": "CYP",
              "name": "CYPRUS",
              "id": "181",
              "two_character_code": "CY"
            },
            "date_of_birth": {
              "month": null,
              "year": null,
              "day": null
            },
            "industry_sector": null,
            "passport_number": null,
            "industry": null,
            "social_security_number": null,
            "id_issued_by_country": null,
            "passport_issued_by_country": null
          }
        }
      },
      "life_cycle_state": "POSTED",
      "performed_on": "2016-10-13T15:20:30",
      "classification": {
        "alternative_code": "FS",
        "name": "Financial Statement",
        "id": "DF940370AA0D4497AA33F1A89A842C62"
      },
      "process_immediately": false,
      "udf_string_6": null,
      "udf_string_7": null,
      "performed_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "community_name": "Community",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "udf_string_8": null,
      "external_system": null
    }
  ],
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

POST customer_events/financial_statements/create

This method is used to create a financial statement customer event in a posted life cycle state

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

accounts_receivable_identifier

(semi-optional)

...

The related accounts receivable. The allowed accounts receivable identifier fields are the following:

...

rewards_participant_identifier

(semi-optional)

...

classification_identifier

(mandatory)

...

performed_by_unit_identifier

(mandatory)

...

performed_on

(mandatory)

...

description

(optional)

...

external_system

(optional)

...

Defines the third party system that generated the customer event

 

...

external_system_reference_number

(optional)

...

Defines the unique reference number of the customer event in the external system

...

udf_string_1

(optional)

...

User Defined Field of type String

...

udf_string_2

(optional)

...

String

...

User Defined Field of type String

...

udf_string_3

(optional)

...

String

...

User Defined Field of type String

...

udf_string_4

(optional)

...

String

...

User Defined Field of type String

...

udf_string_5

(optional)

...

String

...

User Defined Field of type String

...

udf_string_6

(optional)

...

String

...

User Defined Field of type String

...

udf_string_7

(optional)

...

String

...

User Defined Field of type String

...

udf_string_8

(optional)

...

String

...

User Defined Field of type String

...

udf_float_1

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_2

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_3

(optional)

...

Float

...

User Defined Field of type Float

...

udf_float_4

(optional)

...

Float

...

User Defined Field of type Float

...

udf_date_1

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_2

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_3

(optional)

...

Date

...

User Defined Field of type Date

...

udf_date_4

(optional)

...

Date

...

User Defined Field of type Date

...

period

(mandatory)

...

measured_key_performance_indicators_set

(mandatory)

...

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

...

Examples

...

titleExample 1

HTTP Method: POST

 

Request:

Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
  "token":"{{token}}",
  "accounts_receivable_identifier":{"number":"ACR0000000375"},
  "classification_identifier":{"alternative_code":"FS"},
  "performed_by_unit_identifier":{"name":"Admin Unit"},
  "performed_on":"2016-10-07T15:00:00",
  "description":"Testing creation of financial statement customer event through API",
  "period":
   {
     "period_month":7,
     "period_year":2015
   },
  "measured_key_performance_indicators_set":
  [
        {
            "key_performance_indicator_identifier":{"alternative_code":"kpi_a"},
            "value":4,
            "product_identifier":{"alternative_code":"IK"}
        }
    ]
}

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
  "data": {
    "external_system_reference_number": null,
    "log_information": {
      "created_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "community_name": "Community",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "updated_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "community_name": "Community",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      },
      "created_date": "2016-10-14T09:42:15",
      "updated_date": "2016-10-14T09:42:15",
      "updated_by_user": {
        "person_name": "CRM COM",
        "id": "1",
        "username": "MPAdministrator"
      },
      "created_by_user": {
        "person_name": "CRM COM",
        "id": "1",
        "username": "MPAdministrator"
      }
    },
    "description": "Testing creation of financial statement customer event through API",
    "udf_date_2": null,
    "type": "FINANCIAL_STATEMENT",
    "udf_date_1": null,
    "udf_date_4": null,
    "udf_date_3": null,
    "number": "22",
    "udf_float_3": null,
    "udf_float_4": null,
    "award_reward_transactions_set": null,
    "id": "4A29AF240A2B4913945B9E7DDFB2452D",
    "udf_float_1": null,
    "udf_float_2": null,
    "measured_key_performance_indicators_set": [
      {
        "key_performance_indicator": {
          "alternative_code": "kpi_a",
          "name": "key performance indicator A",
          "id": "164DC042D50F462BB6B28E86AE2B6C8C"
        },
        "product": {
          "code": "Installation Kit",
          "product_type": {
            "service_type": null,
            "used_for_provisioning": true,
            "alternative_code": "IK",
            "composition_method": "FIXEDBUNDLE",
            "name": "Installation Kit",
            "description": "Provisioning Installation kit that can include traceable and non traceable products",
            "id": "380C41872DA048DEB1D57CF67D7550F6",
            "classification": "PHYSICALGOODS",
            "physical_good_type": "TRACEABLE"
          },
          "alternative_code": "IK",
          "description": "Installation Kit",
          "id": "D970FFF8F63F4A489108FB60A69657D1"
        },
        "id": "0D23A60CAC9A4F99A18B14AA01BAC5E6",
        "value": 4
      }
    ],
    "udf_string_2": null,
    "udf_string_3": null,
    "udf_string_4": null,
    "period": {
      "month": "July",
      "year": 2015
    },
    "udf_string_5": null,
    "udf_string_1": null,
    "accounts_receivable": {
      "number": "ACR0000000375",
      "name": "Sevia92",
      "id": "04C5470CED9248B58FB7E126C9F1E9CB",
      "life_cycle_state": "ACTIVE",
      "account_owner": {
        "company_profile": null,
        "company_name": null,
        "name": "sevia kyriacou",
        "last_name": "kyriacou",
        "id": "ADBFCA4396394F638302E94C40B05A81",
        "life_cycle_state": "FINANCIAL",
        "middle_name": null,
        "title": null,
        "type": "PERSON",
        "first_name": "sevia",
        "demographics": {
          "name_day": {
            "month": null,
            "day": null
          },
          "id_number": null,
          "gender": "FEMALE",
          "country_of_residence": {
            "alternative_code": "CYP",
            "three_character_code": "CYP",
            "name": "CYPRUS",
            "id": "181",
            "two_character_code": "CY"
          },
          "date_of_birth": {
            "month": null,
            "year": null,
            "day": null
          },
          "industry_sector": null,
          "passport_number": null,
          "industry": null,
          "social_security_number": null,
          "id_issued_by_country": null,
          "passport_issued_by_country": null
        }
      }
    },
    "life_cycle_state": "POSTED",
    "performed_on": "2016-10-07T15:00:00",
    "classification": {
      "alternative_code": "FS",
      "name": "Financial Statement",
      "id": "DF940370AA0D4497AA33F1A89A842C62"
    },
    "process_immediately": false,
    "udf_string_6": null,
    "udf_string_7": null,
    "performed_by_unit": {
      "alternative_code": "adminunit",
      "group_name": "Main Group",
      "community_name": "Community",
      "name": "Admin Unit",
      "description": "admin unit",
      "id": "1"
    },
    "udf_string_8": null,
    "external_system": null
  },
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}

 

POST customer_events/financial_statements/cancel

This method is used in order to cancel a posted financial statement customer event. This method can be applied only on posted financial statement customer events.  A single financial statement customer event can be cancelled by each call

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

customer_event_identifier

(mandatory)

...

Customer Event identifier  

The identifier of the customer event that should be cancelled. Only customer events of type financial statement which are posted can be specified. The allowed customer event identifier fields are the following:

...

Response Data

...

Examples

HTTP Method: POST

 

Request:

Body:

Expand
titleExample 1
Code Block
themeConfluence
languagejs
linenumberstrue
 

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
  Panel
nameblue

Child pages (Children Display)
excerpttrue