Card Holder

All the necessary APIs to manage cardholder.

Get cardholder

Use this API to view a cardholder's profile.

curl --location 'https://business-api-testnet.palremit.com/core/issuing/cardholder/get_cardholder?cardholder_id=0e357341429042f8a3062ed0902a0040' \
--header 'Authorization: Bearer xxxxx'
Response

🟢 200: successful.

{
    "status": "success",
    "message": "Successful",
    "data": {
        "address": {
            "address": "4 Adedibu Street",
            "city": "Ikeji",
            "country": "Nigeria",
            "house_no": "4",
            "postal_code": "100011",
            "state": "Lagos"
        },
        "cardholder_id": "46b34249d13048f48cd621142573060e",
        "created_at": 1705741593,
        "email_address": "Johndoe@gmail.com",
        "first_name": "John",
        "identity_details": {
            "blacklisted": false,
            "date_of_birth": "1999-02-04",
            "first_name": "John",
            "gender": "Male",
            "id_no": "22222222222",
            "id_type": "NIGERIAN_NIN",
            "last_name": "Doe",
            "phone": "08012345678"
        },
        "is_active": true,
        "is_id_verified": true,
        "issuing_app_id": "f5853b70-ddb8-446d-b4d3-16c6e82604d0",
        "last_name": "Doe",
        "meta_data": {
            "any_key": "any_value"
        },
        "phone": "2348012345678"
    }
}
  • is_active (bool) : When this value is True this means the cardholder can be issued a card.

  • is_id_verified (bool) : Shows you whether the user has passed ID verification

if the user failed the ID verification step, is_active and is_id_verified will be set to False and you cannot issue the user a card.

🔴 400: Invalid Cardholder ID

{
    "status": "error",
    "message": "Invalid cardholder ID, there's no cardholder with this ID."
}

Get all cardholders

Use this API to view all cardholder's profiles.

curl --location 'https://business-api-testnet.palremit.com/core/issuing/cardholder/get_all_cardholder?page=1' \
--header 'Authorization: Bearer xxxxx'
Response

🟢 200: cardholder details fetched successfully.

{
  "status": "success",
  "message": "cardholder details fecthed successfully.",
  "data": {
    "address": {
      "address": "9 Jibowu Street",
      "city": "Aba North",
      "country": "nigeria",
      "house_no": "13",
      "lga": "Aba North",
      "postal_code": "1000242",
      "state": "Abia"
    },
    "cardholder_id": "d0658fedf8284207866d961e83fa",
    "created_at": 1659726281,
    "email_address": "Johndoe@gmail.com",
    "first_name": "John",
    "identity_details": {
      "blacklisted": false,
      "date_of_birth": "1999-02-04",
      "first_name": "John",
      "gender": "Male",
      "id_no": "22222222222",
      "id_type": "NIGERIAN_NIN",
      "last_name": "Doe",
      "phone": "08123456789"
    },
    "is_active": true,
    "is_id_verified": true,
    "issuing_app_id": "842352f4-8a6f-4a19-89c6-",
    "last_name": "Doe",
    "phone": "2348189691071"
  },
  "meta_data":{"user_id" : "zzz001658fedf8284207866d961e83fa"}
}

  • is_active (bool) : When this value is True this means the cardholder can be issued a card.

  • is_id_verified (bool) : Shows you whether the user has passed ID verification

if the user failed the ID verification step, is_active and is_id_verified will be set to False and you cannot issue the user a card.

🔴 400: Invalid Cardholder ID

{
    "status": "error",
    "message": "Invalid cardholder ID, there's no cardholder with this ID."
}

Create cardholder

Use this API to create a cardholder.

curl --location --request PUT 'https://business-api-testnet.palremit.com/core/issuing/cardholder/register_cardholder' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxx' \
--data-raw '{
    "first_name": "John",
    "last_name": "Doe",
    "address": {
        "address": "4 Adedibu Street",
        "city": "Karu",
        "state": "Abuja",
        "country": "Nigeria",
        "postal_code": "961105",
        "house_no": "4"
    },
    "phone": "08101111111",
    "email_address": "johndoe@gmail.com",
    "identity": {
        "id_type": "NIGERIAN_NIN",
        "id_no": "70450312123",
        "id_image": "https://url.kyc",
        "bvn": "22222222222"
        },
    "meta_data": {
        "any_key": "any_value"
    }
}'
Body
first_name : String *required
last_name : String *required
address : String *required
phone : Strings *required
email_address : String *required
identity : String *required
meta_data : String *required
Response

🟢 200: successful.

{
    "status": "success",
    "message": "Cardholder created successfully",
    "data": {
        "cardholder_id": "46b34249d13048f48cd621142573060e"
    }

🔴 400: Invalid Cardholder ID

{
    "status": "error",
    "message": "Invalid cardholder ID, there's no cardholder with this ID."
}

Delete cardholder

Use this API to delete a cardholder.

curl --location --request DELETE 'https://business-api-testnet.palremit.com/core/issuing/cardholder/delete_cardholder?cardholder_id=0e357341429042f8a3062ed0902a0040' \
--header 'Authorization: Bearer xxxxx'
Response

🟢 200: Successful.

{
    "status": "success",
    "message": "Successful",
    "data": {}
}

🔴 400: Invalid Cardholder ID

{
    "status": "error",
    "message": "Invalid cardholder ID, there's no cardholder with this ID."
}

Last updated