POST
/
v1
/
tokens
import requests

client_id = <YOUR CLIENT ID>
public_key = <YOUR CLIENT TOKEN>

request = requests.post('https://api.malga.io/v1/tokens', headers={
    "X-Client-Id": client_id,
    "X-Api-Key": publick_key
  }, json={
  "cardHolderName": "JOSE DAS NEVES",
  "cardNumber": "4019598346009339",
  "cardCvv": "123",
  "cardExpirationDate": "12/2026"
})
print(request.json().get('tokenId'))
{
  "tokenId": "cc0b1e41-2936-45c5-947f-93995ffcdc00"
}

Authorizations

X-Client-Id
string
header
required
X-Api-Key
string
header
required

Body

application/json
Tokenizar

The body is of type object.

Response

201
application/json
Created

The response is of type object.