Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...


Tip

Deprecated from CRM.COM R17.0.0. Note that spending an awarded amount will be available from the existing POST customer_events/purchases/create


Excerpt

This method is used to create a spend request customer event in a posted life cycle state

Resource URL

http://host_name/crmapi/rest/$version/customer_events/spend_requests/create

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

accounts_receivable_identifier

(semi-optional)

Accounts receivable Identifier

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

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

Tip

Available from CRM.COM R8.0.0


rewards_participant_identifier

(semi-optional)

Rewards Participant IdentifierThe related rewards participant. The allowed rewards participant identifier fields are the following:

Include Page
V4:rewards_participants_identifier_post
V4:rewards_participants_identifier_post

Tip

Available from CRM.COM R8.0.0


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

process_immediately

(optional)

boolean

Defines if the customer event was processed immediately by various business processes or not

Tip

Deprecated from CRM.COM R15.0.0


purchase_customer_request_identifier

(mandatory)

Customer Event identifier  

The purchase customer event which is requested to be settled by the specified spend request. Only customer events of type purchase can be specified. The allowed customer event identifier fields are the following:

Include Page
V4:customer_event_identifier
V4:customer_event_identifier

Tip

Starting from CRM.COM R8.0.0 the purchase customer event should belong to the account specified through the accounts_receivable_identifier or to the account related with the rewards participant specified through the rewards_participnat_identifier


spend_amount

(optional)

Float

The amount to be spent by the specified spend request in system currency. This is applicable depending on the classification of the spend request and only if it is allowed by a spend request customer event rule, as defined through the active customer event definition

Tip

Available from CRM.COM R9.0.0


spend_alternative_amount

(optional)

Float

The amount to be spent by the specified spend request in alternative currency. This is applicable depending on the classification of the spend request and only if it is allowed by a spend request customer event rule, as defined through the active customer event definition

Tip

Available from CRM.COM R14.2.0


intended_currency_identifier

(optional)

Currency Identifier

The currency that the user was intended to use for the customer event. If specified then it is validated against the currency of the related performed by unit (i.e. the default currency) and if they don't match then an error is throw. Note that the intended currency is not saved within CRM.COM; it is just used for validation purposes. The allowed currency identifier fields are the following:

Include Page
V4:currency_identifier
V4:currency_identifier

Tip

Available from CRM.COM R11.0.0


initiated_currency

(optional)

Currency Identifier

The currency that the user is intended to use for the customer event which can either be the system currency or the alternative currency. The allowed currency identifier fields are the following:

Include Page
V4:currency_identifier
V4:currency_identifier

Tip

Available from CRM.COM R14.2.0



external_system

(optional)

String

Defines the third party system that generates the spend request customer event

Tip

Available from CRM.COM R10.0.0


external_system_reference_number

(optional)

String

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

Tip

Available from CRM.COM R10.1.0


authorized_by_access_token_identifier

(optional)

Access Token Identifier

The access token that was used to identify and authorized the customer. This information will be overridden if the customer was identified via an access token through this Web API call. The allowed access token identifier fields are the following:

Include Page
V4:access_token_identifier
V4:access_token_identifier

Tip

Available from CRM.COM R15.0.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

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

Tip

Available from CRM.COM R10.0.0

 



Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

...

Expand
titleExample 1

HTTP Method: POST

 


Request:

Body:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
  "token":"56C3E3600D8A20BE53626F7E1BD85329",
   "accounts_receivable_identifier":{"number":"463"},
   "classification_identifier":{"name":"Event Class Test 2"},
   "performed_by_unit_identifier":{"name":"Admin Unit"},
   "purchase_customer_request_identifier":{"number":"42"},
   "performed_on":"2015-02-02T08:49:59",
   "description":"first purchase event",
   "process_immediately":1,
   "udf_string_1":"udf string 1",
   "udf_string_2":"udf string 2",
   "udf_string_3":"udf string 3",
   "udf_string_4":"udf string 4",
   "udf_string_5":"udf string 5",
   "udf_string_6":"udf string 6",
   "udf_string_7":"udf string 7",
   "udf_string_8":"udf string 8",
   "udf_float_1":10,
   "udf_float_2":20,
   "udf_float_3":30,
   "udf_float_4":40,
   "udf_float_5":50,
   "udf_float_6":60,
   "udf_float_7":70,
   "udf_float_8":80,
   "udf_date_1":"2014-05-05T15:49:59",
   "udf_date_2":"2014-06-05T15:49:59",
   "udf_date_3":"2014-07-05T15:49:59",
   "udf_date_4":"2014-08-05T15:49:59"
 } 


