To get charge back data use transaction.list as described in [[public/payment/partners/apidocs/transaction.list|Api documentation]] with two additional parameters: `type=chargeback` and `no_partner_check=true`.
==== Usage Example ====
```
<?php
require_once "curl_http_client/curl_http_client.php";
$curl = new \Dinke\Curl_HTTP_HttpClient();;
//setup payment url and timeout
$payment_url = 'https://dev-payment.datingvip.com/api.json';
$timeout = 30;
//generate post data
$post_data = array
(
'$curl->setCredentials('some-token' =>, 'some-token',
'password' => '130d04b80a4196857e47b254ebfbb53f',');
$post_data = array(
'comman'cmd' => 'transaction.list',
'data' => array('type' => 'chargeback', 'no_partner_check' => true),
);
$response = $curl->send_post_dPostData($payment_url, $post_data, null, $timeout);
if($response === false)
{
//handle errors
}
//decode json to get array
$response = json_decode($response, true);
var_dump($response);
```
Excepted output after running this script(with addition of limit=1 for the sake of clarity) should be:
```
array (size=1)
'result' =>
'code' => 700,array (size=8)
'status 'code' => 'Action completed succesfully',int 700
'command 'status' => 'transastring 'Action.list', completed succesfully' (length=28)
'command' => string 'transaction.list' (length=16)
'result' =>
array (size=2)
0 =>
array (size=61)
'tran_id' => '672',string '72' (length=2)
'ptnr_id' => string '1', (length=1)
'ppac_id' => string '74', (length=2)
'order_id' => '759',string '59' (length=2)
'ccdt_id' => '162',string '37' (length=2)
'transaction_type' => string 'c', (length=1)
'amount' => string '39.99', (length=5)
'currency' => string 'USD', (length=3)
'description' => string '[CB-M] order #759 - uid #38941 - $39.99 billed every 3 months (90 days)', (length=65)
'status' => string 'successful', (length=10)
'refunded_tran_id' => '666',string '71' (length=2)
'origin' => string 'system', (length=6)
'ts' => string '1426003862',13825539' (length=10)
'status_code 'original_ts' => '1',string '0' (length=1)
'payment 'status_code' => '700',string '1' (length=1)
'pp_id 'payment_code' => '6',string '700' (length=3)
'tracking_tag 'pp_id' => '14',string '6' (length=1)
'hash' => '14259990633422239901ad24358d8b6e', 'tracking_tag' => string '14' (length=2)
'user_id 'hash' => '389',string '141382544156452e365dc1621eb9e9f5' (length=32)
'order_type 'user_id' => 'basic',string '41' (length=2)
'first_nam 'order_type' => 'cary',string 'basic' (length=5)
'la 'first_name' => 'acehardware',string 'sdagasdg' (length=8)
'street 'last_name' => '',string 'gdsagsdagsda' (length=12)
'city 'street' => '',string '' (length=0)
'state 'city' => '',string '' (length=0)
'zipcod 'state' => '12345',string '' (length=0)
'country 'zipcode' => 'US',string '0000' (length=4)
'site_id 'country' => '14',string 'RS' (length=2)
'refunde 'site_id' => 0,string '14' (length=2)
'refunded_amount' => 0,' => int 0
'type' => 'chargeback', 'refunded_amount' => int 0
'nam 'type' => 'Rocket Gate - Online Connections',string 'chargeback' (length=10)
'is_active' => '1', 'name' => string 'Rocket Gate - Online Connections' (length=32)
'ccnum 'is_active' => '555555xxxxxx4444',string '1' (length=1)
'ccnameum' => 'cary acehardware',string '412800xxxxxx7113' (length=16)
'ccxpdat 'ccname' => '2015-06-01',string 'sdagasdg gdsagsdagsda' (length=21)
'cctyp 'ccxpdate' => 'mc',string '2016-01-01' (length=10)
'ccaddress 'cctype' => '',string 'visa' (length=4)
'cczip 'ccaddress' => '12345',string '' (length=0)
'ccstatus' => 'active', 'cczip' => string '0000' (length=4)
'cccountry 'ccstatus' => 'US',string 'inactive' (length=8)
'processor 'cccountry' => 'RG',string 'RS' (length=2)
'processor_name' => 'RocketGate',' => string 'RG' (length=2)
'dat 'processor_name' => '1426003862',string 'RocketGate' (length=10)
'date' => string '1413825539' (length=10)
'details' =>
array (size=38)
), 'tdrg_id' => string '52' (length=2)
'status_message 'guidNo' => 'Action completed succesfully',string '10001492E906785' (length=15)
'pay_status 'authNo' => 'APPROVED',string '486947' (length=6)
'status_severity' => 4, 'merchantInvoiceID' => string '' (length=0)
'merchantAccount' => string '3' (length=1)
'approvedAmount' => string '39.99' (length=5)
'approvedCurrency' => string 'USD' (length=3)
'scrubResults' => string '' (length=0)
'merchantCustomerID' => string '' (length=0)
'avsResponse' => string '' (length=0)
'cvv2Code' => string '' (length=0)
'reasonCode' => string '0075' (length=4)
'responseCode' => string '' (length=0)
'cardCountry' => string 'US' (length=2)
'cardHash' => string '8DoHBzr/OzoLDD3ZjNcJpAYKkhX5E240yaPc7l2d2/Y=' (length=44)
'merchantID' => string '1358984622' (length=10)
'bankResponseCode' => string '' (length=0)
'ptnr_id' => string '1' (length=1)
'ppac_id' => string '74' (length=2)
'order_id' => string '59' (length=2)
'ccdt_id' => string '37' (length=2)
'transaction_type' => string 'c' (length=1)
'amount' => string '39.99' (length=5)
'currency' => string 'USD' (length=3)
'description' => string '' (length=0)
'status' => string 'successful' (length=10)
'refunded_tran_id' => string '71' (length=2)
'origin' => string 'system' (length=6)
'ts' => string '1413825539' (length=10)
'original_ts' => string '0' (length=1)
'status_code' => string '1' (length=1)
'payment_code' => string '700' (length=3)
'transactionID' => string '10001492E906785' (length=15)
'invoiceID' => string '' (length=0)
'membershipID' => string '' (length=0)
'avsCode' => string '' (length=0)
'uniqueAccountId' => string '1358984622-3' (length=12)
'is_retrieval' => string '0' (length=1)
'status_message' => string 'Action completed succesfully' (length=28)
'pay_status' => string 'APPROVED' (length=8)
'status_severity' => int 2
'items' =>
array ( array (size=1)
0 => string '20058' (length=5)
'item_id' => string '20058' (length=5)
'sub_id' => string '42' (length=2)
'tracking_user' => string '4151730' (length=7)
'email' => string 'gweagwaegwe@ewgwegweg.gwe' (length=25)
'card_brand' => string 'VISA' (length=4)
'card_type' => string 'CREDIT' (length=6)
'card_category' => string 'CLASSIC' (length=7)
'bank_name' => string 'CITIBANK, N.A.' (length=14)
'bank_country_code' => string 'US' (length=2)
'bank_site' => string 'HTTPS://ONLINE.CITIBANK.COM/US/WELCOME.C' (length=40)
'bank_phone' => string '1-800-374-9700' (length=14)
0 => '210812',1 =>
array (size=61)
), 'tran_id' => string '69' (length=2)
'item 'ptnr_id' => '210812',string '1' (length=1)
'sub 'ppac_id' => '461',string '74' (length=2)
'tracking_user' => '3519609', 'order_id' => string '58' (length=2)
'email 'ccdt_id' => 'cary@acehardware.com',string '36' (length=2)
'card_brand 'transaction_type' => '',string 'c' (length=1)
'card_type 'amount' => '',string '1.00' (length=4)
'card_categor 'currency' => '',string 'USD' (length=3)
'bank_name 'description' => '',string '[CB] order #58 - uid #40 - $39.99 billed every 3 months (90 days)' (length=65)
'bank_country_code' => '', 'status' => string 'successful' (length=10)
'bank_site 'refunded_tran_id' => '',string '68' (length=2)
'bank_phone 'origin' => '',string 'system' (length=6)
), 'ts' => string '1413820738' (length=10)
), 'original_ts' => string '0' (length=1)
'request' 'status_code' => string '1' (length=1)
'payment_code' => string '700' (length=3)
'pp_id' => string '6' (length=1)
'tracking_tag' => string '14' (length=2)
'hash' => string '14138206528475988701c0c874cda5e6' (length=32)
'user_id' => string '40' (length=2)
'order_type' => string 'basic' (length=5)
'first_name' => string 'sdagsadgsadg' (length=12)
'last_name' => string 'sdgsdagsda' (length=10)
'street' => string '' (length=0)
'city' => string '' (length=0)
'state' => string '' (length=0)
'zipcode' => string '0000' (length=4)
'country' => string 'RS' (length=2)
'site_id' => string '14' (length=2)
'refunded' => int 0
'refunded_amount' => int 0
'type' => string 'chargeback' (length=10)
'name' => string 'Rocket Gate - Online Connections' (length=32)
'is_active' => string '1' (length=1)
'ccnum' => string '412800xxxxxx7113' (length=16)
'ccname' => string 'sdagsadgsadg sdgsdagsda' (length=23)
'ccxpdate' => string '2016-01-01' (length=10)
'cctype' => string 'visa' (length=4)
'ccaddress' => string '' (length=0)
'cczip' => string '0000' (length=4)
'ccstatus' => string 'inactive' (length=8)
'cccountry' => string 'RS' (length=2)
'processor' => string 'RG' (length=2)
'processor_name' => string 'RocketGate' (length=10)
'date' => string '1413820738' (length=10)
'details' =>
array (size=38)
'cm 'tdrg_id' => 'transaction.list',string '49' (length=2)
'data' 'guidNo' => string '10001492E473E17' (length=15)
'authNo' => string '429010' (length=6)
'merchantInvoiceID' => string '' (length=0)
'merchantAccount' => string '3' (length=1)
'approvedAmount' => string '39.99' (length=5)
'approvedCurrency' => string 'USD' (length=3)
'scrubResults' => string '' (length=0)
'merchantCustomerID' => string '' (length=0)
'avsResponse' => string '' (length=0)
'cvv2Code' => string '' (length=0)
'reasonCode' => string '0075' (length=4)
'responseCode' => string '' (length=0)
'cardCountry' => string 'US' (length=2)
'cardHash' => string '8DoHBzr/OzoLDD3ZjNcJpAYKkhX5E240yaPc7l2d2/Y=' (length=44)
'merchantID' => string '1358984622' (length=10)
'bankResponseCode' => string '' (length=0)
'ptnr_id' => string '1' (length=1)
'ppac_id' => string '74' (length=2)
'order_id' => string '58' (length=2)
'ccdt_id' => string '36' (length=2)
'transaction_type' => string 'c' (length=1)
'amount' => string '39.99' (length=5)
'currency' => string 'USD' (length=3)
'description' => string '' (length=0)
'status' => string 'successful' (length=10)
'refunded_tran_id' => string '68' (length=2)
'origin' => string 'system' (length=6)
'ts' => string '1413820738' (length=10)
'original_ts' => string '0' (length=1)
'status_code' => string '1' (length=1)
'payment_code' => string '700' (length=3)
'transactionID' => string '10001492E473E17' (length=15)
'invoiceID' => string '' (length=0)
'membershipID' => string '' (length=0)
'avsCode' => string '' (length=0)
'uniqueAccountId' => string '1358984622-3' (length=12)
'is_retrieval' => string '0' (length=1)
'status_message' => string 'Action completed succesfully' (length=28)
'pay_status' => string 'APPROVED' (length=8)
'status_severity' => int 2
'items' =>
array (size=1)
'type' => 'chargeback', 0 => string '20057' (length=5)
'no_partner_check 'item_id' => 'true',string '20057' (length=5)
'limit 'sub_id' => '1',string '41' (length=2)
), 'tracking_user' => string '4151729' (length=7)
'token' => 'some-token', 'email' => string 'wegwegwegwe@gewgweg.gew' (length=23)
'card_brand' => string 'VISA' (length=4)
'card_type' => string 'CREDIT' (length=6)
'card_category' => string 'CLASSIC' (length=7)
'bank_name' => string 'CITIBANK, N.A.' (length=14)
'bank_country_code' => string 'US' (length=2)
'bank_site' => string 'HTTPS://ONLINE.CITIBANK.COM/US/WELCOME.C' (length=40)
'bank_phone' => string '1-800-374-9700' (length=14)
'pass'request' => '130d04b80a4196857e47b254ebfbb53f',
array (size=4)
), 'cmd' => string 'transaction.list' (length=16)
'ts 'data' => 1426259842,
array (size=2)
'origin_ip 'type' => false,string 'chargeback' (length=10)
'errors 'no_partner_check' => NULL,string '1' (length=1)
) 'token' => string 'some-token' (length=26)
'pass' => string 'some-pass' (length=32)
'ts' => int 1429564285
'origin_ip' => string '93.87.220.184' (length=13)
'errors' => null
```
which is the same format as any other transaction.list call. All other input options, described in [[public/payment/partners/apidocs/transaction.list|Api documentation]], apply as well.
Omitting `no_partner_check` option, or passing it with value false, would return only charge back data for current partner.