Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...


Tip

Available from CRM.COM R10.0.0


Excerpt

This method is used to create multiple referral customer events within a single Web API method call. Note that the maximum number of referral customer events that can be created is 1000

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

referral_customer_events_set

(mandatory)

Set of Referral Customer Event Objects

The set of Referral customer events that will be created by this Web API method. Note that the maximum number of referral customer events that can be specified within a single Web API call is 1000

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

Anchor
bulk create referral parameters
bulk create referral parameters
Referred Parameter Objects

...

Expand
titlebulk referral customer event parameter object data


Name

Type

Description

request_unique_identifier

(mandatory)

StringA unique identifier of the request, provided by the caller, in order to identify the successful or failed results. Note that this information should be unique and is not stored within CRM.COM

classification_identifier

(optional)

Customer Event Classification IdentifierThe classification of the customer event. The allowed customer event classification identifier fields are the following:

Include Page
V4:customer_event_classification_identifier
V4:customer_event_classification_identifier

performed_by_unit_identifier

(mandatory)

Unit IdentifierThe unit that initiated the customer event. The allowed unit identifier fields are the following:

Include Page
V4:unit_identifier
V4:unit_identifier

performed_on

(mandatory)

DateThe date that the customer event was actually performed

description

(optional)

StringA description of the customer event

referred_accounts_receivable_identifier

(mandatory)

Rewards Participant Identifier

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

Include Page
V4:rewards_participants_identifier
V4:rewards_participants_identifier

Tip

Available from CRM.COM R17.0.0


referred_by_accounts_receivable_identifier

(mandatory)

Rewards Participant Identifier
The accounts receivable that provided the referral. The allowed identifier fields are the following:

Include Page
V4:rewards_participants_identifier
V4:rewards_participants_identifier

Tip

Available from CRM.COM R17.0.0


referred_rewards_participant_identifier

(mandatory)

Rewards Participant Identifier
The referred rewards participant. The allowed
rewards participant
identifier fields are the following:

Include Page
V4:rewards_participants_identifier
V4:rewards_participants_identifier

Tip

Deprecated from CRM.COM R17.0.0


referred_by_rewards_participant_identifier

(mandatory)

Rewards Participant Identifier
The rewards participant that provided the referral. The allowed
rewards participant
identifier fields are the following:

Include Page
V4:rewards_participants_identifier
V4:rewards_participants_identifier

Tip

Deprecated from CRM.COM R17.0.0


external_system

(optional)

StringThe third party system that generates the customer event

external_system_reference_number

(optional)

String

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

Tip

Available from CRM.COM R10.1.0


udf_string_1

(optional)

String

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


...

Expand
titleExample 1

HTTP Method: POST 


Request:

Body:

Code Block
languagejavascript
themeConfluence
languagejavascript
linenumberstrue
 {
   "token":"{{token}}",
  "referral_customer_events_set":
   [
        {
            "request_unique_identifier":"125",
            "performed_by_unit_identifier":{"name":"Admin Unit"},
            "performed_on":"2016-06-22T15:00:00",
            "referred_rewards_participant_identifier":{"number":"RP0000000017"},
            "referred_by_rewards_participant_identifier":{"number":"RP0000000010"}
        },
        {
            "request_unique_identifier":"124",
            "performed_by_unit_identifier":{"name":"Admin Unit"},
            "performed_on":"2016-06-22T15:00:00",
            "referred_rewards_participant_identifier":{"number":"RP0000000014"},
            "referred_by_rewards_participant_identifier":{"number":"RP0000000012"}
        },
        {
            "request_unique_identifier":"123",
            "performed_by_unit_identifier":{"name":"Admin Unit"},
            "performed_on":"2016-06-22T15:00:00",
            "referred_rewards_participant_identifier":{"number":"RP0000000004"},
            "referred_by_rewards_participant_identifier":{"number":"RP0000000010"}
        }
        
    ]
}


Response:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
 {
  "data": {
    "unprocessed_customer_events_set": [
      {
        "error_description": "Error:Participant RP0000000004 Was Already Referred by Another Participant. - Description:The participant was already referred by another participant.",
        "error_code": "ReferredByAnotherParticipantException",
        "request_unique_identifier": "123"
      }
    ],
    "processed_customer_events_set": [
      {
        "number": "8",
        "id": "D49D8CD39786431F882341CBDE5A254A",
        "request_unique_identifier": "125"
      },
      {
        "number": "9",
        "id": "94E44BDAF7724C2E97B5C2B533371497",
        "request_unique_identifier": "124"
      }
    ]
  },
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}


...