Response:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "udf_float_1": 10,
        "udf_float_2": 20,
        "udf_float_3": 30,
        "udf_float_4": 40,
        "number": "12",
        "udf_string_1": "udf string 1",
        "udf_string_2": "udf string 2",
        "udf_string_3": "udf string 3",
        "udf_string_4": "udf string 4",
        "udf_string_5": "udf string 5",
        "udf_string_6": "udf string 6",
        "udf_string_7": "udf string 7",
        "udf_string_8": "udf string 8",
        "accounts_receivable":
        {
            "account_owner":
            {
                "last_name": "Papapavlou",
                "life_cycle_state": "FINANCIAL",
                "middle_name": "Andreas",
                "company_profile": null,
                "title": "Ms",
                "type": "PERSON",
                "first_name": "Lucia",
                "name": "Lucia Papapavlou",
                "id": "1D92B269658D80DEDF2499E25201739E",
                "company_name": null,
                "demographics":
                {
                    "gender": "FEMALE",
                    "passport_issued_by_country":
                    {
                        "name": "GREECE",
                        "id": "209"
                    },
                    "passport_number": "113115",
                    "social_security_number": "113116",
                    "country_of_residence":
                    {
                        "name": "UNITED KINGDOM",
                        "id": "126"
                    },
                    "industry_sector":
                    {
                        "name": "GOVERNMENTAL",
                        "id": "A9BDEBD4D8FAEDB0BACE40C041156D12",
                        "alternative_code": "GOV"
                    },
                    "date_of_birth":
                    {
                        "month": 1,
                        "day": 1,
                        "year": 1990
                    },
                    "name_day":
                    {
                        "month": 5,
                        "day": 5
                    },
                    "id_number": "113114",
                    "id_issued_by_country":
                    {
                        "name": "GREECE",
                        "id": "209"
                    },
                    "industry":
                    {
                        "name": "Interior Design",
                        "id": "06B638258885DA26FA2BD40D9128D04E",
                        "code": "INTDS"
                    }
                }
            },
            "life_cycle_state": "ACTIVE",
            "number": "463",
            "name": "Loukia Papapavlou",
            "id": "ECEBDFA26C8B04960EC1C6D99363D48C"
        },
        "id": "96BF1C19D1B15DD6F39CE1FE5CE041C7",
        "classification":
        {
            "name": "Event Class Test 2",
            "id": "C4CD55F1641D9D9711A780B6302475C0",
            "alternative_code": "ect2"
        },
        "udf_date_1": "2014-05-05T15:49:59",
        "udf_date_2": "2014-06-05T15:49:59",
        "udf_date_3": "2014-07-05T15:49:59",
        "udf_date_4": "2014-08-05T15:49:59",
        "performed_by_unit":
        {
            "community_name": "Main Community",
            "group_name": "Main Group",
            "name": "Admin Unit",
            "id": "48305F8849E3C18B227C5BE3A27BA6DF",
            "description": "r1",
            "alternative_code": "MG"
        },
        "process_immediately": 1,
        "log_information":
        {
            "updated_date": "2015-02-02T09:26:11",
            "created_by_unit":
            {
                "community_name": "Main Community",
                "group_name": "Main Group",
                "name": "Admin Unit",
                "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                "description": "r1",
                "alternative_code": "MG"
            },
            "created_date": "2015-02-02T09:26:11",
            "updated_by_unit":
            {
                "community_name": "Main Community",
                "group_name": "Main Group",
                "name": "Admin Unit",
                "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                "description": "r1",
                "alternative_code": "MG"
            },
            "created_by_user":
            {
                "person_name": "Marios Lannister",
                "username": "MPAdministrator",
                "id": "1",
                "email": null
            },
            "updated_by_user":
            {
                "person_name": "Marios Lannister",
                "username": "MPAdministrator",
                "id": "1",
                "email": null
            }
        },
        "life_cycle_state": "POSTED",
        "purchase_customer_event":
        {
            "number": "42",
            "performed_by_unit":
            {
                "community_name": "Main Community",
                "group_name": "Main Group",
                "name": "Admin Unit",
                "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                "description": "r1",
                "alternative_code": "MG"
            },
            "vat_amount": 10,
            "process_immediately": 0,
            "log_information":
            {
                "updated_date": "2015-02-02T09:24:47",
                "created_by_unit":
                {
                    "community_name": null,
                    "group_name": "Main Group",
                    "name": "Admin Unit",
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "description": "r1",
                    "alternative_code": "MG"
                },
                "created_date": "2015-02-02T09:23:45",
                "updated_by_unit":
                {
                    "community_name": null,
                    "group_name": "Main Group",
                    "name": "Admin Unit",
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "description": "r1",
                    "alternative_code": "MG"
                },
                "created_by_user":
                {
                    "person_name": "MPAdministrator",
                    "username": "MPAdministrator",
                    "id": "1",
                    "email": null
                },
                "updated_by_user":
                {
                    "person_name": "MPAdministrator",
                    "username": "MPAdministrator",
                    "id": "1",
                    "email": null
                }
            },
            "total_amount": 20,
            "accounts_receivable":
            {
                "account_owner":
                {
                    "last_name": "Papapavlou",
                    "life_cycle_state": "FINANCIAL",
                    "middle_name": "Andreas",
                    "company_profile": null,
                    "title": "Ms",
                    "type": "PERSON",
                    "first_name": "Lucia",
                    "name": "Lucia Papapavlou",
                    "id": "1D92B269658D80DEDF2499E25201739E",
                    "company_name": null,
                    "demographics":
                    {
                        "gender": "FEMALE",
                        "passport_issued_by_country":
                        {
                            "name": "GREECE",
                            "id": "209"
                        },
                        "passport_number": "113115",
                        "social_security_number": "113116",
                        "country_of_residence":
                        {
                            "name": "UNITED KINGDOM",
                            "id": "126"
                        },
                        "industry_sector":
                        {
                            "name": "GOVERNMENTAL",
                            "id": "A9BDEBD4D8FAEDB0BACE40C041156D12",
                            "alternative_code": "GOV"
                        },
                        "date_of_birth":
                        {
                            "month": 1,
                            "day": 1,
                            "year": 1990
                        },
                        "name_day":
                        {
                            "month": 5,
                            "day": 5
                        },
                        "id_number": "113114",
                        "id_issued_by_country":
                        {
                            "name": "GREECE",
                            "id": "209"
                        },
                        "industry":
                        {
                            "name": "Interior Design",
                            "id": "06B638258885DA26FA2BD40D9128D04E",
                            "code": "INTDS"
                        }
                    }
                },
                "life_cycle_state": "ACTIVE",
                "number": "463",
                "name": "Loukia Papapavlou",
                "id": "ECEBDFA26C8B04960EC1C6D99363D48C"
            },
            "life_cycle_state": "POSTED",
            "net_amount": 10,
            "type": "PURCHASE",
            "id": "C4A4C37BE30891479C6555A2E204875C",
            "description": null,
            "reference_number": "20",
            "performed_on": "2015-02-02T09:23:55"
        },
        "type": "SPEND_REQUEST",
        "description": "first purchase event",
        "performed_on": "2015-02-02T08:49:59"
    }
} 


