Registration, Deposit and Fee Settings
curl --request PUT \
--url https://staging-api.getpartna.com/v4/user/settings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-user: <api-key>' \
--data '
{
"autoMoveDeposit": false,
"cryptoPaymentSource": "",
"feeAccount": "",
"feeAmount": 0,
"feeCap": 0,
"feeCurrency": "",
"feeType": "",
"registrationType": ""
}
'import requests
url = "https://staging-api.getpartna.com/v4/user/settings"
payload = {
"autoMoveDeposit": False,
"cryptoPaymentSource": "",
"feeAccount": "",
"feeAmount": 0,
"feeCap": 0,
"feeCurrency": "",
"feeType": "",
"registrationType": ""
}
headers = {
"x-api-key": "<api-key>",
"x-api-user": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'x-api-key': '<api-key>',
'x-api-user': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
autoMoveDeposit: false,
cryptoPaymentSource: '',
feeAccount: '',
feeAmount: 0,
feeCap: 0,
feeCurrency: '',
feeType: '',
registrationType: ''
})
};
fetch('https://staging-api.getpartna.com/v4/user/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging-api.getpartna.com/v4/user/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'autoMoveDeposit' => false,
'cryptoPaymentSource' => '',
'feeAccount' => '',
'feeAmount' => 0,
'feeCap' => 0,
'feeCurrency' => '',
'feeType' => '',
'registrationType' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>",
"x-api-user: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging-api.getpartna.com/v4/user/settings"
payload := strings.NewReader("{\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeCap\": 0,\n \"feeCurrency\": \"\",\n \"feeType\": \"\",\n \"registrationType\": \"\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-api-user", "<api-key>")
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))
}HttpResponse<String> response = Unirest.put("https://staging-api.getpartna.com/v4/user/settings")
.header("x-api-key", "<api-key>")
.header("x-api-user", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeCap\": 0,\n \"feeCurrency\": \"\",\n \"feeType\": \"\",\n \"registrationType\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.getpartna.com/v4/user/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["x-api-user"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeCap\": 0,\n \"feeCurrency\": \"\",\n \"feeType\": \"\",\n \"registrationType\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"message": "success"
}{
"data": [
"Field: [registrationType] Expected:[oneof(open closed)] Value: [opened]"
],
"message": "validation error"
}{
"message": "invalid feeAccount name"
}User
Registration, Deposit and Fee Settings
Update preferred registration type, fee settings, deposit account, and crypto payment source.
PUT
/
user
/
settings
Registration, Deposit and Fee Settings
curl --request PUT \
--url https://staging-api.getpartna.com/v4/user/settings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-user: <api-key>' \
--data '
{
"autoMoveDeposit": false,
"cryptoPaymentSource": "",
"feeAccount": "",
"feeAmount": 0,
"feeCap": 0,
"feeCurrency": "",
"feeType": "",
"registrationType": ""
}
'import requests
url = "https://staging-api.getpartna.com/v4/user/settings"
payload = {
"autoMoveDeposit": False,
"cryptoPaymentSource": "",
"feeAccount": "",
"feeAmount": 0,
"feeCap": 0,
"feeCurrency": "",
"feeType": "",
"registrationType": ""
}
headers = {
"x-api-key": "<api-key>",
"x-api-user": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'x-api-key': '<api-key>',
'x-api-user': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
autoMoveDeposit: false,
cryptoPaymentSource: '',
feeAccount: '',
feeAmount: 0,
feeCap: 0,
feeCurrency: '',
feeType: '',
registrationType: ''
})
};
fetch('https://staging-api.getpartna.com/v4/user/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging-api.getpartna.com/v4/user/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'autoMoveDeposit' => false,
'cryptoPaymentSource' => '',
'feeAccount' => '',
'feeAmount' => 0,
'feeCap' => 0,
'feeCurrency' => '',
'feeType' => '',
'registrationType' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>",
"x-api-user: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging-api.getpartna.com/v4/user/settings"
payload := strings.NewReader("{\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeCap\": 0,\n \"feeCurrency\": \"\",\n \"feeType\": \"\",\n \"registrationType\": \"\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-api-user", "<api-key>")
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))
}HttpResponse<String> response = Unirest.put("https://staging-api.getpartna.com/v4/user/settings")
.header("x-api-key", "<api-key>")
.header("x-api-user", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeCap\": 0,\n \"feeCurrency\": \"\",\n \"feeType\": \"\",\n \"registrationType\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.getpartna.com/v4/user/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["x-api-user"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeCap\": 0,\n \"feeCurrency\": \"\",\n \"feeType\": \"\",\n \"registrationType\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"message": "success"
}{
"data": [
"Field: [registrationType] Expected:[oneof(open closed)] Value: [opened]"
],
"message": "validation error"
}{
"message": "invalid feeAccount name"
}Authorizations
x-api-key & x-api-userauthorization
Body
application/json
select true if all user's account deposits should be held in the user's main account; defaults to false
select known if crypto wallets are to a user provided address; select unknown addresses generated by the service; defaults to known
Available options:
known, unknown account to receive fees and it must be an existing account
required with feeCurrency and feeType
optional maximum fee amount; if set, the fee will not exceed this amount if type is percentage
required with feeAmount and feeType
Available options:
USD required with feeCurrency and feeAmount
Available options:
fixed, percentage Available options:
open, closed Response
put user settings ok
Was this page helpful?
⌘I