Entity Posting API - Refund

We treat refunds exactly the same as orders with negating totals as opposed to positive ones. The original order will remain in the system and we do not maintain any link between the two because from an reporting point of view, it is only important the totals are correct.

If the RefundID does not exist, a new Refund record will be created. If it does, it will be updated.

Triggered Updates:

Standard ShowTimeAnalytics Message Parameters:

Fields for Refund Entity:

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>
	<Refunds>
		<Refund id="XXX" siteId="XXX">
			<IsVoid>true/false</IsVoid>
			<Currency>XXX</Currency>
			<TransactionTimestamp>XXX</TransactionTimestamp>
			<CinemaDate>XXX</CinemaDate>
			<SaleLocationId>XXX</SaleLocationId>
			<SaleDeviceId>XXX</SaleDeviceId>
			<SaleDeviceMeta>XXX</SaleDeviceMeta>
			<StaffId>XXX</StaffId>
			<CustomerId>XXX</CustomerId>
			<CustomerEmail>XXX</CustomerEmail>
			<CustomerName>XXX</CustomerName>
			<CustomerLastName>XXX</CustomerLastName>
			<CustomerAccountId>XXX</CustomerAccountId>
			<CustomerAccountType>XXX</CustomerAccountType>
			<ThirdPartyOrderReference>XXX</ThirdPartyOrderReference>
			<MarketingAcceptEmail>XXX</MarketingAcceptEmail>
			<TicketSales>
				<TicketSale id="XXX">
					<TicketTypeId>XXX</TicketTypeId>
					<Quantity>XXX</Quantity>
					<PerformanceId>XXX</PerformanceId>
					<SalePrice precision="XXX">XXX</SalePrice>
					<SalePriceDrp precision="XXX">XXX</SalePriceDrp>
					<SeatRow>XXX</SeatRow>
					<SeatNum>XXX</SeatNum>
					<SeatType>XXX</SeatType>
					<IsVoid>true/false</IsVoid>
					<Taxes>
						<Tax id="XXX">
							<Amount precision="XXX">XXX</Amount>
							<Quantity precision="XXX">XXX</Quantity>
							<Type>XXX</Type>
						</Tax>
					</Taxes>
					<Fees>
						<Fee id="XXX">
							<Amount precision="XXX">XXX</Amount>
							<Quantity precision="XXX">XXX</Quantity>
							<Type>XXX</Type>
							<Taxes>
							    <Tax id="XXX">
							        <Amount precision="XXX">XXX</Amount>
							        <Quantity precision="XXX">XXX</Quantity>
							        <Type>XXX</Type>
							    </Tax>
							</Taxes>
						</Fee>
					</Fees>
					<Discounts>
						<Discount id="XXX">
							<Amount precision="XXX">XXX</Amount>
							<Quantity precision="XXX">XXX</Quantity>
							<Type>XXX</Type>
						</Discount>
					</Discounts>
				</TicketSale>
			</TicketSales>
			<ShopSales>
				<ShopSale id="XXX">
					<StockId>XXX</StockId>
					<Quantity precision="XXX">XXX</Quantity>
					<Cost precision="XXX">XXX</Cost>
					<SalePrice precision="XXX">XXX</SalePrice>
					<IsVoid>true/false</IsVoid>
					<Taxes>
						<Tax id="XXX">
							<Amount precision="XXX">XXX</Amount>
							<Quantity precision="XXX">XXX</Quantity>
							<Type>XXX</Type>
						</Tax>
					</Taxes>
					<Fees>
						<Fee id="XXX">
							<Amount precision="XXX">XXX</Amount>
							<Quantity precision="XXX">XXX</Quantity>
							<Type>XXX</Type>
							<Taxes>
							    <Tax id="XXX">
							        <Amount precision="XXX">XXX</Amount>
							        <Quantity precision="XXX">XXX</Quantity>
							        <Type>XXX</Type>
							    </Tax>
							</Taxes>
						</Fee>
					</Fees>
					<Discounts>
						<Discount id="XXX">
							<Amount precision="XXX">XXX</Amount>
							<Quantity precision="XXX">XXX</Quantity>
							<Type>XXX</Type>
						</Discount>
					</Discounts>
					<Components>
						<Component id="XXX">
							<StockId>XXX</StockId>
							<Quantity precision="XXX">XXX</Quantity>
							<Cost precision="XXX">XXX</Cost>
							<SalePrice precision="XXX">XXX</SalePrice>
							<IsVoid>true/false</IsVoid>
						</Component>
					</Components>
				</ShopSale>
			</ShopSales>
			<AdditionalFees>
				<Fee id="XXX">
					<Amount precision="XXX">XXX</Amount>
					<Quantity precision="XXX">XXX</Quantity>
					<Type>XXX</Type>
					<Taxes>
					    <Tax id="XXX">
					        <Amount precision="XXX">XXX</Amount>
					        <Quantity precision="XXX">XXX</Quantity>
					        <Type>XXX</Type>
					    </Tax>
					</Taxes>
				</Fee>
			</AdditionalFees>
			<AdditionalTaxes>
				<Tax id="XXX">
					<Amount precision="XXX">XXX</Amount>
					<Quantity precision="XXX">XXX</Quantity>
					<Type>XXX</Type>
				</Tax>
			</AdditionalTaxes>
			<Payments>
				<Payment id="XXX">
					<Type>XXX</Type>
					<Total precision="XXX">XXX</Total>
					<TenderedCurrency>XXX</TenderedCurrency>
					<TenderedAmount precision="XXX">XXX</TenderedAmount>
				</Payment>
			</Payments>
		</Refund>
	</Refunds>
</ShowTimeAnalytics>

Callback Post Fields:

Message Structure - XML:

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