Entity Posting API - Customer Add/Update

If the CustomerId does not exist, a new Customer record will be created. If it does, it will be updated.

Triggered Updates:

Standard ShowTimeAnalytics Message Parameters:

Fields for Customer Entity:

Customer accounts are automatically created as a function of the Account Movements

PLEASE NOTE: All field and attribute names are case sensitive

Message Structure - XML:

POST https://{{CIRCUIT_URL}}/data/pos/

POST - XML

<?xml version="1.0" encoding="UTF-8"?>
<ShowTimeAnalytics dataSupplierId="XXX" messageSequence="XXX">
	<CallbackUrl>https://XXX</CallbackUrl>
	<Customers>
		<Customer id="XXX">
			<Name>XXX</Name>
			<LastName>XXX</LastName>
			<Type>XXX</Type>
			<Deleted>XXX</Deleted>
			<Enabled>XXX</Enabled>
			<Gender>XXX</Gender>
			<DateOfBirth>XXX</DateOfBirth>
			<Telephone>XXX</Telephone>
			<Email>XXX</Email>
			<Address>
				<Line1>XXX</Line1>
				<Line2>XXX</Line2>
				<Line3>XXX</Line3>
				<Town>XXX</Town>
				<Region>XXX</Region>
				<Country>XXX</Country>
				<PostCode>XXX</PostCode>
			</Address>
			<SignedUpSiteId>XXX</SignedUpSiteId>
			<UpdateDateTime>XXX</UpdateDateTime>
			<CustomerAccounts>
				<CustomerAccount id="XXX">
					<Name>XXX</Name>
					<TypeId>XXX</TypeId>
					<CardId>XXX</CardId>
					<Cost precision="XXX">XXX</Cost>
					<CustomerAccountActivities>
						<CustomerAccountActivity id="XXX">
							<StartDate>XXX</StartDate>
							<EndDate>XXX</EndDate>
							<SchemeId>XXX</SchemeId>
							<TierId>XXX</TierId>
							<IsRenewal>XXX</IsRenewal>
						</CustomerAccountActivity>
					</CustomerAccountActivities>
					<CustomerAccountBenefits>
						<CustomerAccountBenefit id="XXX">
							<Name>XXX</Name>
							<TypeId>XXX</TypeId>
							<Units>XXX</Units>
							<ExpiryDate>XXX</ExpiryDate>
							<Deleted>XXX</Deleted>
						</CustomerAccountBenefit>
					</CustomerAccountBenefits>
					<CustomerAccountPromotions>
						<CustomerAccountPromotion id="XXX">
							<Name>XXX</Name>
							<TypeId>XXX</TypeId>
							<Units>XXX</Units>
							<PromotionId>XXX</PromotionId>
							<ExpiryDate>XXX</ExpiryDate>
						</CustomerAccountPromotion>
					</CustomerAccountPromotion>
				</CustomerAccount>
			</CustomerAccounts>
			<VisitsCounts>
				<VisitsCount type="XXX" period="XXX"/>XXX</VisitsCount>
			</VisitsCounts>
			<Groups>
				<Group active="XXX"/>XXX</Group>
			</Groups>
			<Sites>
				<Site delete="XXX"/>XXX</Site>
			</Sites>
			<Preferences>
				<Preference/>XXX</Preference>
			</Preferences>
			<Channels>
				<Channel/>XXX</Channel>
			</Channels>
			<Genres>
				<Genre/>XXX</Genre>
			</Genres>
			<MarketingNewsLetter>XXX</MarketingNewsLetter>
			<MarketingAcceptPostal>XXX</MarketingAcceptPostal>
			<MarketingAcceptEmail>XXX</MarketingAcceptEmail>
			<MarketingAcceptTelephone>XXX</MarketingAcceptTelephone>
			<Language>XXX</Language>
			<LastActiveTimestamp>XXX</LastActiveTimestamp>
			<Origin>XXX</Origin>
		</Customer>
	</Customers>
</ShowTimeAnalytics>

Callback Post Fields:

Message Structure - XML:

<?xml version="1.0" encoding="UTF-8"?>
<ShowTimeAnalyticsResponse dataSupplierId="XXX" messageSequence="XXX">
    <Responses>
        <Response id="XXX" entity="Customer">
            <Status>XXX</Status>
            <Warnings>
            	<Warning>XXX</Warning>
            </Warnings>
            <Errors>
            	<Error>XXX</Error>
            </Errors>
        </Response>
    </Responses>
</ShowTimeAnalyticsResponse>