Batches
Batches Controller
Valid formats for the ‘start-date’ and ‘end-date’ fields include the following: MM-dd-yyyy hh:mm a, MM-dd-yy HH:mm, MM-dd-yy HH:mm z, yyyy-MM-dd HH:mm, yyyy-MM-dd HH:mm z
param
Level of search. Default is terminal level. Set to 'merchant' to query all batches for this merchant.
filters the batches list by the created date/time. Setting start date will return batches that were processed after this date/time. Setting both start and end date creates a range
use with start date to create range
The page number. Use the page and page-size for pagination
Number of results per page
list results in descending order, default is true
Batch status (OPEN,CLOSED,PENDING,FAILED). A PENDING status means the batch is being processed. The FAILED means a batch was attempted and failed. A batch that has FAILED can be resubmitted.
api-key-value
Number of refunds in the batch
total dollar amount of refunds in the batch
Number of sales/auths in batch
Total dollar amount of sales in the batch
Total dollar amount in the batch
Total number of transactions in the batch
on a settled batch the confirmation code
date and time of settled batch
GET //rest/v2/batches HTTP/1.1
Host: gateway-sb.clearent.net
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 172
"refund-count='text'&refund-total='text'&sales-count='text'&sales-total='text'&net-amount='text'&total-count='text'&confirmation-code='text'&settled='text'"
<?xml version="1.0"?>
<object>
<batch>
<confirmation-code>00039999</confirmation-code>
<date-opened>11113333</date-opened>
<id>00101</id>
<merchant-id>000000101202</merchant-id>
<net-amount>8800.00</net-amount>
<refund-count>2</refund-count>
<refund-total>200.00</refund-total>
<sales-count>32</sales-count>
<sales-total>9000.00</sales-total>
<settled>2020-05-02T19:48:04.993Z</settled>
<status>CLOSED</status>
<switch-batch-id>text</switch-batch-id>
<terminal-id>11113333</terminal-id>
<terminal-name>Station 1</terminal-name>
<total-count>34</total-count>
</batch>
<payloadType>text</payloadType>
</object>
Was this helpful?