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 '
{
"allowAutoRamp": false,
"autoMoveDeposit": false,
"cryptoPaymentSource": "",
"feeAccount": "",
"feeAmount": 0,
"feeBearer": "",
"feeCap": 0,
"feeCurrency": "",
"feeType": "",
"registrationType": ""
}
'import requests
url = "https://staging-api.getpartna.com/v4/user/settings"
payload = {
"allowAutoRamp": False,
"autoMoveDeposit": False,
"cryptoPaymentSource": "",
"feeAccount": "",
"feeAmount": 0,
"feeBearer": "",
"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({
allowAutoRamp: false,
autoMoveDeposit: false,
cryptoPaymentSource: '',
feeAccount: '',
feeAmount: 0,
feeBearer: '',
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([
'allowAutoRamp' => false,
'autoMoveDeposit' => false,
'cryptoPaymentSource' => '',
'feeAccount' => '',
'feeAmount' => 0,
'feeBearer' => '',
'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 \"allowAutoRamp\": false,\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeBearer\": \"\",\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 \"allowAutoRamp\": false,\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeBearer\": \"\",\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 \"allowAutoRamp\": false,\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeBearer\": \"\",\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"
}Registration, Deposit and Fee Settings
Update preferred registration type, fee settings, deposit account, and crypto payment source.
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 '
{
"allowAutoRamp": false,
"autoMoveDeposit": false,
"cryptoPaymentSource": "",
"feeAccount": "",
"feeAmount": 0,
"feeBearer": "",
"feeCap": 0,
"feeCurrency": "",
"feeType": "",
"registrationType": ""
}
'import requests
url = "https://staging-api.getpartna.com/v4/user/settings"
payload = {
"allowAutoRamp": False,
"autoMoveDeposit": False,
"cryptoPaymentSource": "",
"feeAccount": "",
"feeAmount": 0,
"feeBearer": "",
"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({
allowAutoRamp: false,
autoMoveDeposit: false,
cryptoPaymentSource: '',
feeAccount: '',
feeAmount: 0,
feeBearer: '',
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([
'allowAutoRamp' => false,
'autoMoveDeposit' => false,
'cryptoPaymentSource' => '',
'feeAccount' => '',
'feeAmount' => 0,
'feeBearer' => '',
'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 \"allowAutoRamp\": false,\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeBearer\": \"\",\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 \"allowAutoRamp\": false,\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeBearer\": \"\",\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 \"allowAutoRamp\": false,\n \"autoMoveDeposit\": false,\n \"cryptoPaymentSource\": \"\",\n \"feeAccount\": \"\",\n \"feeAmount\": 0,\n \"feeBearer\": \"\",\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
Body
select true if NGN deposits without matching ramps can create auto ramp requests; defaults to false
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
known, unknown account to receive fees and it must be an existing account
required with feeCurrency and feeType
select customer if the fee should be borne by the customer; select merchant if the fee should be borne by the merchant; defaults to customer
customer, merchant optional maximum fee amount; if set, the fee will not exceed this amount if type is percentage
required with feeAmount and feeType
USD required with feeCurrency and feeAmount
fixed, percentage open, closed Response
put user settings ok
Was this page helpful?