const credentialsId = 'my-googlepay';
const response = await fetch(`https://service.pcibooking.net/api/eWalletAccounts/${credentialsId}`, {
method: 'PUT',
headers: {
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'GooglePay',
MerchantId: 'BCR2DN4T7654321',
MerchantName: 'My Store'
})
});
console.log(response.status); // 200 on success
import requests
credentials_id = 'my-googlepay'
response = requests.put(
f'https://service.pcibooking.net/api/eWalletAccounts/{credentials_id}',
headers={
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
json={
'name': 'GooglePay',
'MerchantId': 'BCR2DN4T7654321',
'MerchantName': 'My Store'
}
)
print(response.status_code) # 200 on success
Credentials stored successfully. No content returned.
{
"code": -125,
"message": "Bad input data",
"moreInfo": "...",
"errorList": null
}
Library Account Management
Store Digital Wallet Credentials
Store credentials for a digital wallet payment method.
PUT
/
api
/
eWalletAccounts
/
{credentialsId}
const credentialsId = 'my-googlepay';
const response = await fetch(`https://service.pcibooking.net/api/eWalletAccounts/${credentialsId}`, {
method: 'PUT',
headers: {
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'GooglePay',
MerchantId: 'BCR2DN4T7654321',
MerchantName: 'My Store'
})
});
console.log(response.status); // 200 on success
import requests
credentials_id = 'my-googlepay'
response = requests.put(
f'https://service.pcibooking.net/api/eWalletAccounts/{credentials_id}',
headers={
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
json={
'name': 'GooglePay',
'MerchantId': 'BCR2DN4T7654321',
'MerchantName': 'My Store'
}
)
print(response.status_code) # 200 on success
Credentials stored successfully. No content returned.
{
"code": -125,
"message": "Bad input data",
"moreInfo": "...",
"errorList": null
}
Payments Library Credentials Guide
Configure credentials for Payments Library integrations
AllowedeWalletAccountIds field when creating a session.
If you store credentials with an ID that already exists, the new credentials overwrite the existing ones. This cannot be undone.
Error Responses
| Code | HTTP Status | Condition |
|---|---|---|
-1003 | 401 | API key is missing or invalid, or user type is not Booker. |
-125 | 400 | Request body failed validation (e.g. invalid or missing digital wallet name, malformed credential data). |
Parameters
Headers
string
required
Your API key prefixed with
APIKEY. Example: APIKEY your-api-key. See the Authentication guide.Path Parameters
string
required
The unique ID to assign to this set of credentials. You reference this ID when creating a Payments Library session.
Request Body
string
required
The digital wallet name (e.g.
GooglePay, ApplePay). Retrieve the full list of supported names using the Retrieve Credential Structure endpoint.const credentialsId = 'my-googlepay';
const response = await fetch(`https://service.pcibooking.net/api/eWalletAccounts/${credentialsId}`, {
method: 'PUT',
headers: {
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'GooglePay',
MerchantId: 'BCR2DN4T7654321',
MerchantName: 'My Store'
})
});
console.log(response.status); // 200 on success
import requests
credentials_id = 'my-googlepay'
response = requests.put(
f'https://service.pcibooking.net/api/eWalletAccounts/{credentials_id}',
headers={
'Authorization': 'APIKEY your-api-key',
'Content-Type': 'application/json'
},
json={
'name': 'GooglePay',
'MerchantId': 'BCR2DN4T7654321',
'MerchantName': 'My Store'
}
)
print(response.status_code) # 200 on success
Response
Credentials stored successfully. No content returned.
{
"code": -125,
"message": "Bad input data",
"moreInfo": "...",
"errorList": null
}

