Get Transactions (last 100)

Example Request

<?php
//Set up API path and method
$base_url = "https://app.paykickstart.com/api/";
$route = "transactions";
$url = $base_url . $route;
$post = false;

//Create request data string
$data = http_build_query([
    'auth_token' => '3A0CKDSETE',
    'created_at' => 1529316446
   
]);

//Execute cURL request
$ch = curl_init();
if ($post) {
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
} else {
    $url = $url . "?" . $data;
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$output = curl_exec($ch);
curl_close($ch);

//Output Response
echo json_decode($output);

Example Response

{  
   "transactions":[  
      {  
         "id":25324,
         "pk_id":"PK-TKE3MQN2WO",
         "purchase_id":10904,
         "buyer_ip":"188.64.175.190",
         "amount":"10.00",
         "coupon_code":null,
         "coupon_type":null,
         "coupon_rate":null,
         "shipping_charge":"0.00",
         "base_currency_conversion_id":61679,
         "processor":"stripe",
         "processor_data":"{\"id\":\"ch_1CudlTGi3a8JpZeBZ0iAnsdO\",\"object\":\"charge\",\"amount\":1000,\"amount_refunded\":0,\"application\":\"ca_6mCGmjSlaUQxHChZL3QrUPfHrKNWTw83\",\"application_fee\":null,\"balance_transaction\":\"txn_1CudlTGi3a8JpZeBkfTXGoIE\",\"captured\":true,\"created\":1533204639,\"currency\":\"usd\",\"customer\":\"cus_DLKQJl1hKZgW0c\",\"description\":\"SEO Snapshot Testing - SEO Snapshot - Main (copied) (copied)\",\"destination\":null,\"dispute\":null,\"failure_code\":null,\"failure_message\":null,\"fraud_details\":{},\"invoice\":null,\"livemode\":false,\"metadata\":{},\"on_behalf_of\":null,\"order\":null,\"outcome\":{\"network_status\":\"approved_by_network\",\"reason\":null,\"risk_level\":\"normal\",\"seller_message\":\"Payment complete.\",\"type\":\"authorized\"},\"paid\":true,\"receipt_email\":null,\"receipt_number\":null,\"refunded\":false,\"refunds\":{\"object\":\"list\",\"data\":{},\"has_more\":false,\"total_count\":0,\"url\":\"\\\/v1\\\/charges\\\/ch_1CudlTGi3a8JpZeBZ0iAnsdO\\\/refunds\"},\"review\":null,\"shipping\":null,\"source\":{\"id\":\"card_1CudlRGi3a8JpZeBU3L5qwoJ\",\"object\":\"card\",\"address_city\":null,\"address_country\":null,\"address_line1\":null,\"address_line1_check\":null,\"address_line2\":null,\"address_state\":null,\"address_zip\":null,\"address_zip_check\":null,\"brand\":\"Visa\",\"country\":\"US\",\"customer\":\"cus_DLKQJl1hKZgW0c\",\"cvc_check\":\"pass\",\"dynamic_last4\":null,\"exp_month\":1,\"exp_year\":2022,\"fingerprint\":\"fiQQPgJup0disG8o\",\"funding\":\"credit\",\"last4\":\"4242\",\"metadata\":{},\"name\":\"424242\",\"tokenization_method\":null},\"source_transfer\":null,\"statement_descriptor\":\"SEO Snapshot Testing\",\"status\":\"succeeded\",\"transfer_group\":null}",
         "refund_processor_data":null,
         "gateway_id":216,
         "paypal_txn_id":null,
         "is_refund":0,
         "is_refund_pending":0,
         "refund_pending_cleared_at":null,
         "refund_pending_check_reserved":0,
         "is_approved":1,
         "is_recovered":0,
         "is_pending":0,
         "pending_cleared_at":null,
         "pending_check_reserved":0,
         "pending_email_sent":0,
         "dispute_status":null,
         "failed_email_sent":0,
         "commission_refunded":0,
         "cc_type":"Visa",
         "cc_month":1,
         "cc_year":2022,
         "cc_last4":4242,
         "m_p_user_id":null,
         "cc_holder_name":"424242",
         "refund_end_date":"2018-09-01 10:09:10",
         "created_at":"2018-08-02 10:10:37",
         "refund_date":null,
         "updated_at":"2018-08-02 10:10:40",
         "tax_transaction_id":null,
         "tax_amount":null,
         "tax_percent":null,
         "buyer_tax_number":null,
         "buyer_tax_name":null,
         "landing_page":null
      },
      {  
         "id":25323,
         "pk_id":"PK-TMWQV9RXL4",
         "purchase_id":10903,
         "buyer_ip":"188.64.175.190",
         "amount":"10.00",
         "coupon_code":null,
         "coupon_type":null,
         "coupon_rate":null,
         "shipping_charge":"0.00",
         "base_currency_conversion_id":61679,
         "processor":"testmode",
         "processor_data":"testmode",
         "refund_processor_data":null,
         "gateway_id":null,
         "paypal_txn_id":null,
         "is_refund":0,
         "is_refund_pending":0,
         "refund_pending_cleared_at":null,
         "refund_pending_check_reserved":0,
         "is_approved":1,
         "is_recovered":0,
         "is_pending":0,
         "pending_cleared_at":null,
         "pending_check_reserved":0,
         "pending_email_sent":0,
         "dispute_status":null,
         "failed_email_sent":0,
         "commission_refunded":0,
         "cc_type":null,
         "cc_month":null,
         "cc_year":null,
         "cc_last4":"000",
         "m_p_user_id":null,
         "cc_holder_name":null,
         "refund_end_date":"2018-09-01 09:09:59",
         "created_at":"2018-08-02 09:59:39",
         "refund_date":null,
         "updated_at":"2018-08-02 09:59:39",
         "tax_transaction_id":null,
         "tax_amount":null,
         "tax_percent":null,
         "buyer_tax_number":null,
         "buyer_tax_name":null,
         "landing_page":null
      },
      [..]
}

Fetches the last 100 transactions (or 100 transactions from the created_at date) for the associated account.

ARGUMENTS

auth_token

The Paykickstart vendor’s API Key. This field is required.


created_at

The start date from when to fetch the transactions in UNIX timestamp format. This field is optional.