/invoices/{invoiceId}Logically deletes an invoice (sets invoice status to deleted).
Audit event:
- invoice.delete
Privilege:
- finance-invoices.manage
Errors:
- INVOICE_NOTFOUND - Invoice not found
- INVOICE_ALREADY_DELETED - Invoice already deleted
- COLLECTION_MEMBER_CHANGE_IS_NOT_ALLOWED - Invoice is collection member. Changing collection member data is not allowed
- NETTING_STATEMENT_NOT_CANCELED_OR_DRAFT - Netting statemant not in 'canceled' or 'draft' mode. Can not delete invoice
- INVOICE_DELETE_NOT_ALLOWED - Only 'draft' invoice can be deleted
- NOT_AUTHORIZED - Not authorized - missing required privileges
- NOT_PLATFORM_OWNER - Not authorized - not platform owner
- NOT_AUTHENTICATED - Not authenticated
- INT_APP_ERROR - Unexpected internal error
Request
Path parameters
Invoice ID
Request example
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <access_token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());var options = new RestClientOptions("")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}", Method.Delete);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer <access_token>");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);curl -L -X DELETE "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}" \
-H "Accept: application/json" \
-H "Authorization: Bearer <access_token>"var headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
};
var dio = Dio();
var response = await dio.request(
'https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}',
options: Options(
method: 'DELETE',
headers: headers,
),
);
if (response.statusCode == 200) {
print(json.encode(response.data));
}
else {
print(response.statusMessage);
}var headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
};
var request = http.Request('DELETE', Uri.parse('https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}'));
request.headers.addAll(headers);
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}"
method := "DELETE"
client := &http.Client{}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <access_token>")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}DELETE /finance/sit/v1/invoices/{invoiceId} HTTP/1.1
Host: api-cpaas.sms.es
Accept: application/json
Authorization: Bearer <access_token>OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}")
.method("DELETE", null)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Bearer <access_token>")
.build();
Response response = client.newCall(request).execute();Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.delete("https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}")
.header("Accept", "application/json")
.header("Authorization", "Bearer <access_token>")
.asString();const myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "Bearer <access_token>");
const requestOptions = {
method: "DELETE",
headers: myHeaders,
redirect: "follow"
};
fetch("https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));var settings = {
"url": "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}",
"method": "DELETE",
"timeout": 0,
"headers": {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("DELETE", "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}");
xhr.setRequestHeader("Accept", "application/json");
xhr.setRequestHeader("Authorization", "Bearer <access_token>");
xhr.send();val client = OkHttpClient()
val request = Request.Builder()
.url("https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}")
.delete()
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Bearer <access_token>")
.build()
val response = client.newCall(request).execute()#include <stdio.h>
#include <curl/curl.h>
int main(void) {
CURL *curl = curl_easy_init();
if (curl) {
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(curl, CURLOPT_URL, "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "Authorization: Bearer <access_token>");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
CURLcode res = curl_easy_perform(curl);
curl_slist_free_all(headers);
curl_easy_cleanup(curl);
}
return 0;
}const axios = require('axios');
let config = {
method: 'delete',
maxBodyLength: Infinity,
url: 'https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});const https = require('follow-redirects').https;
const fs = require('fs');
let options = {
'method': 'DELETE',
'hostname': 'api-cpaas.sms.es',
'path': '/finance/sit/v1/invoices/{invoiceId}',
'headers': {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
},
'maxRedirects': 20
};
const req = https.request(options, function (res) {
let chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
let body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();#import <Foundation/Foundation.h>
dispatch_semaphore_t sema = dispatch_semaphore_create(0);
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
NSDictionary *headers = @{
@"Accept": @"application/json",
@"Authorization": @"Bearer <access_token>"
};
[request setAllHTTPHeaderFields:headers];
[request setHTTPMethod:@"DELETE"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
dispatch_semaphore_signal(sema);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSError *parseError = nil;
NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError];
NSLog(@"%@",responseDictionary);
dispatch_semaphore_signal(sema);
}
}];
[dataTask resume];
dispatch_semaphore_wait(sema, DISPATCH_TIME_FOREVER);open Lwt
open Cohttp
open Cohttp_lwt_unix
let reqBody =
let uri = Uri.of_string "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}" in
let headers = Header.init ()
|> fun h -> Header.add h "Accept" "application/json"
|> fun h -> Header.add h "Authorization" "Bearer <access_token>"
in
Client.call ~headers `DELETE uri >>= fun (_resp, body) ->
body |> Cohttp_lwt.Body.to_string >|= fun body -> body
let () =
let respBody = Lwt_main.run reqBody in
print_endline (respBody)<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization: Bearer <access_token>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
<?php
$client = new Client();
$headers = [
'Accept' => 'application/json',
'Authorization' => 'Bearer <access_token>'
];
$request = new Request('DELETE', 'https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Accept", "application/json")
$headers.Add("Authorization", "Bearer <access_token>")
$response = Invoke-RestMethod "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}" -Method 'DELETE' -Headers $headers
$response | ConvertTo-Jsonimport requests
import json
url = "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}"
payload = {}
headers = {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
response = requests.request("DELETE", url, headers=headers, data=payload)
print(response.text)import http.client
import json
conn = http.client.HTTPSConnection("api-cpaas.sms.es")
payload = ''
headers = {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
conn.request("DELETE", "/finance/sit/v1/invoices/{invoiceId}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))library(httr)
headers = c(
'Accept' = 'application/json',
'Authorization' = 'Bearer <access_token>'
)
res <- VERB("DELETE", url = "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}", add_headers(headers))
cat(content(res, 'text'))require "uri"
require "json"
require "net/http"
url = URI("https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Accept"] = "application/json"
request["Authorization"] = "Bearer <access_token>"
response = https.request(request)
puts response.read_body
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = reqwest::Client::builder()
.build()?;
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("Accept", "application/json".parse()?);
headers.insert("Authorization", "Bearer <access_token>".parse()?);
let request = client.request(reqwest::Method::from_bytes(b"DELETE")?, "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}")
.headers(headers);
let response = request.send().await?;
let body = response.text().await?;
println!("{}", body);
Ok(())
}http --follow --timeout 3600 DELETE "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}" \
'Accept':'application/json' \
'Authorization':'Bearer <access_token>'wget --no-check-certificate --quiet \
--method DELETE \
--timeout=0 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <access_token>' \
'https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}'var request = URLRequest(url: URL(string: "https://api-cpaas.sms.es/finance/sit/v1/invoices/{invoiceId}")!,timeoutInterval: Double.infinity)
request.addValue("application/json", forHTTPHeaderField: "Accept")
request.addValue("Bearer <access_token>", forHTTPHeaderField: "Authorization")
request.httpMethod = "DELETE"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()Responses
- 200
- 401
- 404
- 409
- 500
Invoice deleted successfully
Account manager ID (populated when showAccountManager=yes filter is used)
Account manager name (populated when showAccountManager=yes filter is used)
Invoice amount without VAT (net amount). Can be negative when selfBilling is 'yes'
Invoice VAT amount. Can be negative when selfBilling is 'yes'
Billing balance information (for PREPAID, POSTPAID, POSTPAID-CONTROL invoices) (for PREPAID, POSTPAID, POSTPAID-CONTROL invoices)
Show child attributes
BillingBalance · object
Billing balance information
Balance ID
Balance name
Resource URL to access the balance
Option 2 · null
Billing type name. Required and returned for control invoice only
Document class area (sales or purchase)
sales, purchaseDocument class code name. Supported values include CUSTOMER_INVOICE, SUPPLIER_INVOICE, NETTING_INVOICE, CONTROL_INVOICE, CREDIT_DEBIT_NOTE, SUPPLIER_CR_DB_NOTE
Document class domain (typically "invoice" or "netting")
If document is a member of collection, this value contains ID of collection lead document (0 if not applicable)
Netting statement ID of collection lead (0 if not applicable)
Netting statement number of collection lead (empty if not applicable)
Netting statement payment status of collection lead (empty if not applicable)
Netting statement status of collection lead (empty if not applicable)
Netting statement total amount of collection lead
Netting statement total paid amount of collection lead
Netting statement total unpaid amount of collection lead
If document is a member of collection, this value contains number of collection lead document (empty if not applicable)
Document collection mode (none if not part of collection)
none, member, leadDescription or comment in case invoice is credit or debit note. Not available when invoice list is returned
Currency ID (ISO 4217 numeric)
ISO 4217 currency code
Customer primary address
Customer secondary address line
Customer attention/contact person
Customer city
Customer country code/ID
Customer/Business Partner ID
Full customer name
Customer P.O. Box
Customer postal code
Customer short name or abbreviation
Customer VAT/Tax number
Type of customer (e.g., business, individual, Enterprise)
Data source code name. Supported values include PREPAID, POSTPAID, FINANCE, SUPPLIER-INVOICE, POSTPAID-SUPPLIER-INVOICE, POSTPAID-CONTROL
Data source identifier
Document delivery date
ID of next related dispute document if applicable
Dispute status if applicable (e.g., "none" when no dispute)
Timestamp of dispute status change
DLR (delivery receipt) status (e.g., "none", "success", "failed")
Timestamp of DLR status change
Status of document delivery (e.g., "none", "pending", "delivered")
Timestamp of last delivery status change
Arbitrary JSON object holding document synchronization data. Returned if syncStatus is done, error, misc, exported or invalid
Domain code name. Supported values include BULK
Domain identifier
Domain display name
Product ID associated with domain
Domestic currency ID for multi-currency support (0 if not used)
Amount in domestic currency without VAT (0 if not used)
Amount in domestic currency including VAT (0 if not used)
Domestic currency ISO code (empty if not used)
Exchange rate used to calculate domestic currency amounts (0 if not used)
Rounding difference in domestic currency (0 if not used)
Total in domestic currency (0 if not used)
DTS selector code name (empty if not applicable)
DTS selector ID (0 if not applicable)
Extended invoice data (present on invoice get; may be omitted in invoice list)
Show child attributes
Extent value stored as JSON string
Field type ID
Field type code name
Insert timestamp
Invoice ID
Update timestamp
External reference ID for integration
Associated invoice files/documents (present on invoice get; may be omitted in invoice list)
Show child attributes
Data source file type code (e.g. INVOICE_PDF, ATTACHMENT)
Data source file type ID (note: API returns this key with lowercase 'i' in 'id')
File system / storage file name
File system storage status
stored, cached, volatileFile system status timestamp
Original file name
File record ID
When the file was registered
Invoice ID this file is attached to
File size in bytes
0File availability status
available, archived, deleted, miscStatus timestamp
Optional status message or error info
Unique invoice identifier
Customer industry classification
Invoice creation timestamp
System instance ID
Invoice issuance date
Payment due date
Full invoice number
Invoice number prefix/format string
Invoice number sequence
Invoice billing period display string (e.g., "12.12.2025 - 12.12.2025")
Invoice period end date
Invoice period start date
Invoice type identifier
Invoice type name
Unique invoice UID (universal identifier)
Date used for invoicing period
Invoicing date calculation policy
delivery, creation, approvalInvoice line items (present on invoice get; may be omitted in invoice list)
Show child attributes
Foreign key to data source record
Data source ID
DTS selector code name
DTS selector ID
DTS selector display name
Item ID
Insert timestamp (UTC)
Invoice ID this item belongs to
Item type code (e.g., ITEM-1, ITEM-2)
Measurement unit ID
Item name/description (may be JSON string for structured data)
Order number of the item on the invoice
Item unit price
Item quantity
Quantity calculation mode (0=comment, 1=use quantity, 2=use quantity_more, 3=use both)
Additional quantity parameter
Item status (e.g., active, deleted)
Status timestamp (UTC)
Total net amount for item
Total VAT for item
VAT included in price (0=no, 1=yes)
0, 1Invoice language code
Related netting invoice ID (0 if not applicable)
Related netting invoice number (empty if not applicable)
Status of related netting invoice (empty if not member of netting)
Payment status of netting invoice (empty if not member of netting)
Total amount for netting. Can be negative when selfBilling is 'yes'
Paid netting amount
Unpaid netting amount
Days overdue (negative if not yet overdue)
Owner business partner brief name
Owner business partner full name
Owner business partner ID
Owner/Company name
Owner/Company VAT number
Payment status of the invoice
none, open, on-hold, closedTimestamp of payment status change
Processing status if document has recalculation or other processing tasks
none, scheduled, running, done, canceledReminder status for payment
enabled, disabled, open, closed, miscDifference between invoice total and amount including VAT value
Indicator that invoice is credit note or not. If value is 'yes' and document is netting statement, it indicates that document is in favor of buyer but issued by seller.
yes, noEmail import ID if invoice was imported
Amount of messages. Required and returned for postpaid and control invoices only
Invoice status
draft, approved, rejected, deleted, misc, canceled, archived, importedTimestamp of last status change
Synchronization mode
disabled, primary, secondarySynchronization status
none, waiting, syncing, done, error, misc, exported, invalidTimestamp of sync status change
Template used for invoice generation
Invoice gross amount. Can be negative when selfBilling is 'yes'
Invoice paid amount
Invoice unpaid amount
Total VAT amount (same as amountVat)
Whether VAT is included in unit price (0=no, 1=yes)
0, 1Whether VAT is included in total (0=no, 1=yes)
0, 1VAT percentage rate
{
"amountNoVat": 5,
"amountVat": 5,
"billingBalance": {
"id": 8,
"name": "HRS_Dell Prepaid EUR",
"resourceUrl": "https://api-stg-cpaas.sms.es/bulk/billing/v2/total-balances/8"
},
"classArea": "sales",
"classCodeName": "CUSTOMER_INVOICE",
"classDomain": "invoice",
"collectionLeadId": 0,
"collectionLeadNettingInvoiceId": 0,
"collectionLeadNettingInvoiceNumber": "",
"collectionLeadNettingInvoicePaymentStatus": "",
"collectionLeadNettingInvoiceStatus": "",
"collectionLeadNettingInvoiceTotal": 0,
"collectionLeadNettingInvoiceTotalPaid": 0,
"collectionLeadNettingInvoiceTotalUnpaid": 0,
"collectionLeadNumber": "",
"collectionMode": "none",
"currency": 978,
"currencyCode": "EUR",
"custAddress": "CALLE RIBERA DEL LOIRA 8 28042",
"custAddress2": "",
"custAttn": "",
"custCity": "Madrid",
"custCountry": 756,
"custID": 3000005,
"custName": "HRS_Dell",
"custPOBox": "",
"custPost": "",
"custShortName": "HRS_Dell",
"custVatNumber": "",
"customerType": "",
"dataSourceCodeName": "PREPAID",
"dataSourceId": 1,
"deliveryDate": "2026-02-06",
"disputeNextId": 0,
"disputeStatus": "none",
"disputeStatusDate": null,
"docsDeliveryDlrStatus": "none",
"docsDeliveryDlrStatusDate": null,
"docsDeliveryStatus": "none",
"docsDeliveryStatusDate": null,
"domainCodeName": "BULK",
"domainId": 1,
"domainName": "Bulk SMS",
"domesticCurrency": 0,
"domesticCurrencyAmountNoVAT": 0,
"domesticCurrencyAmountVAT": 0,
"domesticCurrencyCode": "",
"domesticCurrencyRate": 0,
"domesticCurrencyRounding": 0,
"domesticCurrencyTotal": 0,
"dtsSelectorCodeName": "",
"dtsSelectorId": 0,
"externalRefId": "",
"id": 6113,
"industryName": "",
"insertDt": "2026-02-06T10:09:53Z",
"instanceID": 3000003,
"invDate": "2026-02-06",
"invDueDate": "2026-02-06",
"invNumber": "060226-3",
"invNumberFix": "060226-%d",
"invNumberNum": 3,
"invPeriod": "",
"invPeriodEnd": null,
"invPeriodStart": null,
"invType": 1,
"invTypeName": "Bulk Invoice - Prepaid Topup",
"invUid": "bd15ca50-40c4-7c41-805e-de469bb9139e",
"invoicingDate": "2026-02-06",
"invoicingDatePolicy": "delivery",
"lang": "en",
"nettingInvoiceId": 0,
"nettingInvoiceNumber": "",
"nettingInvoiceStatus": "",
"nettingPaymentStatus": "",
"nettingTotal": 0,
"nettingTotalPaid": 0,
"nettingTotalUnpaid": 0,
"overDueDate": 25,
"ownerBpBriefName": "",
"ownerBpName": "",
"ownerId": 0,
"ownerName": "On-Premise Staging",
"ownerVatNumber": "",
"paymentStatus": "open",
"paymentStatusDate": "2026-02-06T10:09:53Z",
"processingStatus": "none",
"reminderStatus": "closed",
"rounding": 0,
"selfBilling": "no",
"sitInvoiceEmailImportId": 0,
"status": "approved",
"statusDt": "2026-02-06T10:09:53Z",
"syncMode": "secondary",
"syncStatus": "none",
"syncStatusDt": null,
"templateID": 1,
"total": 5,
"totalPaid": 0,
"totalUnpaid": 5,
"vat": 0,
"vatInPrice": 0,
"vatInTotal": 0,
"vatPercent": 0
}Not Authorized - Missing required privileges, not authenticated, or not platform owner
Show child attributes
Machine-readable error code
Optional structured error details (e.g. validation errors)
Show child attributes
Human-readable item error description
Machine-readable item error code
Value that failed validation (if applicable)
{}Human-readable error message
{
"error": {
"code": "NOT_AUTHORIZED",
"message": "Not authorized"
}
}Invoice not found
Show child attributes
Machine-readable error code
Optional structured error details (e.g. validation errors)
Show child attributes
Human-readable item error description
Machine-readable item error code
Value that failed validation (if applicable)
{}Human-readable error message
{
"error": {
"code": "INVOICE_NOTFOUND",
"message": "Invoice not found"
}
}Conflict - delete not allowed due to invoice state
Show child attributes
Machine-readable error code
Optional structured error details (e.g. validation errors)
Show child attributes
Human-readable item error description
Machine-readable item error code
Value that failed validation (if applicable)
{}Human-readable error message
{
"error": {
"code": "COLLECTION_MEMBER_CHANGE_NOT_ALLOWED",
"message": "Invoice is collection member. Changing collection member data is not allowed"
}
}Internal Server Error
Show child attributes
Machine-readable error code
Optional structured error details (e.g. validation errors)
Show child attributes
Human-readable item error description
Machine-readable item error code
Value that failed validation (if applicable)
{}Human-readable error message
{
"error": {
"code": "INT_APP_ERROR",
"message": "Unexpected internal error"
}
}