| PUT POST | /campaign/verifycustomer | Verify Campaign Customer |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CampaignVerifyCustomer:
# @Validate(Validator="NotNull")
comms_public_access_guid: Optional[str] = None
customers_id: int = 0
updated_address: Optional[str] = None
updated_age: Optional[int] = None
updated_city: Optional[str] = None
updated_contact_number: Optional[str] = None
updated_email: Optional[str] = None
updated_ethnic_group: Optional[str] = None
updated_first_name: Optional[str] = None
updated_gender: Optional[str] = None
updated_home_language: Optional[str] = None
updated_id_number: Optional[str] = None
updated_last_name: Optional[str] = None
updated_postal_code: Optional[str] = None
updated_region: Optional[str] = None
updated_suburb: Optional[str] = None
updated_unique_identifier: Optional[str] = None
updated_birth_date: Optional[datetime.datetime] = None
updated_country: Optional[str] = None
updated_passport_number: Optional[str] = None
# @Required()
status_codes_id: int = 0
reason: Optional[str] = None
# @Required()
campaigns_id: int = 0
# @Required()
captured_date: datetime.datetime = datetime.datetime(1, 1, 1)
updated_id_url: Optional[str] = None
updated_passport_url: Optional[str] = None
updated_address_url: Optional[str] = None
Python CampaignVerifyCustomer DTOs
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /campaign/verifycustomer HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"CommsPublicAccessGuid":"00000000000000000000000000000000","CustomersId":0,"UpdatedAddress":"String","UpdatedAge":0,"UpdatedCity":"String","UpdatedContactNumber":"String","UpdatedEmail":"String","UpdatedEthnicGroup":"String","UpdatedFirstName":"String","UpdatedGender":"String","UpdatedHomeLanguage":"String","UpdatedIdNumber":"String","UpdatedLastName":"String","UpdatedPostalCode":"String","UpdatedRegion":"String","UpdatedSuburb":"String","UpdatedUniqueIdentifier":"String","UpdatedBirthDate":"0001-01-01T00:00:00.0000000","UpdatedCountry":"String","UpdatedPassportNumber":"String","StatusCodesId":0,"Reason":"String","CampaignsId":0,"CapturedDate":"0001-01-01T00:00:00.0000000+00:00","UpdatedIdUrl":"String","UpdatedPassportUrl":"String","UpdatedAddressUrl":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length false