Skip to main content

Documentation

Retrieve Issued Card Transaction Details

Use the GET method to retrieve details of a specific transaction from a specific issued card.

    • card

    • ID of the issued card. String starting with card_.

    • transaction

    • ID of the card transaction. String starting with cit_.

Code Samples
    • .NET

      • using System;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
        
                        string card = "card_5004bc56594a31fb9a48b9b88c2d6f48";
                        string transaction = "cit_8d8a34d280ff02b0bd218ac6ede21931";
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/issuing/cards/{card}/transactions/{transaction}");
        
                        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/cit_8d8a34d280ff02b0bd218ac6ede21931'
            );
        
            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/cit_8d8a34d280ff02b0bd218ac6ede21931');
            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/cit_8d8a34d280ff02b0bd218ac6ede21931')
        pprint(results)
        
  • /v1/issuing/cards/:card/transactions/:transaction

  • Retrieve Issued Card Transaction

  • curl -X get
    https://sandboxapi.rapyd.net/v1/issuing/cards/card_d8903df251a06a5dfa7630e0f6389fa4/transactions/cit_862d97478bf33c9b0c6056d7f8a55262
    -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": "0d46f0ea-7b94-4e94-b450-4d73e20f32ae"
        },
        "data": {
            "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": ""
        }
    }