Get Settlements

Facades: merchant

Overview

Get settlements filtered by query parameters.

Parameters

ParameterDescription
currencyThe three digit currency string for the ledger to retrieve.
dateStartThe start date for the query.
dateEndThe end date for the query.
statusCan be processing, completed, or failed.
limitMaximum number of settlements to retrieve.
offsetOffset for paging.

Example

$date = new \DateTime();
$today = $date->format("Y-m-d");
$dateBefore = $date->modify('-365 day');
$oneMonthAgo = $dateBefore->format("Y-m-d");

$settlements = $bitpay->getSettlements(Currency::USD, $oneMonthAgo, $today);