Update an expense item
curl --request PATCH \
--url https://www.ruddr.io/api/workspace/expense-items/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vendorName": "<string>",
"notes": "<string>",
"attendees": "<string>",
"date": "2023-12-25",
"currency": "<string>",
"expenseAmount": 123,
"markupRatio": 0.5,
"markupAmount": 123,
"unitCount": 123,
"unitAmount": 123,
"isReimbursable": true,
"isBillable": true,
"isReimbursed": true,
"expenseReportId": "<string>",
"expenseCategoryId": "<string>",
"projectId": "<string>"
}
'import requests
url = "https://www.ruddr.io/api/workspace/expense-items/{id}"
payload = {
"vendorName": "<string>",
"notes": "<string>",
"attendees": "<string>",
"date": "2023-12-25",
"currency": "<string>",
"expenseAmount": 123,
"markupRatio": 0.5,
"markupAmount": 123,
"unitCount": 123,
"unitAmount": 123,
"isReimbursable": True,
"isBillable": True,
"isReimbursed": True,
"expenseReportId": "<string>",
"expenseCategoryId": "<string>",
"projectId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
vendorName: '<string>',
notes: '<string>',
attendees: '<string>',
date: '2023-12-25',
currency: '<string>',
expenseAmount: 123,
markupRatio: 0.5,
markupAmount: 123,
unitCount: 123,
unitAmount: 123,
isReimbursable: true,
isBillable: true,
isReimbursed: true,
expenseReportId: '<string>',
expenseCategoryId: '<string>',
projectId: '<string>'
})
};
fetch('https://www.ruddr.io/api/workspace/expense-items/{id}', 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://www.ruddr.io/api/workspace/expense-items/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'vendorName' => '<string>',
'notes' => '<string>',
'attendees' => '<string>',
'date' => '2023-12-25',
'currency' => '<string>',
'expenseAmount' => 123,
'markupRatio' => 0.5,
'markupAmount' => 123,
'unitCount' => 123,
'unitAmount' => 123,
'isReimbursable' => true,
'isBillable' => true,
'isReimbursed' => true,
'expenseReportId' => '<string>',
'expenseCategoryId' => '<string>',
'projectId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://www.ruddr.io/api/workspace/expense-items/{id}"
payload := strings.NewReader("{\n \"vendorName\": \"<string>\",\n \"notes\": \"<string>\",\n \"attendees\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"expenseAmount\": 123,\n \"markupRatio\": 0.5,\n \"markupAmount\": 123,\n \"unitCount\": 123,\n \"unitAmount\": 123,\n \"isReimbursable\": true,\n \"isBillable\": true,\n \"isReimbursed\": true,\n \"expenseReportId\": \"<string>\",\n \"expenseCategoryId\": \"<string>\",\n \"projectId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://www.ruddr.io/api/workspace/expense-items/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vendorName\": \"<string>\",\n \"notes\": \"<string>\",\n \"attendees\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"expenseAmount\": 123,\n \"markupRatio\": 0.5,\n \"markupAmount\": 123,\n \"unitCount\": 123,\n \"unitAmount\": 123,\n \"isReimbursable\": true,\n \"isBillable\": true,\n \"isReimbursed\": true,\n \"expenseReportId\": \"<string>\",\n \"expenseCategoryId\": \"<string>\",\n \"projectId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ruddr.io/api/workspace/expense-items/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"vendorName\": \"<string>\",\n \"notes\": \"<string>\",\n \"attendees\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"expenseAmount\": 123,\n \"markupRatio\": 0.5,\n \"markupAmount\": 123,\n \"unitCount\": 123,\n \"unitAmount\": 123,\n \"isReimbursable\": true,\n \"isBillable\": true,\n \"isReimbursed\": true,\n \"expenseReportId\": \"<string>\",\n \"expenseCategoryId\": \"<string>\",\n \"projectId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3b7e1f2a-4c8d-4e9f-a0b1-2c3d4e5f6a7b",
"statusId": "not_submitted",
"vendor": "Personal Vehicle",
"notes": "Client site visit for project kickoff meeting.",
"attendees": "Alice Johnson, Bob Smith",
"date": "2025-01-15",
"currency": "USD",
"amount": 33.5,
"markupMethod": "amount",
"markupRatio": null,
"markupAmount": 5,
"markup": 5,
"total": 38.5,
"unitCount": 50,
"unitAmount": 0.67,
"isReimbursable": true,
"isBillable": true,
"isReimbursed": true,
"createdAt": "2025-01-15T20:47:03.284Z",
"modifiedAt": "2025-02-05T20:47:03.284Z",
"expenseReport": {
"id": "4a186944-4259-4e8a-8aba-b9aaf6937c04",
"title": "January 2025 Expenses"
},
"expenseCategory": {
"id": "175e0635-ac9e-4880-8492-07fa584f1b15",
"name": "Mileage",
"unitName": "Mile"
},
"member": {
"id": "7c8f2e19-4d5a-4a3b-9c6d-2e8f1a0b3c4d",
"name": "Jane Smith"
},
"project": {
"id": "b4cc2b99-3b3a-4b73-8f4e-8c1d7a94e5b0",
"name": "Website Redesign",
"client": {
"id": "56deca22-a707-4148-a5f7-ea3ae6391d67",
"name": "Acme Corp"
}
},
"receipts": [
{
"id": "3e3e5162-54a5-49a2-a6c7-7539a1e5f24c",
"fileName": "gas-station-receipt.pdf",
"contentType": "application/pdf",
"createdAt": "2025-01-15T20:47:03.284Z"
}
],
"invoiced": false
}Expense Items
Update an expense item
PATCH
/
expense-items
/
{id}
Update an expense item
curl --request PATCH \
--url https://www.ruddr.io/api/workspace/expense-items/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vendorName": "<string>",
"notes": "<string>",
"attendees": "<string>",
"date": "2023-12-25",
"currency": "<string>",
"expenseAmount": 123,
"markupRatio": 0.5,
"markupAmount": 123,
"unitCount": 123,
"unitAmount": 123,
"isReimbursable": true,
"isBillable": true,
"isReimbursed": true,
"expenseReportId": "<string>",
"expenseCategoryId": "<string>",
"projectId": "<string>"
}
'import requests
url = "https://www.ruddr.io/api/workspace/expense-items/{id}"
payload = {
"vendorName": "<string>",
"notes": "<string>",
"attendees": "<string>",
"date": "2023-12-25",
"currency": "<string>",
"expenseAmount": 123,
"markupRatio": 0.5,
"markupAmount": 123,
"unitCount": 123,
"unitAmount": 123,
"isReimbursable": True,
"isBillable": True,
"isReimbursed": True,
"expenseReportId": "<string>",
"expenseCategoryId": "<string>",
"projectId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
vendorName: '<string>',
notes: '<string>',
attendees: '<string>',
date: '2023-12-25',
currency: '<string>',
expenseAmount: 123,
markupRatio: 0.5,
markupAmount: 123,
unitCount: 123,
unitAmount: 123,
isReimbursable: true,
isBillable: true,
isReimbursed: true,
expenseReportId: '<string>',
expenseCategoryId: '<string>',
projectId: '<string>'
})
};
fetch('https://www.ruddr.io/api/workspace/expense-items/{id}', 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://www.ruddr.io/api/workspace/expense-items/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'vendorName' => '<string>',
'notes' => '<string>',
'attendees' => '<string>',
'date' => '2023-12-25',
'currency' => '<string>',
'expenseAmount' => 123,
'markupRatio' => 0.5,
'markupAmount' => 123,
'unitCount' => 123,
'unitAmount' => 123,
'isReimbursable' => true,
'isBillable' => true,
'isReimbursed' => true,
'expenseReportId' => '<string>',
'expenseCategoryId' => '<string>',
'projectId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://www.ruddr.io/api/workspace/expense-items/{id}"
payload := strings.NewReader("{\n \"vendorName\": \"<string>\",\n \"notes\": \"<string>\",\n \"attendees\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"expenseAmount\": 123,\n \"markupRatio\": 0.5,\n \"markupAmount\": 123,\n \"unitCount\": 123,\n \"unitAmount\": 123,\n \"isReimbursable\": true,\n \"isBillable\": true,\n \"isReimbursed\": true,\n \"expenseReportId\": \"<string>\",\n \"expenseCategoryId\": \"<string>\",\n \"projectId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://www.ruddr.io/api/workspace/expense-items/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vendorName\": \"<string>\",\n \"notes\": \"<string>\",\n \"attendees\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"expenseAmount\": 123,\n \"markupRatio\": 0.5,\n \"markupAmount\": 123,\n \"unitCount\": 123,\n \"unitAmount\": 123,\n \"isReimbursable\": true,\n \"isBillable\": true,\n \"isReimbursed\": true,\n \"expenseReportId\": \"<string>\",\n \"expenseCategoryId\": \"<string>\",\n \"projectId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ruddr.io/api/workspace/expense-items/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"vendorName\": \"<string>\",\n \"notes\": \"<string>\",\n \"attendees\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"expenseAmount\": 123,\n \"markupRatio\": 0.5,\n \"markupAmount\": 123,\n \"unitCount\": 123,\n \"unitAmount\": 123,\n \"isReimbursable\": true,\n \"isBillable\": true,\n \"isReimbursed\": true,\n \"expenseReportId\": \"<string>\",\n \"expenseCategoryId\": \"<string>\",\n \"projectId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3b7e1f2a-4c8d-4e9f-a0b1-2c3d4e5f6a7b",
"statusId": "not_submitted",
"vendor": "Personal Vehicle",
"notes": "Client site visit for project kickoff meeting.",
"attendees": "Alice Johnson, Bob Smith",
"date": "2025-01-15",
"currency": "USD",
"amount": 33.5,
"markupMethod": "amount",
"markupRatio": null,
"markupAmount": 5,
"markup": 5,
"total": 38.5,
"unitCount": 50,
"unitAmount": 0.67,
"isReimbursable": true,
"isBillable": true,
"isReimbursed": true,
"createdAt": "2025-01-15T20:47:03.284Z",
"modifiedAt": "2025-02-05T20:47:03.284Z",
"expenseReport": {
"id": "4a186944-4259-4e8a-8aba-b9aaf6937c04",
"title": "January 2025 Expenses"
},
"expenseCategory": {
"id": "175e0635-ac9e-4880-8492-07fa584f1b15",
"name": "Mileage",
"unitName": "Mile"
},
"member": {
"id": "7c8f2e19-4d5a-4a3b-9c6d-2e8f1a0b3c4d",
"name": "Jane Smith"
},
"project": {
"id": "b4cc2b99-3b3a-4b73-8f4e-8c1d7a94e5b0",
"name": "Website Redesign",
"client": {
"id": "56deca22-a707-4148-a5f7-ea3ae6391d67",
"name": "Acme Corp"
}
},
"receipts": [
{
"id": "3e3e5162-54a5-49a2-a6c7-7539a1e5f24c",
"fileName": "gas-station-receipt.pdf",
"contentType": "application/pdf",
"createdAt": "2025-01-15T20:47:03.284Z"
}
],
"invoiced": false
}A purchased product or service recorded for reimbursement or project billing.
Authorizations
Body
application/json
Response
200