Set the DOKU-wide PPN rate (admin)
curl --request PUT \
--url https://api.pid.peridotvault.com/v1/fiat/admin/doku-tax \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '{
"taxBps": 123
}'const options = {
method: 'PUT',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({taxBps: 123})
};
fetch('https://api.pid.peridotvault.com/v1/fiat/admin/doku-tax', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/fiat/admin/doku-tax"
payload = { "taxBps": 123 }
headers = {
"cookie": "pid_access=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/fiat/admin/doku-tax"
payload := strings.NewReader("{\n \"taxBps\": 123\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "pid_access=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"statusCode": 401,
"message": "Unauthorized"
}fiat
Set the DOKU-wide PPN rate (admin)
Applied to the payment-gateway fee of every method; shown to users folded into “Fee Transfer”.
PUT
/
fiat
/
admin
/
doku-tax
Set the DOKU-wide PPN rate (admin)
curl --request PUT \
--url https://api.pid.peridotvault.com/v1/fiat/admin/doku-tax \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '{
"taxBps": 123
}'const options = {
method: 'PUT',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({taxBps: 123})
};
fetch('https://api.pid.peridotvault.com/v1/fiat/admin/doku-tax', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/fiat/admin/doku-tax"
payload = { "taxBps": 123 }
headers = {
"cookie": "pid_access=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/fiat/admin/doku-tax"
payload := strings.NewReader("{\n \"taxBps\": 123\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "pid_access=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"statusCode": 401,
"message": "Unauthorized"
}