API Export Batches

Export Batches Request

Required Name Value Pairs

UN, PSWD, TERMS, METHOD, SDATE, EDATE

Optional Name Value Pairs For Export Batches Request

The PayTrace API does not allow any optional name / value pairs for Export Batches request.

Sample Export Batches Request

‘format the request string to export a summary of batches
strRequest = "un~demo123|pswd~demo123|method~exportbatches|terms~Y|"
strRequest = strRequest  & "parmList=SDATE~11/11/2010|EDATE~11/12/2010| "

strResponse = SendPayTraceAPIRequest(strRequest) ‘defined in Referencing the API Page

Request Response

Returned Name Value Pairs

Responses elicited from an ExportBatches request will always return either one or more error messages or a response. Successful responses will always include one or BATCHRECORD parameters and each BATCHRECORD parameter will include the following elements:

BATCHNUM, WHEN, TRANXCOUNT, NETAMOUNT, SALESCOUNT, SALESAMOUNT, REFUNDCOUNT, REFUNDAMOUNT

Example of Parsing an Export Batches Response

Parsing responses from Export Batches requests is similar to parsing Export Transactions. Please note that the parameter names and values will vary compared to Export Transaction responses, however, the delimiters and format is that same.