...

Expand
titleExample 2

HTTP Method: POST

 


Request:

Body:

Code Block
languagejavascript
themeConfluence
languagejavascript
linenumberstrue
{
	"token":"{{token}}",
	"accounts_receivable_identifier":{"number":"170"},
	"classification_identifier":{"name":"3rd Party System Initiated"},
	"performed_by_unit_identifier":{"name":"Admin Unit"},
	"purchase_customer_request_identifier":{"number":"3"},
	"performed_on":"2014-05-05T15:49:59",
	"description":"first purchase event",
	"process_immediately":0,
	"social_media":"FACEBOOK",
	"profile":"www.facebook.com/lucia",
	"action":"LIKE",
	"fields_set":"number,id,classification,accounts_receivable,purchase_customer_event"
}


Response:

Code Block
languagejavascript
themeConfluence
languagejavascript
linenumberstrue
{
    "status": {
        "message": "",
        "description": "",
        "code": "OK"
    },
    "data": {
        "accounts_receivable": {
            "account_owner": {
                "last_name": "Pickman",
                "middle_name": "Li",
                "life_cycle_state": "FINANCIAL",
                "company_profile": null,
                "title": "Mr",
                "first_name": "Jessie",
                "type": "PERSON",
                "id": "F9A629E466B1EF473CECD46F2A4D63F3",
                "name": "Pickman Jessie",
                "company_name": null,
                "demographics": {
                    "gender": "MALE",
                    "passport_issued_by_country": {
                        "three_character_code": "USA",
                        "two_character_code": "US",
                        "id": "127",
                        "name": "UNITED STATES",
                        "alternative_code": null
                    },
                    "social_security_number": "434567",
                    "passport_number": "54567432",
                    "industry_sector": {
                        "id": "03EA93890F51506ABD9E994CD826EC78",
                        "name": "FINANCIALS",
                        "alternative_code": "FIN"
                    },
                    "country_of_residence": {
                        "three_character_code": "USA",
                        "two_character_code": "US",
                        "id": "127",
                        "name": "UNITED STATES",
                        "alternative_code": null
                    },
                    "name_day": {
                        "month": 4,
                        "day": 2
                    },
                    "date_of_birth": {
                        "month": 11,
                        "day": 1,
                        "year": 1988
                    },
                    "id_number": "983452",
                    "industry": {
                        "id": "31BC2070C79EAE5455BFAD41599C5190",
                        "name": "Marketing1",
                        "code": "MK"
                    },
                    "id_issued_by_country": {
                        "three_character_code": "USA",
                        "two_character_code": "US",
                        "id": "127",
                        "name": "UNITED STATES",
                        "alternative_code": null
                    }
                }
            },
            "life_cycle_state": "ACTIVE",
            "number": "170",
            "id": "903B55B02EAC74FE25E12F8786D44011",
            "name": "Jessie01"
        },
        "classification": {
            "id": "602130E6B9F01FA657C5EC0891E93CD0",
            "name": "3rd Party System Initiated",
            "alternative_code": "3PSI"
        },
        "purchase_customer_event": {
            "award_reward_transactions_set": null,
            "classification": {
                "id": "0647739C25A085184703A6F0047808B6",
                "name": "5 Stars Sales Person Achievement",
                "alternative_code": "5SSPA"
            },
            "number": "3",
            "performed_by_unit": {
                "community_name": "Internal Community",
                "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                "name": "Admin Unit",
                "group_name": "Main Group",
                "description": "r1 Test Description for resource  request tab.Test Description for resource  request tab.",
                "alternative_code": "MG"
            },
            "process_immediately": 0,
            "vat_amount": 2.5,
            "log_information": {
                "updated_date": "2015-01-09T12:25:20",
                "created_date": "2015-01-09T12:16:10",
                "created_by_unit": {
                    "community_name": "Internal Community",
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "name": "Admin Unit",
                    "group_name": "Main Group",
                    "description": "r1 Test Description for resource  request tab.Test Description for resource  request tab.",
                    "alternative_code": "MG"
                },
                "updated_by_unit": {
                    "community_name": "Internal Community",
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "name": "Admin Unit",
                    "group_name": "Main Group",
                    "description": "r1 Test Description for resource  request tab.Test Description for resource  request tab.",
                    "alternative_code": "MG"
                },
                "created_by_user": {
                    "person_name": "p_xenopoulou",
                    "username": "p_xenopoulou",
                    "id": "159C17D9C4B1E48DC129FBC701D38438"
                },
                "updated_by_user": {
                    "person_name": "p_xenopoulou",
                    "username": "p_xenopoulou",
                    "id": "159C17D9C4B1E48DC129FBC701D38438"
                }
            },
            "total_amount": 27.5,
            "life_cycle_state": "POSTED",
            "accounts_receivable": {
                "account_owner": {
                    "last_name": "Pickman",
                    "middle_name": "Li",
                    "life_cycle_state": "FINANCIAL",
                    "company_profile": null,
                    "title": "Mr",
                    "first_name": "Jessie",
                    "type": "PERSON",
                    "id": "F9A629E466B1EF473CECD46F2A4D63F3",
                    "name": "Pickman Jessie",
                    "company_name": null,
                    "demographics": {
                        "gender": "MALE",
                        "passport_issued_by_country": {
                            "three_character_code": "USA",
                            "two_character_code": "US",
                            "id": "127",
                            "name": "UNITED STATES",
                            "alternative_code": null
                        },
                        "social_security_number": "434567",
                        "passport_number": "54567432",
                        "industry_sector": {
                            "id": "03EA93890F51506ABD9E994CD826EC78",
                            "name": "FINANCIALS",
                            "alternative_code": "FIN"
                        },
                        "country_of_residence": {
                            "three_character_code": "USA",
                            "two_character_code": "US",
                            "id": "127",
                            "name": "UNITED STATES",
                            "alternative_code": null
                        },
                        "name_day": {
                            "month": 4,
                            "day": 2
                        },
                        "date_of_birth": {
                            "month": 11,
                            "day": 1,
                            "year": 1988
                        },
                        "id_number": "983452",
                        "industry": {
                            "id": "31BC2070C79EAE5455BFAD41599C5190",
                            "name": "Marketing1",
                            "code": "MK"
                        },
                        "id_issued_by_country": {
                            "three_character_code": "USA",
                            "two_character_code": "US",
                            "id": "127",
                            "name": "UNITED STATES",
                            "alternative_code": null
                        }
                    }
                },
                "life_cycle_state": "ACTIVE",
                "number": "170",
                "id": "903B55B02EAC74FE25E12F8786D44011",
                "name": "Jessie01"
            },
            "type": "PURCHASE",
            "net_amount": 25,
            "id": "1A862D9C3679D9263AD467712E7FE0F8",
            "description": null,
            "reference_number": "10-10-102",
            "performed_on": "2015-01-09T12:25:08"
        },
        "number": "102",
        "id": "A408E14AF98348568611C66A275E85B5"
    }
}


