Create a Transaction

You can use this method to create a transaction from your application or interface. This method receives and retains value payment data for a period defined in the “ttl” key and returns a transaction identifier with no sensitive data.

POST /V1/request

curl -X POST https://api.firstoken.co/transactions/requests 
-H 'x-api-key: YOUR_API_KEY' 
-H "Content-Type: application/json"
Example JSON request body
{
    "chd": {
        "card": "4242424242424242",
        "name": "Jhon Smith",
        "exp": "01/25",
        "cvv": "1234"
    },
    "amount": 100,
    "currency": "USD",
    "additional_info": {
        "phone": "(555) 555-1234"
    },
    "ttl": 300
}
Example JSON response body
{
    "status_code": 200,
    "status": "success",
    "desc": "Success",
    "data": {
        "id": {"4cae6bf0-d245-408e-8f6a-9e91f23396e6"}
    }
}

Last updated

Was this helpful?