Rsl.Lotteries

<back to all web services

CreateCustomerActivity

Create an activity and link it to existing customer

The following routes are available for this service:
POST/customers/activities
CreateCustomerActivity Parameters:
NameParameterData TypeRequiredDescription
CustomerIdbodystringYesThe customer to link the activity to
DescriptionbodystringYesInformation about activity
AdditionalInformationbodystringNoUsed to capture technical information during order flow process
StartDatebodyDateTime?NoStart date for activity, if not provided today's datetime would be used. For category task, time component would be removed
DueDatebodyDateTime?NoEnd date for activity, if not provided today's datetime would be used. For category task, time component would be removed
CategorybodyActivityCategory?NoCategory, Default value is 'Event'

Allowable Values

  • Appointment
  • Task
  • Action
  • Event
PurposebodystringNoPurpose
PrioritybodyActivityPriority?No
TypebodystringNoActivity Type (obsolete). Type should match with the Activity Action table in AX
ActionTypebodystringYesActivity Action Type. Type should match with the Activity Action table in AX
ActivityTypebodystringNoActivity Type, if not provided it will be set to 'Tasks'. Current values supported are 'Tasks' and 'Comms'
InteractionbodystringNoInteraction, Current values supported are 'Email', 'Inbound' and 'Outbound'
UserGroupbodystringNoGroup assigned as responsible for actioning activity.If not specified, default value from Activity Action table will be taken
ContactInformationbodystringNoContactInformation
DispatchedbodyboolNoDispatched.
RequestReferencebodyRequestReferenceNoAttribution values associated to the request if any
ActivityCategory Enum:
NameValue
Appointment1
Task2
Action3
Event4
ActivityPriority Enum:
High
Normal
Low
RequestReference Parameters:
NameParameterData TypeRequiredDescription
CampaignIdformstringNo
RetailChannelIdformstringYes
ReferenceIdformstringNo
Activity Parameters:
NameParameterData TypeRequiredDescription
ActivityIdformstringNo
CustomerIdformstringNo
OrderIdformstringNo
DescriptionformstringNo
AdditionalInformationformstringNo
StartDateformDateTimeNo
DueDateformDateTimeNo
CategoryformActivityCategory?No
PurposeformstringNo
ContactInformationformstringNo
TypeformstringNo
ActionTypeformstringNo
ActivityTypeformstringNo
UserGroupformstringNo
DispatchedformstringNo
DispatchDateTimeformDateTimeNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /customers/activities HTTP/1.1 
Host: azs-stg-lotteries-web.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"customerId":"String","description":"String","additionalInformation":"String","startDate":"0001-01-01T00:00:00.0000000","dueDate":"0001-01-01T00:00:00.0000000","category":"0","purpose":"String","priority":"High","type":"String","actionType":"String","activityType":"String","interaction":"String","userGroup":"String","contactInformation":"String","dispatched":false,"requestReference":{"campaignId":"String","retailChannelId":"String","referenceId":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"activityId":"String","customerId":"String","orderId":"String","description":"String","additionalInformation":"String","startDate":"0001-01-01T00:00:00.0000000","dueDate":"0001-01-01T00:00:00.0000000","category":"0","purpose":"String","contactInformation":"String","type":"String","actionType":"String","activityType":"String","userGroup":"String","dispatched":"String","dispatchDateTime":"0001-01-01T00:00:00.0000000"}