> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slm.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction.fetchDelta

The behavior of the `fetchDelta()` call is similar to that of `fetchDeltaSince`, except that you need not specify a time stamp as a parameter. Subscribe tracks your calls to this method, and returns the `Transaction` objects whose status has changed since your last call. If you have never called this method, Subscribe returns all `Transaction` created since January 1, 1970 (“epoch”).

For paging, specify the page size only for this method. Like `fetchDeltaSince`, there is no need to increment through page numbers, because this call keeps a record of the last item returned to you in the previous call. Each time you make this call, the results will continue from the last position in the result set.

## Input

*srd*: sparse response description, a SOAP string (which must be a JSON object), in which you specify the elements you want returned.This parameter enables the calling system to constrain a `method` call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call.

Some fields are required, either practically or in the WSDL, and will be returned regardless of the *srd*. A null *srd* returns the complete response.

*pageSize*: the number of records to display per page per call. This value must be greater than 0.

## Output

*return*: an object of type `Return` that indicates the success or failure of the call.

*transactions*: an array of one or more `Transaction` objects whose status has changed since this method was last called.

*startDate*: the starting time stamp for the range of `Transaction` objects fetched.

*endDate*: the ending time stamp for the range of `Transaction` objects fetched.

## Returns

This method returns the codes listed in [The Return Object](The_Return_Object).

## Example

```

$soap_tx = new Transaction();
$pageSize = 50;
  
do {
   $ret = $soap_tx->fetchDelta ($pageSize);
   $count = 0;
   if ($ret['returnCode'] == 200) {
      $fetchedTxns = $ret['transactions'];
      if ($fetchedTxns != null) {
         $count = sizeof($fetchedTxns);
         foreach ($fetchedTxns as $txn) {
  
         // process a fetched transaction here …
         $status = $txn->statusLog[0]->status;
         $transactionId = $txn->getMerchantTransactionId();
         $amount = $txn->getAmount();
         }
         $page++;
      }
   }
} while ($count > 0); 
 
// quit when no more objects are retrieved
```

**Parent topic:**[Transaction Methods](../topics/Transaction_Methods)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.