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' \ --data-raw '{ "ewallet_contact": "cont_cb60ec28c2f0bdfc621cfc21270c20ce", "card_program": "cardprog_b027c85a66ebebb2e094bca626d5ae97" }'{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "af5b7379-2e12-45e8-a818-accffc4dca51" }, "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": "INA", "card_id": "card_0393b8437d759c5fb491d427b0000322", "assigned_at": 1760011681, "activated_at": 0, "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" }, "card_number": "5348330641217634", "cvv": "547", "expiration_month": "10", "expiration_year": "28", "bin": "534833", "sub_bin": "64" } }