Click or drag to resize

LoyaltyPartnerClientOpenSaleTransactionBatch Method

Initialise the Batch for submitting file(s) containing Transactions. The service returns the Batch Details, containing a key for calling the subsequent workflow Transaction Batch methods.

This method is a step in the workflow for Transaction File Batch submission.

Remarks
Transaction File Batch submission workflow:
  • Initialise Batch - call service: OpenSaleTransactionBatch
  • Submit Transaction File(s) - call service: LoadSaleTransactionBatch
  • Monitor submitted Transaction Batch Progress - call service: QuerySaleTransactionBatch
  • Stop The Transaction Batch Processing - call service: CancelSaleTransactionBatch
Syntax
C#
public ResultOfBatch OpenSaleTransactionBatch(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfBatch
Examples
C#
using (var svc = new LoyaltyService.LoyaltyPartnerClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfguid();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin
  request.Value = new Guid("5d43f79b-c723-4466-880b-0e01dc1d2560");;//Required - RSN of partner

  LoyaltyService.ResultOfBatch result = svc.OpenSaleTransactionBatch(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also