Retrieving profile information
How to retrieve the profile information of a card.
To retrieve details associated with a card, use the GET /cards/{card_id}
operation with no further parameters.
An example of a request to retrieve card profile information is shown below.
curl --request GET \
--url https://sandbox.bond.tech/api/v0/cards/2742ff7f-7455-4066-8b45-ae12d3acca34 \
--header 'Authorization: <YOUR_AUTHORIZATION>' \
--header 'Identity: <YOUR_IDENTITY>'
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://sandbox.bond.tech/api/v0/cards/change_status/card_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request["Identity"] = '<YOUR_IDENTITY>'
request["Authorization"] = '<YOUR_AUTHORIZATION>'
response = http.request(request)
puts response.read_body
const options = {
method: 'PATCH',
headers: {
'Content-Type': 'application/json',
Identity: '<YOUR_IDENTITY>',
Authorization: '<YOUR_AUTHORIZATION>'
}
};
fetch('https://sandbox.bond.tech/api/v0/cards/change_status/card_id', options)
.then(response => console.log(response))
.catch(err => console.error(err));
import requests
url = "https://sandbox.bond.tech/api/v0/cards/change_status/card_id"
headers = {
"Content-Type": "application/json",
"Identity": "<YOUR_IDENTITY>",
"Authorization": "<YOUR_AUTHORIZATION>"
}
response = requests.request("PATCH", url, headers=headers)
print(response.text)
var client = new RestClient("https://sandbox.bond.tech/api/v0/cards/change_status/card_id");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Identity", "<YOUR_IDENTITY>");
request.AddHeader("Authorization", "<YOUR_AUTHORIZATION>");
IRestResponse response = client.Execute(request);
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://sandbox.bond.tech/api/v0/cards/change_status/card_id")
.patch(null)
.addHeader("Content-Type", "application/json")
.addHeader("Identity", "<YOUR_IDENTITY>")
.addHeader("Authorization", "<YOUR_AUTHORIZATION>")
.build();
Response response = client.newCall(request).execute();
An example of a response to a successful request to retrieve card profile information is shown below.
{
"card_id": "2742ff6a-7455-4066-8b45-ae12d3acca34",
"last_four": "6169",
"status": "Inactive",
"card_number": "tok_live_283734",
"cvv": "tok_live_p923u34", #
"expiry_date": "tok_live_oeueo932",
"card_account_id": "48aef94d-8473-47c8-943f-d3ac1745d8fa",
"pseudoDDANumbers": [
{
"pseudoDdaNumber": "1010101010101010"
}
]
}
For a complete specification and interactive examples, see Retrieving card information in the Bond API Reference.
Updated 16 days ago
Next Steps