Skip to main content

Documentation

Activate Issued Card Using API

Activate a card that was issued via the Rapyd issuing platform.

This method triggers the Issued Card Activated Webhook.

Note

Clients with PCI certification can handle personal identifying information for cards, such as card number.

    • card

    • The card token, which is a string starting with 'card_'. If the client is PCI-certified, you can use the actual card number.

Code Samples
    • .NET

      • using System;
        using System.Text.Json;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
                        var requestObj = new
                        {
                            card = "card_0f1adc892adfd1885ab8a5236f8bf4b2",
        
                        };
        
                        string request = JsonSerializer.Serialize(requestObj);
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("POST", "/v1/issuing/cards/activate", request);
                        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 body = {
              card: 'card_0f1adc892adfd1885ab8a5236f8bf4b2'
            };
            const result = await makeRequest('POST', '/v1/issuing/cards/activate', body);
        
            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);
        $body = [
            "card" => "card_0f1adc892adfd1885ab8a5236f8bf4b2"
        ];
        try {
            $object = make_request('post', '/v1/issuing/cards/activate', $body);
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

      • from pprint import pprint
        
        from utilities import make_request
        
        card = {
            "card": "card_0f1adc892adfd1885ab8a5236f8bf4b2"
        }
        
        results = make_request(method='post', path=f'/v1/issuing/cards/activate', body=card)
        pprint(results)
  • /v1/issuing/cards/activate

  • Activate Issued Card by Card ID

  • curl -X post
    'https://sandboxapi.rapyd.net/v1/issuing/cards/activate' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
    	"card": "card_a5429bdb6c529008ed5b409e5929b606"
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "837443d4-98b0-40b8-9870-28bc76e63702"
        },
        "data": {
            "id": "ci_0b164db21d9c513e2b9d2dac77a3014a",
            "ewallet_contact": {
                "id": "cont_cb60ec28c2f0bdfc621cfc21270c20ce",
                "first_name": "John",
                "last_name": "Doe",
                "middle_name": "",
                "second_last_name": "",
                "gender": "not_applicable",
                "marital_status": "not_applicable",
                "house_type": "",
                "contact_type": "personal",
                "phone_number": "+14155551237",
                "email": "",
                "identification_type": "",
                "identification_number": "",
                "issued_card_data": {
                    "preferred_name": "",
                    "transaction_permissions": "",
                    "role_in_company": ""
                },
                "date_of_birth": "2000-12-15",
                "country": "NG",
                "nationality": null,
                "address": {
                    "id": "address_8dc883799f2fcb5adb92bf77b6bc85b7",
                    "name": "John Doe",
                    "line_1": "123 Main Street",
                    "line_2": "",
                    "line_3": "",
                    "city": "Anytown",
                    "state": "",
                    "country": "",
                    "zip": "",
                    "phone_number": "",
                    "metadata": {},
                    "canton": "",
                    "district": "",
                    "created_at": 1755679320
                },
                "ewallet": "ewallet_3801e782955b29955445586a2405a5db",
                "created_at": 1612104554,
                "metadata": {},
                "business_details": null,
                "compliance_profile": 0,
                "verification_status": "not verified",
                "send_notifications": false,
                "mothers_name": ""
            },
            "status": "ACT",
            "card_id": "card_a5429bdb6c529008ed5b409e5929b606",
            "assigned_at": 1760012427,
            "activated_at": 1760012450,
            "metadata": {},
            "country_iso_alpha_2": "BR",
            "created_at": 1760012427,
            "blocked_reason": "none",
            "card_tracking_id": null,
            "card_program": "cardprog_b027c85a66ebebb2e094bca626d5ae97",
            "public_details": {
                "bin": "517413",
                "last4": "3157",
                "sub_bin": "76",
                "expiration": "1028"
            }
        }
    }
  • Activate Issued Card by Card Number

  • curl -X post
    'https://sandboxapi.rapyd.net/v1/issuing/cards/activate' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
    	"card": "5348330641217634"
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "fd290ce0-f02d-4274-9d20-db8558f14605"
        },
        "data": {
            "id": "ci_d4fa9d7f43819d92c66125e2a7579fe6",
            "ewallet_contact": {
                "id": "cont_cb60ec28c2f0bdfc621cfc21270c20ce",
                "first_name": "John",
                "last_name": "Doe",
                "middle_name": "",
                "second_last_name": "",
                "gender": "not_applicable",
                "marital_status": "not_applicable",
                "house_type": "",
                "contact_type": "personal",
                "phone_number": "+14155551237",
                "email": "",
                "identification_type": "",
                "identification_number": "",
                "issued_card_data": {
                    "preferred_name": "",
                    "transaction_permissions": "",
                    "role_in_company": ""
                },
                "date_of_birth": "2000-12-15",
                "country": "NG",
                "nationality": null,
                "address": {
                    "id": "address_8dc883799f2fcb5adb92bf77b6bc85b7",
                    "name": "John Doe",
                    "line_1": "123 Main Street",
                    "line_2": "",
                    "line_3": "",
                    "city": "Anytown",
                    "state": "",
                    "country": "",
                    "zip": "",
                    "phone_number": "",
                    "metadata": {},
                    "canton": "",
                    "district": "",
                    "created_at": 1755679320
                },
                "ewallet": "ewallet_3801e782955b29955445586a2405a5db",
                "created_at": 1612104554,
                "metadata": {},
                "business_details": null,
                "compliance_profile": 0,
                "verification_status": "not verified",
                "send_notifications": false,
                "mothers_name": ""
            },
            "status": "ACT",
            "card_id": "card_0393b8437d759c5fb491d427b0000322",
            "assigned_at": 1760011681,
            "activated_at": 1760012238,
            "metadata": {},
            "country_iso_alpha_2": "BR",
            "created_at": 1760011681,
            "blocked_reason": "none",
            "card_tracking_id": null,
            "card_program": "cardprog_b027c85a66ebebb2e094bca626d5ae97",
            "public_details": {
                "bin": "534833",
                "last4": "7634",
                "sub_bin": "64",
                "expiration": "1028"
            }
        }
    }