Get refunds list

If transaction was partially paid by gift card the refund channel is "Mixed" and you can use GET refund to query for additional details.

Required fields are underlined.



Get refunds

<?php

$refunds = $MK->getTransactionRefunds($_GET['since'], $_GET['until'], $_GET['status'], $_GET['page'], $_GET['per_page']);

?>

Fatal error: Uncaught Httpful\Exception\ConnectionErrorException: Unable to connect to "/v1/refunds": 3 in /data02/virt45740/domeenid/www.maksekeskus.ee/developer/vendor/nategood/httpful/src/Httpful/Request.php:1028 Stack trace: #0 /data02/virt45740/domeenid/www.maksekeskus.ee/developer/vendor/nategood/httpful/src/Httpful/Request.php(204): Httpful\Request->buildResponse(false) #1 /data02/virt45740/domeenid/www.maksekeskus.ee/developer/Maksekeskus.php(446): Httpful\Request->send() #2 /data02/virt45740/domeenid/www.maksekeskus.ee/developer/Maksekeskus.php(392): Maksekeskus->makeApiRequest('GET', '/v1/refunds', NULL) #3 /data02/virt45740/domeenid/www.maksekeskus.ee/developer/Maksekeskus.php(813): Maksekeskus->makeGetRequest('/v1/refunds') #4 /data02/virt45740/domeenid/www.maksekeskus.ee/developer/refund.list.php(29): Maksekeskus->getTransactionRefunds('', NULL, 'settled', NULL, NULL) #5 {main} thrown in /data02/virt45740/domeenid/www.maksekeskus.ee/developer/vendor/nategood/httpful/src/Httpful/Request.php on line 1028