Contents
Get Adyen Terminal Setup - Plugixa POS for WooCommerce
GET /plugixa-pos/v1/adyen-terminal
The Adyen Terminal settings.
Needs a user with the plugixa_pos_manage_settings capability (signed in with an Application Password, or the login cookie with an X-WP-Nonce header). Administrators hold it; other roles only when you grant it.
Request
GET https://your-site.example/wp-json/plugixa-pos/v1/adyen-terminal
Responses
200 OK.
{
"success": true,
"data": {
"configured": true,
"key_hint": "…2s5P",
"merchant_account": "PlugixaECOM",
"test_mode": true,
"region": "eu",
"live_prefix": "",
"terminals": {
"1": "V400m-324688179"
},
"simulated": true,
"currency": "EUR"
}
}
| Field | Type | Meaning |
|---|---|---|
data.key_hint |
string |
The end of the saved API key |
data.terminals |
object |
Terminal id per register id |
data.simulated |
boolean |
Test payments can be simulated |
data.currency |
string |
Shop currency |
Errors
This endpoint has no errors of its own.
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-pos/v1/adyen-terminal" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/adyen-terminal');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-pos/v1/adyen-terminal', {
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share