Delete settlement rule
curl --request DELETE \
--url https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId} \
--header 'apiKey: <api-key>' \
--header 'orgId: <api-key>'const options = {method: 'DELETE', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId}"
headers = {
"apiKey": "<api-key>",
"orgId": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("orgId", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'DELETE', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"walletId": "<string>",
"slippageTolerance": "<string>",
"isActive": true,
"source": {
"blockchainId": "<string>",
"assetIds": [
"<string>"
],
"minAmount": "<string>",
"maxAmount": "<string>"
},
"destination": {
"blockchainId": "<string>",
"assetId": "<string>",
"address": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"message": "<string>"
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}Auto Settlement
Delete settlement rule
DELETE
/
v1
/
addresses
/
settlement-rules
/
{ruleId}
Delete settlement rule
curl --request DELETE \
--url https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId} \
--header 'apiKey: <api-key>' \
--header 'orgId: <api-key>'const options = {method: 'DELETE', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId}"
headers = {
"apiKey": "<api-key>",
"orgId": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("orgId", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'DELETE', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.xentfi.com/v1/addresses/settlement-rules/{ruleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"walletId": "<string>",
"slippageTolerance": "<string>",
"isActive": true,
"source": {
"blockchainId": "<string>",
"assetIds": [
"<string>"
],
"minAmount": "<string>",
"maxAmount": "<string>"
},
"destination": {
"blockchainId": "<string>",
"assetId": "<string>",
"address": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"message": "<string>"
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}⌘I

