Excerpt |
---|
This method is used to create a purchase customer event in a posted life cycle state |
Resource URL
Path Variables
N/A
Headers
Name | Type | Description |
---|---|---|
api_key | String | The api key for API calls to ensure that the client is trusted |
Body
Name | Type | Description | ||||||||||||||||||
id (optional) | String | The customer event unique Identifier (GUID)
| ||||||||||||||||||
contact_id (semi-optional) | String | The contact id that unique identifier (GUID) that the customer event is created for
| ||||||||||||||||||
cim (semi-optional) | String | The value for a single contact identification medium representing the customer event is created for
| ||||||||||||||||||
reference_number (mandatory) | String | The external system’s (unique) reference number that submitted the customer event | ||||||||||||||||||
classification_identifier (optional) | Customer Event Classification IdentifierObject | The classification of the customer event The allowed identifier fields are the following
| ||||||||||||||||||
currency_code (optional) | String | The currency code that the customer event is created against
| ||||||||||||||||||
payment_medium_identifier (optional) | String | The payment medium identifier with which the purchase customer event has been made (e.g. first credit card digits) | ||||||||||||||||||
performed_on (optional) | Integer | The date that the customer event was actually performed (in epoch format)
| ||||||||||||||||||
merchant_tap (semi-optional) | Object | The merchant that captured the purchase customer event
The allowed identifier fields are the following
| ||||||||||||||||||
outlet_tap (semi-optional) | Object | The merchant's outlet that captured the purchase customer event
The allowed identifier fields are the following
| ||||||||||||||||||
products | Array of ProductsObjects | The purchase products purchased items of this customer event
| ||||||||||||||||||
spend_request | Object | Information related with the spend request that should be created as part of the purchase customer event
|
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
...
Name | Type | Description |
id | String | The purchase customer event identifier (GUID) |
Examples
Expand | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
HTTP Method: POST Request Header
Body
Response
|
...