Skip to main content

Documentation

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=5
    -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": "1ea2effa-e039-40e7-a5db-a502a64ad023"
        },
        "data": [
            {
                "id": "cit_08693963613e325012f2ecbafcbae94a",
                "amount": 5,
                "currency": "USD",
                "created_at": 1609767699,
                "card_id": "card_d8903df251a06a5dfa7630e0f6389fa4",
                "merchant_category_code": "",
                "merchant_name_location": "TEST MERCHANT",
                "auth_code": "13QVNV",
                "bin": "523489",
                "last4": "1271",
                "issuing_txn_type": "SALE",
                "pos_entry_mode": "",
                "systems_trace_audit_number": "",
                "retrieval_reference_number": "E347B32C01D5",
                "original_transaction_id": "",
                "original_txn_amount": null,
                "original_txn_currency": "",
                "fx_rate": null,
                "card_program": "",
                "wallet_transaction_id": "wt_ed450816f2c67a13e39888be8c533679"
            },
            {
                "id": "cit_862d97478bf33c9b0c6056d7f8a55262",
                "amount": 5,
                "currency": "USD",
                "created_at": 1608796554,
                "card_id": "card_d8903df251a06a5dfa7630e0f6389fa4",
                "merchant_category_code": "",
                "merchant_name_location": "TEST MERCHANT",
                "auth_code": "",
                "bin": "523489",
                "last4": "1271",
                "issuing_txn_type": "REFUND",
                "pos_entry_mode": "",
                "systems_trace_audit_number": "",
                "retrieval_reference_number": "",
                "original_transaction_id": "",
                "original_txn_amount": null,
                "original_txn_currency": "",
                "fx_rate": null,
                "card_program": "",
                "wallet_transaction_id": ""
            }
        ]
    }