Reissuing a card

To reissue a card, use the POST /cards/reissue/{card_id} operation and provide parameters, as shown in the table below.

Parameter

Description

reissue_type
required

Type of reissue:
same_card_number—issue a card with the same card number as the old card.
same_card_number_updated_expiry—issue a card with the same card number but a new expiry date.
new_card_number—issue a card with a different number from the old card.

An example of a request to reissue the card ID 2742ff6a-7455-4066-8b45-ae12d3acca34 with the same card number but with a new expiry date is shown below.

curl --request POST \
  --url https://sandbox.bond.tech/api/v0/cards/reissue/2742ff6a-7455-4066-8b45-ae12d3acca34 \
  --header 'Authorization: YOUR-AUTHORIZATION' \
  --header 'Content-Type: application/json' \
  --header 'Identity: YOUR-IDENTITY'
  {
  "reissue_type": "same_card_number_updated_expiry"
}
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://sandbox.bond.tech/api/v0/cards/reissue/2742ff6a-7455-4066-8b45-ae12d3acca34")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request["Identity"] = 'YOUR-IDENTITY'
request["Authorization"] = 'YOUR-AUTHORIZATION'
request.body = "{\"reissue_type\":\"same_card_number_updated_expiry\"}"
response = http.request(request)
puts response.read_body
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Identity: 'YOUR-IDENTITY',
    Authorization: 'YOUR-AUTHORIZATION'
  },
  body: JSON.stringify({reissue_type: 'same_card_number_updated_expiry'})
};

fetch('https://sandbox.bond.tech/api/v0/cards/reissue/2742ff6a-7455-4066-8b45-ae12d3acca34', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
import requests

url = "https://sandbox.bond.tech/api/v0/cards/reissue/2742ff6a-7455-4066-8b45-ae12d3acca34"

payload = {"reissue_type": "same_card_number_updated_expiry"}
headers = {
    "Content-Type": "application/json",
    "Identity": "YOUR-IDENTITY",
    "Authorization": "YOUR-AUTHORIZATION"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)
var client = new RestClient("https://sandbox.bond.tech/api/v0/cards/reissue/2742ff6a-7455-4066-8b45-ae12d3acca34");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Identity", "YOUR-IDENTITY");
request.AddHeader("Authorization", "YOUR-AUTHORIZATION");
request.AddParameter("application/json", "{\"reissue_type\":\"same_card_number_updated_expiry\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"reissue_type\":\"same_card_number_updated_expiry\"}");
Request request = new Request.Builder()
  .url("https://sandbox.bond.tech/api/v0/cards/reissue/2742ff6a-7455-4066-8b45-ae12d3acca34")
  .post(body)
  .addHeader("Content-Type", "application/json")
  .addHeader("Identity", "YOUR-IDENTITY")
  .addHeader("Authorization", "YOUR-AUTHORIZATION")
  .build();

Response response = client.newCall(request).execute();

An example of a successful response to a request to reissue a card is shown below.

{
        "card_id": "2742ff6a-7455-4066-8b45-ae12d3acca34",
        "last_four": "6169",
        "status": "Reissued"
}

For a complete specification and interactive examples, see Reissue a card.


Did this page help you?