Skip to main content

Documentation

Issue Card

Issue a card to a wallet contact.

Note

  • Clients with PCI certification can handle personal identifying information for cards.

  • The contact must have an address and a country.

Code Samples
    • .NET

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

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

  • Issue Card

  • curl -X post
    https://sandboxapi.rapyd.net/v1/issuing/cards
    -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'
    -d '{
        "ewallet_contact": "cont_c34bd6bfd9575f6f7b06647999a93126",
        "card_program": "cardprog_b027c85a66ebebb2e094bca626d5ae97"
    }
    '
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "3e8afe5a-77c5-4d22-8f77-5e35a7fde411"
        },
        "data": {
            "id": "ci_e8ee515509f04c5c7a13c20dcc7a3c7b",
            "ewallet_contact": {
                "id": "cont_c34bd6bfd9575f6f7b06647999a93126",
                "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": "+14155551234",
                "email": "johndoe@rapyd.net",
                "identification_type": "PA",
                "identification_number": "1234567890",
                "date_of_birth": "2000-11-22",
                "country": "US",
                "nationality": "FR",
                "address": {
                    "id": "address_0369eae8bddfc70521f9407212a7b675",
                    "name": "John Doe",
                    "line_1": "123 Main Street",
                    "line_2": "",
                    "line_3": "",
                    "city": "Anytown",
                    "state": "CA",
                    "country": "US",
                    "zip": "12345",
                    "phone_number": "",
                    "metadata": {},
                    "canton": "",
                    "district": "",
                    "created_at": 1606059282
                },
                "ewallet": "ewallet_755b0fd11fd22b33328fff7d30f3ce30",
                "created_at": 1606059282,
                "metadata": {},
                "business_details": null,
                "compliance_profile": 0,
                "verification_status": "not verified",
                "send_notifications": false,
                "mothers_name": ""
            },
            "status": "INA",
            "card_id": "card_34d9a74d81ba015f96a8066938d5fd37",
            "assigned_at": 1615449817,
            "activated_at": 0,
            "metadata": {},
            "country_iso_alpha_2": "BR",
            "created_at": 1615449817,
            "blocked_reason": "none",
            "card_tracking_id": null,
            "card_program": "cardprog_b027c85a66ebebb2e094bca626d5ae97",
            "card_number": "5320575303040441",
            "cvv": "720",
            "expiration_month": "03",
            "expiration_year": "24",
            "bin": "532057",
            "sub_bin": "30"
        }
    }