...

Expand
titleExample 3

HTTP Method: POST

 


Request:

Body:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
    "token":"{{token}}",
   "accounts_receivable_identifier":{"number":"ACR0000000050"},
   "classification_identifier":{"name":"Spend Request"},
   "performed_by_unit_identifier":{"name":"Admin Unit"},
   "purchase_customer_request_identifier":{"number":"13"},
   "performed_on":"2016-07-02T08:49:59",
   "description":"first purchase event",
   "process_immediately":1,
   "udf_string_1":"udf string 1",
   "udf_string_2":"udf string 2",
   "udf_string_3":"udf string 3",
   "udf_string_4":"udf string 4",
   "udf_string_5":"udf string 5",
   "udf_string_6":"udf string 6",
   "udf_string_7":"udf string 7",
   "udf_string_8":"udf string 8",
   "udf_float_1":10,
   "udf_float_2":20,
   "udf_float_3":30,
   "udf_float_4":40,
   "udf_float_5":50,
   "udf_float_6":60,
   "udf_float_7":70,
   "udf_float_8":80,
   "udf_date_1":"2014-05-05T15:49:59",
   "udf_date_2":"2014-06-05T15:49:59",
   "udf_date_3":"2014-07-05T15:49:59",
   "udf_date_4":"2014-08-05T15:49:59"
 } 


