Pera ServiceStack

<back to all web services

ContactCampaignRequest

The following routes are available for this service:
GET,OPTIONS/v1/Contact/Campaign/{CampaignListId}
GET,OPTIONS/v1/Contact/Campaign/{CampaignListId}/{LandingSiteId}

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

HTTP + CSV

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

POST /csv/reply/ContactCampaignRequest HTTP/1.1 
Host: api.publicemployeeretirementassistance.com 
Content-Type: text/csv
Content-Length: length

CampaignListId,LandingSiteId,Contact
00000000000000000000000000000000,00000000000000000000000000000000,"{ContactId:0,ContactType:String,FirstName:String,MiddleName:String,LastName:String,Title:String,EmailWork:String,EmailPersonal:String,OrganizationType:String,Organization:String,UnitType:String,Unit:String,State:String,Phone:String,Department:String,LastContact:0001-01-01,DoNotContact:False,PensionPlan:String,ContactCount:0}"

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

ResponseStatus,Contact,ContactAppointment,CampaignId,ApptTimeMinutes,TravelTimeMinutes,Campaign,CampaignTimeRanges,AllowOnsiteAppt,AllowVirtualAppt,AllowInPersonAppt,ShowColoradoDisclaimer,ShowCERA,ShowPERA
"{ErrorCode:String,Message:String,StackTrace:String,Errors:[{ErrorCode:String,FieldName:String,Message:String}]}","{ContactId:0,ContactType:String,FirstName:String,MiddleName:String,LastName:String,Title:String,EmailWork:String,EmailPersonal:String,OrganizationType:String,Organization:String,UnitType:String,Unit:String,State:String,Phone:String,Department:String,LastContact:0001-01-01,DoNotContact:False,PensionPlan:String,ContactCount:0}","{ContactAppointmentRequestId:0,CalendarEventId:0,CampaignId:0,ContactId:0,ContactNumber:String,ReceiveText:False,MeetingLocation:String,MeetingLocationOther:String,Address:String,City:String,State:String,Zip:String,Latitude:0,Longitude:0,PreferredAppointment:String,AlternativeAppointment:String,TimeZone:String,Notes:String,DateCreated:0001-01-01,DateUpdated:0001-01-01,DateAssigned:0001-01-01,AgentId:0,Deleted:False,TextVerificationSentDate:0001-01-01,ReferringAgentNumber:String,ClientAgentId:0,CompanyId:0,CancellationNote:String,ProductType:String,IsLocked:False,MeetingType:String,IsReplicatedApptRequest:False}",0,0,0,"{CampaignId:0,CampaignName:String,CampaignTypeId:0,ProductTypeId:0,ListId:0,TemplateId:0,FromEmail:String,EmailCount:0,DomainId:0,SleepAfter:0,Paused:False,DateStarted:0001-01-01,DateCompleted:0001-01-01,DateCreated:0001-01-01,LandingSiteId:00000000000000000000000000000000,AllowOnsiteAppt:False,TimeZone:String,AssignmentType:0,Stopped:False,RoundRobinAgents:[{AgentId:0,UserId:00000000000000000000000000000000,FirstName:String,LastName:String,Email:String,EmailSignature:String,CalendarId:00000000000000000000000000000000,GoogleCalendar:String,Latitude:0,Longitude:0,AgentLevel:0,AsapOptOut:False,CompanyId:0,SplitAgentId:0,AsapLockOut:False,AsapOptIn:False,AcceptAllAppts:False,TimeZone:String,AgreementDate:0001-01-01,AgreementValue:String,OptOutDate:0001-01-01,PaymentPlan:String,AsapWeeklyAppts:0,CompanyAssociation:String,ReferredBy:String,SaturdayAppts:False,SundayAppts:False,StatusId:0,CanMoveAppts:False,StatusFollowUpDate:0001-01-01,StatusNote:String,Districts:[{Id:0,AgentId:0,DistrictId:0,Name:String,CampaignTypeId:0,OrganizationTypeId:0,OrganizationTypeName:String,CountyName:String,StateName:String,ProductTypeId:0,AcceptInPersonMeetings:False,AcceptVirtualMeetings:False}],DistrictsWaitingList:[{Id:0,AgentId:0,DistrictId:0,Name:String,CampaignTypeId:0,DateCreated:0001-01-01,OrganizationTypeId:0,OrganizationTypeName:String,CountyName:String,StateName:String,ProductTypeId:0,AcceptInPersonMeetings:False,AcceptVirtualMeetings:False}],RequestedDistricts:[{Id:0,AgentId:0,DistrictId:0,Name:String,CampaignTypeId:0,OrganizationTypeId:0,OrganizationTypeName:String,CountyName:String,StateName:String,ProductTypeId:0,AcceptInPersonMeetings:False,AcceptVirtualMeetings:False}],AgentProductTypes:[{AgentId:0,ProductType:String,ProductTypeId:0,DateCreated:0001-01-01}],SSN:String,DOB:String,Customer:False,VendorType:String,AsapLockOutDate:0001-01-01,ProfileImage:AA==,RegistrantNumber:String,Subscription:String,ApiKey:00000000000000000000000000000000,SubscriptionFee:0,AgreementContent:String,HasNewAgreement:False,VCAppts:False,FaceToFaceAppts:False,IsAsapRestricted:False,AsapOptOutReasonId:0,AsapOptOutReturnDate:0001-01-01T00:00:00.0000000+00:00,AsapOptOutNote:String,AsapOptOutStatewide:False,ApptDetailVisibilityMinutes:0,ModifiedBy:String,SlotsOpen:0}],AppointmentConfirmationId:0,AppointmentConfirmationUpdateId:0,AppointmentConfirmationCancelId:0,AppointmentConfirmationCancelSurveyId:0,AgentAppointmentConfirmationId:0,AgentAppointmentConfirmationUpdateId:0,AgentAppointmentConfirmationCancelId:0,SatisfactionSurveyId:0,OtherOfferId:0,ReferringAgentAppointmentConfirmationId:0,ReferringAgentAppointmentConfirmationUpdateId:0,ReferringAgentAppointmentConfirmationCancelId:0,Note:String,PauseRestartDate:0001-01-01,PauseCount:0,PauseRuleId:0,ExcludeFromRuleService:False}","[{CampaignTimeRangeId:0,CampaignId:0,StartTime:String,EndTime:String}]",False,False,False,False,False,False