Disable a specific subscription
curl --request PATCH \
--url https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/disable \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/disable"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/disable"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"errors": [
{
"title": "Parameter is malformed",
"detail": "Some validation errors will be described here"
}
]
}{
"errors": [
{
"title": "Unauthorized Error",
"detail": "The API key is invalid, please, make sure that you are using a valid key"
}
]
}{
"errors": [
{
"title": "Too many requests",
"detail": "Your request had been throttled"
}
]
}subscriptions to transactions
Disable a specific subscription
This endpoint sets the status of a specific subscription to “disabled”.
NOTE: Consider all IDs as abstract strings, without making any assumptions about their format or relying on such assumptions. This ensures flexibility and future-proofing against ID format changes.
PATCH
/
v1
/
tx-subscriptions
/
{subscription_id}
/
disable
Disable a specific subscription
curl --request PATCH \
--url https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/disable \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/disable"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/disable"
req, _ := http.NewRequest("PATCH", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"errors": [
{
"title": "Parameter is malformed",
"detail": "Some validation errors will be described here"
}
]
}{
"errors": [
{
"title": "Unauthorized Error",
"detail": "The API key is invalid, please, make sure that you are using a valid key"
}
]
}{
"errors": [
{
"title": "Too many requests",
"detail": "Your request had been throttled"
}
]
}Authorizations
Path Parameters
ID of the subscription
Example:
"77e77447-1586-40e8-a75b-467ef939a0b1"
Response
Successfully updated subscription status to disabled
Was this page helpful?