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 |
|---|---|---|
| none | 401 | API key is missing or invalid. The response body is empty. |
-1003 | 403 | User type is not Booker. message names the reason. |
-125 | 400 | Request body failed validation (e.g. invalid or missing digital wallet name, malformed credential data). |
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.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.CardPay account, only these fields are required:
| Field | Description |
|---|---|
MerchantIdentifier | Your merchant identifier. |
DisplayName | The merchant name shown to the payer. |
CardPay fields are optional. MerchantRequestorIdSuffix, MerchantUrl and ThreeDsBrands are used only when PCI Booking performs 3D Secure, so leave them out if you do not use it.
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
}