Response:

Code Block
languagejavascript
themeConfluencelanguagejavascript
linenumberstrue
{
  "data": {
    "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-07-05T13:08:14",
      "updated_date": "2016-07-05T13:08:14",
      "updated_by_user": {
        "person_name": "CRM COM",
        "id": "1",
        "username": "MPAdministrator"
      },
      "created_by_user": {
        "person_name": "CRM COM",
        "id": "1",
        "username": "MPAdministrator"
      }
    },
    "spend_amount": 12,
    "description": "first purchase event",
    "currency_rate_period": null,
    "udf_date_2": "2014-06-05T15:49:59",
    "type": "SPEND_REQUEST",
    "udf_date_1": "2014-05-05T15:49:59",
    "udf_date_4": "2014-08-05T15:49:59",
    "udf_date_3": "2014-07-05T15:49:59",
    "spend_reward_transaction": {
      "number": "34",
      "vat_amount": 0,
      "total_amount": 12,
      "id": "4B63EC94751D4FD1BCA8DA6DEABC1C0A",
      "net_amount": 12,
      "life_cycle_state": "POSTED",
      "rewards_participant": {
        "number": "RP0000000040",
        "accounts_receivable": {
          "number": "ACR0000000050",
          "name": "ACR0000000050 Ekaterini Tzirtzipi",
          "id": "1B61E3A9DB864363A1502829952DF3CD",
          "life_cycle_state": "ACTIVE",
          "account_owner": {
            "company_profile": null,
            "company_name": null,
            "name": "Ekaterini Tzirtzipi",
            "last_name": "Tzirtzipi",
            "id": "3236797A43C746F8AD9F4A91A4035735",
            "life_cycle_state": "FINANCIAL",
            "middle_name": null,
            "title": null,
            "type": "PERSON",
            "first_name": "Ekaterini",
            "demographics": {
              "name_day": {
                "month": null,
                "day": null
              },
              "id_number": "343434",
              "gender": null,
              "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
            }
          }
        },
        "id": "F4DBD2BA358545D3BBFD183D4651D5F2"
      }
    },
    "number": "47",
    "udf_float_3": 30,
    "udf_float_4": 40,
    "id": "2A6AA3EB01644714993FA644C089DDB5",
    "udf_float_1": 10,
    "udf_float_2": 20,
    "udf_string_2": "udf string 2",
    "udf_string_3": "udf string 3",
    "udf_string_4": "udf string 4",
    "udf_string_5": "udf string 5",
    "udf_string_1": "udf string 1",
    "accounts_receivable": {
      "number": "ACR0000000050",
      "name": "ACR0000000050 Ekaterini Tzirtzipi",
      "id": "1B61E3A9DB864363A1502829952DF3CD",
      "life_cycle_state": "ACTIVE",
      "account_owner": {
        "company_profile": null,
        "company_name": null,
        "name": "Ekaterini Tzirtzipi",
        "last_name": "Tzirtzipi",
        "id": "3236797A43C746F8AD9F4A91A4035735",
        "life_cycle_state": "FINANCIAL",
        "middle_name": null,
        "title": null,
        "type": "PERSON",
        "first_name": "Ekaterini",
        "demographics": {
          "name_day": {
            "month": null,
            "day": null
          },
          "id_number": "343434",
          "gender": null,
          "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-07-02T08:49:59",
    "classification": {
      "alternative_code": "SRC",
      "name": "Spend Request",
      "id": "7F6B89D7437E4A64AC7C4B38CBFC575E"
    },
    "purchase_customer_event": {
      "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": "2015-03-21T08:59:47",
        "updated_date": "2016-03-21T09:00:30",
        "updated_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        },
        "created_by_user": {
          "person_name": "MPAdministrator",
          "id": "1",
          "username": "MPAdministrator"
        }
      },
      "description": null,
      "accounts_receivable": {
        "number": "ACR0000000050",
        "name": "ACR0000000050 Ekaterini Tzirtzipi",
        "id": "1B61E3A9DB864363A1502829952DF3CD",
        "life_cycle_state": "ACTIVE",
        "account_owner": {
          "company_profile": null,
          "company_name": null,
          "name": "Ekaterini Tzirtzipi",
          "last_name": "Tzirtzipi",
          "id": "3236797A43C746F8AD9F4A91A4035735",
          "life_cycle_state": "FINANCIAL",
          "middle_name": null,
          "title": null,
          "type": "PERSON",
          "first_name": "Ekaterini",
          "demographics": {
            "name_day": {
              "month": null,
              "day": null
            },
            "id_number": "343434",
            "gender": null,
            "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",
      "type": "PURCHASE",
      "classification": {
        "alternative_code": "PC",
        "name": "Purchase Classification",
        "id": "437DED6938054AD5BEC61BB6AF2B1F65"
      },
      "performed_on": "2015-03-21T08:59:47",
      "reference_number": "15",
      "process_immediately": 1,
      "number": "13",
      "vat_amount": 0,
      "award_reward_transactions_set": null,
      "total_amount": 12,
      "id": "67EFD04703264C63BCD106A3165B383F",
      "net_amount": 12,
      "performed_by_unit": {
        "alternative_code": "adminunit",
        "group_name": "Main Group",
        "community_name": "Community",
        "name": "Admin Unit",
        "description": "admin unit",
        "id": "1"
      }
    },
    "process_immediately": 1,
    "udf_string_6": "udf string 6",
    "udf_string_7": "udf string 7",
    "performed_by_unit": {
      "alternative_code": "adminunit",
      "group_name": "Main Group",
      "community_name": "Community",
      "name": "Admin Unit",
      "description": "admin unit",
      "id": "1"
    },
    "udf_string_8": "udf string 8"
  },
  "status": {
    "code": "OK",
    "description": "",
    "message": ""
  }
}


...