To save a tokenized payment card, a token must get created first. The token is necessary for a session card and for saving a payment card on a customer's master account.
/cnbs/v1/nuvei/token
POST
cURL
curl -X POST "https://<<your.server.here>>/cnbs/v1/nuvei/token?sap-client=800&sap-language=EN&apiid=CNBSMV01R_NUVEI" -H "accept: application/json" -H "cnbssysid: W1B//vRKywJ2sPUVQG4CQ16Sf9XSN+N4Fkc6Bfmky3k=" -H "authorization: Basic Q05CU0FQSUlDRjpjbmJzNHlvdTE=" "Content-Type: application/json" -d "{ \"payer_data\": { \"customer_number\": \"3000\", \"company_code\": \"3000\" }, \"account_type\": \"cc\"}"
{
"access_token": "000C29F0318A1FD082C21372F08C2B84",
"valid_to": 20250425000450,
"cred": {
"credentials": "fc0879e6-b3af-4638-a85e-ab13bafdd55f",
"expiration": "2025-03-26T07:34:50.8732704Z",
"site_url": "https://api.dev.nuveiconnect.com",
"gateway": "payaconnect",
"currency": "USD",
"billing_info": {
"name": "Smith Inc. LLC",
"email_address": "demo@cnbssoftware.com",
"city": "MAYWOOD",
"address": "1 2800 South 25th Ave",
"state": "IL",
"zip": "60153",
"country": "US",
"language": "en",
"account_type": "cc",
"profile_id": "11f0001eb6a9a1848808d175"
}
},
"status": {
"message_type": "S",
"message_identification": "/CNBS/X_API",
"message_number": 10,
"message_line_string": "Request successfully processed"
}
}