List Issued Card Transactions
Use the GET method to retrieve a list of transactions for a specific issued card.
card
ID of the issued card. String starting with card_.
start_date
Timestamp of the first transaction or later, in Unix time.
end_date
Timestamp of the last transaction or later, in Unix time.
min_amount
Transactions greater than a specific amount.
max_amount
Transactions smaller than a specific amount.
merchant_name_search
Filters the results to return only transactions that have this string as part of the name or location.
page_size
Number of results per page.
page_number
Page number to retrieve.
Code Samples
.NET
using System; namespace RapydApiRequestSample { class Program { static void Main(string[] args) { try { string card = "card_5004bc56594a31fb9a48b9b88c2d6f48"; string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/issuing/cards/{card}/transactions?min_amount=5"); Console.WriteLine(result); } catch (Exception e) { Console.WriteLine("Error completing request: " + e.Message); } } } }
JavaScript
const makeRequest = require('../../../../Utilities/JS/utilities').makeRequest; async function main() { try { const result = await makeRequest( 'GET', '/v1/issuing/cards/card_5004bc56594a31fb9a48b9b88c2d6f48/transactions?min_amount=5' ); console.log(result); } catch (error) { console.error('Error completing request', error); } }
PHP
<?php $path = $_SERVER['DOCUMENT_ROOT']; $path .= "/code_race_2020/Utilities/PHP/utilities.php"; include($path); try { $object = make_request('get', '/v1/issuing/cards/card_5004bc56594a31fb9a48b9b88c2d6f48/transactions?min_amount=5'); var_dump($object); } catch(Exception $e) { echo "Error: $e"; } ?>
Python
from pprint import pprint from utilities import make_request results = make_request(method='get', path=f'/v1/issuing/cards/card_5004bc56594a31fb9a48b9b88c2d6f48/transactions?min_amount=5') pprint(results)
/v1/issuing/cards/:card/transactions
List Issued Card Transactions
curl -X get 'https://sandboxapi.rapyd.net/v1/issuing/cards/card_d8903df251a06a5dfa7630e0f6389fa4/transactions?min_amount=15' \ -H 'access_key: your-access-key-here' \ -H 'Content-Type: application/json' \ -H 'salt: your-random-string-here' \ -H 'signature: your-calculated-signature-here' \ -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "b0d67fdd-bba9-41c7-819e-15e0bc7df988" }, "data": [ { "id": "cit_37f79fdeede4951761811f3bf64444e2", "amount": 17, "currency": "USD", "created_at": 1618387804, "card_id": "card_d8903df251a06a5dfa7630e0f6389fa4", "merchant_category_code": "", "merchant_name_location": "TEST MERCHANT", "auth_code": "3KIWSH", "bin": "523489", "last4": "1271", "issuing_txn_type": "SALE", "pos_entry_mode": "", "systems_trace_audit_number": "", "retrieval_reference_number": "0AC275E377AD", "original_transaction_id": "", "original_txn_amount": 50, "original_txn_currency": "USD", "fx_rate": null, "card_program": "", "wallet_transaction_id": "wt_6236d909ee0fd6025237d82cf40d292b", "authorization_approved_by": "", "card_authorization": "cardauth_ea9f3de4eb5f04e1f1f5a06afbd16f2a" } ] }