Update invoice
curl --request PATCH \
--url https://api.reclack.com/v1/invoices/{invoiceId} \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "120.00",
"due_at": "2023-11-07T05:31:56Z",
"memo": "October retainer and platform seats",
"footer": "Thanks for working with us.",
"tax_id": "GB123456789",
"line_items": [
{
"description": "Platform seats",
"quantity": 4,
"unit_amount": "20.00"
}
]
}
'import requests
url = "https://api.reclack.com/v1/invoices/{invoiceId}"
payload = {
"amount": "120.00",
"due_at": "2023-11-07T05:31:56Z",
"memo": "October retainer and platform seats",
"footer": "Thanks for working with us.",
"tax_id": "GB123456789",
"line_items": [
{
"description": "Platform seats",
"quantity": 4,
"unit_amount": "20.00"
}
]
}
headers = {
"Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '120.00',
due_at: '2023-11-07T05:31:56Z',
memo: 'October retainer and platform seats',
footer: 'Thanks for working with us.',
tax_id: 'GB123456789',
line_items: [{description: 'Platform seats', quantity: 4, unit_amount: '20.00'}]
})
};
fetch('https://api.reclack.com/v1/invoices/{invoiceId}', 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.reclack.com/v1/invoices/{invoiceId}",
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([
'amount' => '120.00',
'due_at' => '2023-11-07T05:31:56Z',
'memo' => 'October retainer and platform seats',
'footer' => 'Thanks for working with us.',
'tax_id' => 'GB123456789',
'line_items' => [
[
'description' => 'Platform seats',
'quantity' => 4,
'unit_amount' => '20.00'
]
]
]),
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>",
"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://api.reclack.com/v1/invoices/{invoiceId}"
payload := strings.NewReader("{\n \"amount\": \"120.00\",\n \"due_at\": \"2023-11-07T05:31:56Z\",\n \"memo\": \"October retainer and platform seats\",\n \"footer\": \"Thanks for working with us.\",\n \"tax_id\": \"GB123456789\",\n \"line_items\": [\n {\n \"description\": \"Platform seats\",\n \"quantity\": 4,\n \"unit_amount\": \"20.00\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Api-Key", "<api-key>")
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://api.reclack.com/v1/invoices/{invoiceId}")
.header("Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"120.00\",\n \"due_at\": \"2023-11-07T05:31:56Z\",\n \"memo\": \"October retainer and platform seats\",\n \"footer\": \"Thanks for working with us.\",\n \"tax_id\": \"GB123456789\",\n \"line_items\": [\n {\n \"description\": \"Platform seats\",\n \"quantity\": 4,\n \"unit_amount\": \"20.00\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reclack.com/v1/invoices/{invoiceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"120.00\",\n \"due_at\": \"2023-11-07T05:31:56Z\",\n \"memo\": \"October retainer and platform seats\",\n \"footer\": \"Thanks for working with us.\",\n \"tax_id\": \"GB123456789\",\n \"line_items\": [\n {\n \"description\": \"Platform seats\",\n \"quantity\": 4,\n \"unit_amount\": \"20.00\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "in_0182",
"code": "INV-00182",
"reference": "in_0182",
"status": "open",
"amount": "120.00",
"amount_atomic": "120000000",
"fee_atomic": "1200000",
"currency": "USDC",
"network": "base",
"chain_id": 8453,
"period_start": "2026-10-18T22:07:41Z",
"period_end": "2026-10-18T22:07:41Z",
"attempt_count": 0,
"next_attempt_at": "2026-10-18T22:07:41Z",
"paid_at": "2026-10-18T22:07:41Z",
"sent_at": "2026-10-18T22:07:41Z",
"reminders_enabled": true,
"last_reminder_at": "2026-10-18T22:07:41Z",
"failure_code": "insufficient_allowance",
"failure_message": "The authorization no longer covers this amount",
"metadata": {},
"created_at": "2026-10-18T22:07:41Z",
"updated_at": "2026-10-18T22:07:41Z"
}
}{
"error": {
"type": "invalid_request_error",
"code": "price_not_found",
"message": "No price was found for that id"
}
}{
"error": {
"type": "invalid_request_error",
"code": "price_not_found",
"message": "No price was found for that id"
}
}{
"error": {
"type": "invalid_request_error",
"code": "price_not_found",
"message": "No price was found for that id"
}
}Invoices
Update Invoice
Update a draft invoice.
PATCH
/
v1
/
invoices
/
{invoiceId}
Update invoice
curl --request PATCH \
--url https://api.reclack.com/v1/invoices/{invoiceId} \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "120.00",
"due_at": "2023-11-07T05:31:56Z",
"memo": "October retainer and platform seats",
"footer": "Thanks for working with us.",
"tax_id": "GB123456789",
"line_items": [
{
"description": "Platform seats",
"quantity": 4,
"unit_amount": "20.00"
}
]
}
'import requests
url = "https://api.reclack.com/v1/invoices/{invoiceId}"
payload = {
"amount": "120.00",
"due_at": "2023-11-07T05:31:56Z",
"memo": "October retainer and platform seats",
"footer": "Thanks for working with us.",
"tax_id": "GB123456789",
"line_items": [
{
"description": "Platform seats",
"quantity": 4,
"unit_amount": "20.00"
}
]
}
headers = {
"Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '120.00',
due_at: '2023-11-07T05:31:56Z',
memo: 'October retainer and platform seats',
footer: 'Thanks for working with us.',
tax_id: 'GB123456789',
line_items: [{description: 'Platform seats', quantity: 4, unit_amount: '20.00'}]
})
};
fetch('https://api.reclack.com/v1/invoices/{invoiceId}', 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.reclack.com/v1/invoices/{invoiceId}",
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([
'amount' => '120.00',
'due_at' => '2023-11-07T05:31:56Z',
'memo' => 'October retainer and platform seats',
'footer' => 'Thanks for working with us.',
'tax_id' => 'GB123456789',
'line_items' => [
[
'description' => 'Platform seats',
'quantity' => 4,
'unit_amount' => '20.00'
]
]
]),
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>",
"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://api.reclack.com/v1/invoices/{invoiceId}"
payload := strings.NewReader("{\n \"amount\": \"120.00\",\n \"due_at\": \"2023-11-07T05:31:56Z\",\n \"memo\": \"October retainer and platform seats\",\n \"footer\": \"Thanks for working with us.\",\n \"tax_id\": \"GB123456789\",\n \"line_items\": [\n {\n \"description\": \"Platform seats\",\n \"quantity\": 4,\n \"unit_amount\": \"20.00\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Api-Key", "<api-key>")
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://api.reclack.com/v1/invoices/{invoiceId}")
.header("Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"120.00\",\n \"due_at\": \"2023-11-07T05:31:56Z\",\n \"memo\": \"October retainer and platform seats\",\n \"footer\": \"Thanks for working with us.\",\n \"tax_id\": \"GB123456789\",\n \"line_items\": [\n {\n \"description\": \"Platform seats\",\n \"quantity\": 4,\n \"unit_amount\": \"20.00\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reclack.com/v1/invoices/{invoiceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"120.00\",\n \"due_at\": \"2023-11-07T05:31:56Z\",\n \"memo\": \"October retainer and platform seats\",\n \"footer\": \"Thanks for working with us.\",\n \"tax_id\": \"GB123456789\",\n \"line_items\": [\n {\n \"description\": \"Platform seats\",\n \"quantity\": 4,\n \"unit_amount\": \"20.00\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "in_0182",
"code": "INV-00182",
"reference": "in_0182",
"status": "open",
"amount": "120.00",
"amount_atomic": "120000000",
"fee_atomic": "1200000",
"currency": "USDC",
"network": "base",
"chain_id": 8453,
"period_start": "2026-10-18T22:07:41Z",
"period_end": "2026-10-18T22:07:41Z",
"attempt_count": 0,
"next_attempt_at": "2026-10-18T22:07:41Z",
"paid_at": "2026-10-18T22:07:41Z",
"sent_at": "2026-10-18T22:07:41Z",
"reminders_enabled": true,
"last_reminder_at": "2026-10-18T22:07:41Z",
"failure_code": "insufficient_allowance",
"failure_message": "The authorization no longer covers this amount",
"metadata": {},
"created_at": "2026-10-18T22:07:41Z",
"updated_at": "2026-10-18T22:07:41Z"
}
}{
"error": {
"type": "invalid_request_error",
"code": "price_not_found",
"message": "No price was found for that id"
}
}{
"error": {
"type": "invalid_request_error",
"code": "price_not_found",
"message": "No price was found for that id"
}
}{
"error": {
"type": "invalid_request_error",
"code": "price_not_found",
"message": "No price was found for that id"
}
}Overview
Update an invoice. Drafts can be edited freely. A sent invoice is finalised and cannot be changed, which is what makes the document the customer received trustworthy.Authorizations
Your Reclack API key. The prefix decides the environment: rk_sandbox_ for test chains, rk_live_ for production.
Path Parameters
The invoice id.
Body
application/json
Response
Success
Show child attributes
Show child attributes

