List fee statuses
curl --request GET \
--url https://api.stardex.ai/v1/fee-statuses \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stardex.ai/v1/fee-statuses"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stardex.ai/v1/fee-statuses', 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://api.stardex.ai/v1/fee-statuses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://api.stardex.ai/v1/fee-statuses"
req, _ := http.NewRequest("GET", 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.get("https://api.stardex.ai/v1/fee-statuses")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stardex.ai/v1/fee-statuses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "4d5e6f7a-8b9c-4d0e-9f2a-3b4c5d6e7f8b",
"name": "Pending",
"status_type": "pending",
"color": "#f59e0b",
"position": 0,
"is_default": true
},
{
"id": "5e6f7a8b-9c0d-4e1f-8a3b-4c5d6e7f8a9c",
"name": "Invoiced",
"status_type": "invoiced",
"color": "#3b82f6",
"position": 1,
"is_default": false
},
{
"id": "5e6f7a8b-9c0d-4e1f-8a3b-4c5d6e7f8a9b",
"name": "Paid",
"status_type": "paid",
"color": "#22c55e",
"position": 2,
"is_default": false
},
{
"id": "6f7a8b9c-0d1e-4f2a-9b4c-5d6e7f8a9b0d",
"name": "Cancelled",
"status_type": "cancelled",
"color": "#6b7280",
"position": 3,
"is_default": false
}
]
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Retainer Packs
List fee statuses
Returns every fee status of the workspace (the statuses of retainers, milestones, placements and retainer packs), ordered by position. No pagination: the full list is always returned.
When to use: get a fee_status_id for POST /v1/retainer-packs or PATCH /v1/retainer-packs/{id}.
Access: Everyone in the workspace. API keys need the fees:read scope.
GET
/
v1
/
fee-statuses
List fee statuses
curl --request GET \
--url https://api.stardex.ai/v1/fee-statuses \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stardex.ai/v1/fee-statuses"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stardex.ai/v1/fee-statuses', 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://api.stardex.ai/v1/fee-statuses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://api.stardex.ai/v1/fee-statuses"
req, _ := http.NewRequest("GET", 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.get("https://api.stardex.ai/v1/fee-statuses")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stardex.ai/v1/fee-statuses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "4d5e6f7a-8b9c-4d0e-9f2a-3b4c5d6e7f8b",
"name": "Pending",
"status_type": "pending",
"color": "#f59e0b",
"position": 0,
"is_default": true
},
{
"id": "5e6f7a8b-9c0d-4e1f-8a3b-4c5d6e7f8a9c",
"name": "Invoiced",
"status_type": "invoiced",
"color": "#3b82f6",
"position": 1,
"is_default": false
},
{
"id": "5e6f7a8b-9c0d-4e1f-8a3b-4c5d6e7f8a9b",
"name": "Paid",
"status_type": "paid",
"color": "#22c55e",
"position": 2,
"is_default": false
},
{
"id": "6f7a8b9c-0d1e-4f2a-9b4c-5d6e7f8a9b0d",
"name": "Cancelled",
"status_type": "cancelled",
"color": "#6b7280",
"position": 3,
"is_default": false
}
]
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Was this page helpful?