const response = await fetch('https://service.pcibooking.net/api/payments/paycard/tempsession', {
method: 'POST',
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
const sessionToken = await response.json();
console.log(sessionToken);
import requests
response = requests.post(
'https://service.pcibooking.net/api/payments/paycard/tempsession',
headers={
'Authorization': 'APIKEY your-api-key'
}
)
session_token = response.json()
print(session_token)
"1a75885fabe443588488de7d7e7f9980"
Empty response body.
Authentication failed: the API key, session token or access token is missing or was not accepted.
See "Authentication and Permission Failures" on the Error Handling page.
Authentication
Start a Temporary Session
Start a new session for capturing a customer’s payment card.
POST
/
api
/
payments
/
paycard
/
tempsession
const response = await fetch('https://service.pcibooking.net/api/payments/paycard/tempsession', {
method: 'POST',
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
const sessionToken = await response.json();
console.log(sessionToken);
import requests
response = requests.post(
'https://service.pcibooking.net/api/payments/paycard/tempsession',
headers={
'Authorization': 'APIKEY your-api-key'
}
)
session_token = response.json()
print(session_token)
"1a75885fabe443588488de7d7e7f9980"
Empty response body.
Authentication failed: the API key, session token or access token is missing or was not accepted.
See "Authentication and Permission Failures" on the Error Handling page.
Authentication Guide
Learn about session token authentication
Error Responses
| Code | HTTP Status | Condition |
|---|---|---|
| -150 | 500 | Memory cache insert failed |
Parameters
Authentication
API key only. This endpoint does not accept access tokens or session tokens.string
required
Your API key prefixed with
APIKEY. Example: APIKEY your-api-key. The x-pcibooking-api-key header is also accepted. See the Authentication guide.const response = await fetch('https://service.pcibooking.net/api/payments/paycard/tempsession', {
method: 'POST',
headers: {
'Authorization': 'APIKEY your-api-key'
}
});
const sessionToken = await response.json();
console.log(sessionToken);
import requests
response = requests.post(
'https://service.pcibooking.net/api/payments/paycard/tempsession',
headers={
'Authorization': 'APIKEY your-api-key'
}
)
session_token = response.json()
print(session_token)
Response
"1a75885fabe443588488de7d7e7f9980"
Empty response body.
Authentication failed: the API key, session token or access token is missing or was not accepted.
See "Authentication and Permission Failures" on the Error Handling page.

