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": []
}
Cartes
Tokeniser une carte
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": []
}
Cet endpoint tokenise une carte de manière sécurisée en remplaçant ses données sensibles par un jeton unique. Ce jeton peut être utilisé pour de futures transactions, ce qui garantit la conformité aux normes de sécurité (par exemple, PCI DSS) et réduit la nécessité de stocker ou de manipuler des informations de carte sensibles.
Autorisations
En-têtes
Jeton d'accès Bearer pour l'authentification. Ce jeton s'obtient via les endpoints Obtenir un jeton d'accès ou Actualiser le jeton d'accès.
Corps
application/json
Dernière modification le 22 novembre 2026

