Simple Tokenization

Simple Tokenization

You can tokenize any valid credit card. The Tokenization process receives a credit card number and other additional fields via attributes.

POST /v1/tokenization/simple

curl -X POST https://api.firstoken.co/v1/tokenization/simple
-H 'x-api-key: YOUR_API_KEY'
-H "Content-Type: application/json"
Example JSON Request Body
{
    "chd": [{
            "card": "4242424242424242",
            ”name":"Steve Jobs",
            "exp":"01/27"
        },
        {
            "card": "5555555555554444",
            "name":"Bill Gates",
            "exp":"10/28"
        }
    ],
    "tags": ["OS","2020"],
    "scheme":"1"
}
Example JSON Response
{
    "status_code": 200,
    "status": "success",
    "desc": "Success",
    "data": {
        "tokens": [{
                "card": "424242******4242",
                "token": "4242428805134242",
                "tags": ["OS","2020" ],
                "scheme": 1,
                "status": 1,
                "created_by": { "name": "Jhon Smith" },
                "createdAt": "2020-02-07T14:22:58.015Z"
            },
            {
                "card": "555555******4444",
                "token": "5555557860534444",
                "tags": ["OS","2020"],
                "scheme": "1",
                "status": 1,
                "created_by": { "name": "Jhon Smith"},
                "createdAt": "2020-02-07T14:43:18.405Z"
            }]
        }
}

Last updated

Was this helpful?