Page cover image

Cards Details

This endpoint is used to get details of a card without full card number

POST {{base_url}}/business/vcard-details

Headers

Name
Type
Description

Authorization*

String

SECRET_KEY

Request Body

Name
Type
Description

cardid*

Sting

Card ID

Take a look at how you might do this:

curl --location '{{base_url}}/business/vcard-details' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer SECRET_KEY' \
--data '{
    "cardid": "021109a9-4bfa-4321-02ca-dc91e9a7b4"
}'

Sample response

{
    "status": true,
    "message": "Card info retrieved",
    "billingAddress": {
        "line1": "Oyo State",
        "line2": "",
        "city": "Ibadan",
        "state": "Oyo",
        "country": "NG",
        "postalCode": "201231"
    },
    "is2FAEnrolled": "",
    "current_bal": 112.27,
    "available_bal": 112.27,
    "cardicon": "https://oacloud.oneappgo.com/media_library/oneapp-personal/65b0dc7a31f253.37195213.png",
    "responsecode": "01",
    "cardstatus": "active",
    "holdertype": "individual",
    "cardbrand": "MASTERCARD",
    "cardtype": "Virtual",
    "cardpan": "583007********0000",
    "expiryyr": "27",
    "expirymnt": "06",
    "holdername": "John Doe",
    "usertype": "partner",
    "customerid": "01057-e48b-4e45-ddc1-0c91ec1988",
    "card_id": "021109a9-4bfa-4321-02ca-dc91e9a7b4",
    "currency": "USD",
    "created_at": "Sat, 22-06-2024 09:08 pm",
    "lastupdate": "Sat, 22-06-2024 09:08 pm",
    "dstatus": "1",
    "defaultpin": "****",
    "cvv": ""
}

Last updated

Was this helpful?