Update todo status
curl --request PUT \
--url https://getbill.io/external-api/v1/todos/{type}/{id}/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://getbill.io/external-api/v1/todos/{type}/{id}/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://getbill.io/external-api/v1/todos/{type}/{id}/status', 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://getbill.io/external-api/v1/todos/{type}/{id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://getbill.io/external-api/v1/todos/{type}/{id}/status"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://getbill.io/external-api/v1/todos/{type}/{id}/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://getbill.io/external-api/v1/todos/{type}/{id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyTodos API
Update todo status
Update an agreement or dispute status
PUT
/
external-api
/
v1
/
todos
/
{type}
/
{id}
/
status
Update todo status
curl --request PUT \
--url https://getbill.io/external-api/v1/todos/{type}/{id}/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://getbill.io/external-api/v1/todos/{type}/{id}/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://getbill.io/external-api/v1/todos/{type}/{id}/status', 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://getbill.io/external-api/v1/todos/{type}/{id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://getbill.io/external-api/v1/todos/{type}/{id}/status"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://getbill.io/external-api/v1/todos/{type}/{id}/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://getbill.io/external-api/v1/todos/{type}/{id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyUpdate Todo Status
This endpoint requires a valid Bearer token with thedebts:write scope.
# Update agreement
curl -X PUT https://getbill.io/external-api/v1/todos/agreement/enc_456/status \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"debt_status_id": "enc_5",
"plan_months": 12,
"plan_start_date": "2024-02-01",
"first_payment_amount": 150.00
}'
# Update dispute
curl -X PUT https://getbill.io/external-api/v1/todos/debtor_request/enc_234/status \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "validated",
"admin_notes": "Verified payment was received"
}'
Path Parameters
| Parameter | Type | Description |
|---|---|---|
type | string | Todo type: agreement, debtor_request, or ai_detection |
id | string | Encrypted todo ID |
Request Body (Agreement)
| Field | Type | Required | Description |
|---|---|---|---|
debt_status_id | string | No | Encrypted debt status ID |
plan_months | integer | No | Duration of payment plan in months |
plan_start_date | string | No | Start date of payment plan (ISO 8601) |
first_payment_amount | float | No | Amount of first payment |
Request Body (Dispute)
| Field | Type | Required | Description |
|---|---|---|---|
status | string | No | New status: suggested, validated, or rejected |
admin_notes | string | No | Additional notes about the status change |