curl --request POST \
--url https://api.stage.localpayment.com/api/card \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"number": "4000000000000002",
"cvv": "123",
"expirationMonth": "11",
"expirationYear": "2028"
}
'
{
"card": {
"token": "xsWMaLcYjS3L11aBwxl465%2F2d8J85FXPAaBFIKfr0Fx%3D",
"bin": "400000",
"brand": "VISA",
"country": "US",
"name": "John Doe",
"last4": "0002",
"expirationYear": 2028,
"expirationMonth": 11
},
"errors": []
}
Cards
Tokenize Card
POST
/
api
/
card
curl --request POST \
--url https://api.stage.localpayment.com/api/card \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"number": "4000000000000002",
"cvv": "123",
"expirationMonth": "11",
"expirationYear": "2028"
}
'
{
"card": {
"token": "xsWMaLcYjS3L11aBwxl465%2F2d8J85FXPAaBFIKfr0Fx%3D",
"bin": "400000",
"brand": "VISA",
"country": "US",
"name": "John Doe",
"last4": "0002",
"expirationYear": 2028,
"expirationMonth": 11
},
"errors": []
}
This endpoint securely tokenizes a card, replacing sensitive card details with a unique token. The token can be used for future transactions, ensuring compliance with security standards (e.g., PCI DSS) and reducing the need to store or handle sensitive card information.
Authorizations
Headers
Bearer access token for authentication. This token is obtained from the Get Access Token or Refresh Access Token endpoints.
Body
application/json
Last modified on November 10, 2026

