/documents-exportReturns a paginated list of documents for export
Audit event:
- document.export.list
Privilege (one of):
- finance-invoices.view
- finance-invoices-own.view
Filter fields:
- id
- instanceId
- bpInstanceId
- bizPartnerId
- bizPartnerCountry
- bizPartnerExternalRefId
- bizPartnerName
- bizPartnerBriefName
- bizPartnerType
- bizPartnerAttn
- bizPartnerAddress
- bizPartnerPost
- bizPartnerCity
- bizPartnerVatNumber
- documentDate
- deliveryDate
- documentNumber
- documentNumberMask
- documentNumberNum
- dueDate
- periodStart
- periodEnd
- currency
- amountNoVat
- amountVat
- vatPercent
- vat
- rounding
- total
- totalUnpaid
- totalPaid
- domesticCurrency
- domesticCurrencyRate
- domesticAmountNoVat
- domesticAmountVat
- domesticRounding
- domesticTotal
- status
- insertDt
- statusDt
- paymentStatus
- paymentStatusDate
- documentType
- documentTypeName
- selfBilling
- domainId
- dataSourceId
- documentClassDomain
- documentClassArea
- syncStatus
- syncStatusDt
- disputeStatus
- docsDeliveryStatus
- docsDeliveryStatusDate
- ownerId
- ownerBpName
- ownerBpBriefName
- documentSync
- documentUuid
- currencyCode
- domesticCurrencyCode
- domainCodeName
- lang
- dataSourceCodeName
- documentClassCodeName
- dataSourceSelector
Sortable fields:
- documentUuid
- id
- instanceId
- bizPartnerId
- bizPartnerCountry
- bizPartnerExternalRefId
- bizPartnerName
- bizPartnerBriefName
- bizPartnerType
- bizPartnerAttn
- bizPartnerAddress
- bizPartnerPost
- bizPartnerCity
- bizPartnerVatNumber
- documentDate
- deliveryDate
- documentNumber
- documentNumberMask
- documentNumberNum
- dueDate
- periodStart
- periodEnd
- currency
- currencyCode
- amountNoVat
- amountVat
- vatPercent
- vat
- rounding
- total
- totalUnpaid
- totalPaid
- domesticCurrency
- domesticCurrencyCode
- domesticCurrencyRate
- domesticAmountNoVat
- domesticAmountVat
- domesticRounding
- domesticTotal
- status
- insertDt
- statusDt
- paymentStatus
- paymentStatusDate
- lang
- documentType
- documentTypeName
- selfBilling
- domainId
- domainCodeName
- dataSourceId
- dataSourceCodeName
- documentClassCodeName
- documentClassDomain
- documentClassArea
- dataSourceSelector
- syncStatus
- syncStatusDt
- disputeStatus
- docsDeliveryStatus
- docsDeliveryStatusDate
- ownerId
- ownerBpName
- ownerBpBriefName
- documentSync
Searchable attributes:
- documentUuid
- bizPartnerExternalRefId
- bizPartnerName
- bizPartnerBriefName
- bizPartnerType
- bizPartnerAttn
- bizPartnerAddress
- bizPartnerPost
- bizPartnerCity
- bizPartnerVatNumber
- documentNumber
- documentNumberMask
- currencyCode
- domesticCurrencyCode
- status
- paymentStatus
- lang
- documentTypeName
- domainCodeName
- dataSourceCodeName
- documentClassCodeName
- documentClassDomain
- documentClassArea
- dataSourceSelector
- syncStatus
- disputeStatus
- ownerId
- ownerBpName
- ownerBpBriefName
- docsDeliveryStatus
Errors:
- INVOICE_NOTFOUND - Invoice not found
- NOT_AUTHORIZED - Not authorized
- NOT_AUTHENTICATED - Not authenticated
- INT_APP_ERROR - Unexpected internal error
Request
Query parameters
Comma-separated list of embed options.
Page number for pagination
1Page size for pagination
10Paging options as page_num,page_size (value only; e.g. 1,10). Use with page_number and page_size or alone.
1,10Sort options as comma-separated attributes; prefix with - for DESC (value only; e.g. -insertDt,filename).
-insertDt,filename- Quick-search term matched against the operation Searchable attributes
q=termoreq(q)=term- Searchable field names use camelCase (listed per operation)
This endpoint accepts query parameters for search as described in the URL Filtering Guidelines.
Search criteria can be specified using the following operators and attributes:
Available Operators:
- isnull, isnotnull
- isempty, isnotempty
- eq, neq
- startswith, endswith, contains, doesnotcontain
- lt, lte, gt, gte
- in, notin
- between, notbetween
Special Cases:
- For operators [isnull, isnotnull, isempty, isnotempty]: field value can be omitted.
- For operators [in, notin]: field value must be a comma-separated list. Example:
in(status)=active,pending,deleted - For operators [between, notbetween]: field value must be two comma-separated values. Example:
between(statusDt)=2024-01-01,2024-12-31
Default Behavior:
- If operator is omitted, 'eq' is assumed
- Example: fieldName=fieldValue is equivalent to eq(fieldName)=fieldValue
Example Usage:
- eq(status)=active
- startswith(filename)=invoice
Request example
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api-cpaas.sms.es/finance/sit/v1/documents-export");
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/documents-export", Method.Get);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer <access_token>");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);curl -L -X GET "https://api-cpaas.sms.es/finance/sit/v1/documents-export" \
-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/documents-export',
options: Options(
method: 'GET',
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('GET', Uri.parse('https://api-cpaas.sms.es/finance/sit/v1/documents-export'));
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/documents-export"
method := "GET"
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))
}GET /finance/sit/v1/documents-export 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/documents-export")
.method("GET", 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.get("https://api-cpaas.sms.es/finance/sit/v1/documents-export")
.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: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("https://api-cpaas.sms.es/finance/sit/v1/documents-export", 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/documents-export",
"method": "GET",
"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("GET", "https://api-cpaas.sms.es/finance/sit/v1/documents-export");
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/documents-export")
.get()
.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, "GET");
curl_easy_setopt(curl, CURLOPT_URL, "https://api-cpaas.sms.es/finance/sit/v1/documents-export");
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: 'get',
maxBodyLength: Infinity,
url: 'https://api-cpaas.sms.es/finance/sit/v1/documents-export',
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': 'GET',
'hostname': 'api-cpaas.sms.es',
'path': '/finance/sit/v1/documents-export',
'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/documents-export"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
NSDictionary *headers = @{
@"Accept": @"application/json",
@"Authorization": @"Bearer <access_token>"
};
[request setAllHTTPHeaderFields:headers];
[request setHTTPMethod:@"GET"];
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/documents-export" 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 `GET 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/documents-export',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
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('GET', 'https://api-cpaas.sms.es/finance/sit/v1/documents-export', $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/documents-export" -Method 'GET' -Headers $headers
$response | ConvertTo-Jsonimport requests
import json
url = "https://api-cpaas.sms.es/finance/sit/v1/documents-export"
payload = {}
headers = {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
response = requests.request("GET", 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("GET", "/finance/sit/v1/documents-export", 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("GET", url = "https://api-cpaas.sms.es/finance/sit/v1/documents-export", add_headers(headers))
cat(content(res, 'text'))require "uri"
require "json"
require "net/http"
url = URI("https://api-cpaas.sms.es/finance/sit/v1/documents-export")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.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"GET")?, "https://api-cpaas.sms.es/finance/sit/v1/documents-export")
.headers(headers);
let response = request.send().await?;
let body = response.text().await?;
println!("{}", body);
Ok(())
}http --follow --timeout 3600 GET "https://api-cpaas.sms.es/finance/sit/v1/documents-export" \
'Accept':'application/json' \
'Authorization':'Bearer <access_token>'wget --no-check-certificate --quiet \
--method GET \
--timeout=0 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <access_token>' \
'https://api-cpaas.sms.es/finance/sit/v1/documents-export'var request = URLRequest(url: URL(string: "https://api-cpaas.sms.es/finance/sit/v1/documents-export")!,timeoutInterval: Double.infinity)
request.addValue("application/json", forHTTPHeaderField: "Accept")
request.addValue("Bearer <access_token>", forHTTPHeaderField: "Authorization")
request.httpMethod = "GET"
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
- 500
List of documents for export
Show child attributes
Document amount without VAT (net). Can be negative when selfBilling is yes.
Document amount including VAT. Can be negative when selfBilling is yes.
Business partner (customer/supplier) data on the document
Show child attributes
Show child attributes
Show child attributes
DocumentDataSource · object
Data source / balance info. Set by enrichDocuments when a matching billing or credit record exists: POSTPAID with empty dataSourceSelector or POSTPAID-CONTROL (billing record id); POSTPAID with PART-PAYMENT selector or PREPAID (credit record id). billingTotalBalance is present when the record references a total balance. Null when no match.
Show child attributes
DocumentBillingTotalBalance · object
Show child attributes
Option 2 · null
Option 2 · null
none, open, closednone, waiting, sending, sent, error, miscArbitrary JSON holding document sync data. Omitted unless syncStatus is done, error, misc, exported, or invalid and sync payload exists (makeDocumentExport).
Document line items from addInvoiceItems; null when the document has no items
Show child attributes
Present for some data sources (e.g. billing account / charge record)
Show child attributes
DocumentItemDataSource · object
Data source on document item. Charge/billing-account branch (POSTPAID, POSTPAID-CONTROL) includes billingAccount; PART-PAYMENT credit branch includes documentId (invoice id on the credit record) and omits billingAccount.
Show child attributes
DocumentBillingAccount · object
Billing account on document item dataSource (e.g. gate / pricing condition)
Show child attributes
MNP-related entities for the billing account (domain-dependent). BULK-MNP + POSTPAID: MnpAccount (id, instanceId, name, authName, protocol). BULK-MNP + POSTPAID-CONTROL: MnpGate (id, instanceId, name).
Show child attributes
SMS-related entities for the billing account (domain-dependent). BULK + POSTPAID: SmsAccount (id, instanceId, name, authName, protocol). BULK + POSTPAID-CONTROL: OutGate (id, name only).
Show child attributes
Option 2 · null
Present for POSTPAID with PART-PAYMENT selector (credit record invoice id)
Option 2 · null
Note text from invoice extent when extent field type is note (1); otherwise empty string
Omitted when empty (json omitempty)
Omitted when empty (json omitempty)
Omitted when zero (json omitempty)
none, open, on-hold, closedDifference between document total and amount including VAT
yes, nodraft, approved, rejected, canceled, archived, importednone, waiting, syncing, done, error, misc, exported, invalidDocument gross amount. Can be negative when selfBilling is yes.
Omitted unless embed=trafficReports
Show child attributes
Show child attributes
Show child attributes
{
"data": [
{
"amountNoVat": 0.03,
"amountVat": 0.03,
"bizPartner": {
"address": "Example Street 1",
"attn": "",
"briefName": "Example BP",
"city": "Example City",
"customAttributes": null,
"name": "Example Business Partner Ltd",
"partnerType": "",
"post": "1000",
"vatNumber": ""
},
"bizPartnerCountry": 756,
"bizPartnerExternalRefId": "",
"bizPartnerId": 3000001,
"currency": 978,
"currencyCode": "EUR",
"dataSource": {
"billingTotalBalance": {
"billingTypeCodeName": "POSTPAID",
"bizPartnerId": 3000001,
"currency": 978,
"currencyCode": "EUR",
"customAttributes": null,
"id": 1,
"instanceId": 3000001,
"name": "Example BP Internal Postpaid EUR"
},
"id": 1
},
"dataSourceCodeName": "POSTPAID-CONTROL",
"dataSourceId": 5,
"dataSourceSelector": "",
"deliveryDate": "2022-02-28",
"disputeStatus": "none",
"docsDeliveryStatus": "sent",
"docsDeliveryStatusDate": "2024-03-19T20:16:30Z",
"documentClassArea": "purchase",
"documentClassCodeName": "CONTROL_INVOICE",
"documentClassDomain": "invoice",
"documentDate": "2022-02-28",
"documentNumber": "010322-1",
"documentNumberMask": "010322-%d",
"documentNumberNum": 1,
"documentType": 8,
"documentTypeName": "Bulk Postpaid Control Invoice",
"documentUuid": "a5d6baa8-4027-fab2-80a4-42005a7a4767",
"domainCodeName": "BULK",
"domainId": 1,
"domesticAmountNoVat": 0,
"domesticAmountVat": 0,
"domesticCurrency": 0,
"domesticCurrencyCode": "",
"domesticCurrencyRate": 0,
"domesticRounding": 0,
"domesticTotal": 0,
"dueDate": "2022-03-30",
"id": 1,
"insertDt": "2022-03-01T07:00:02Z",
"instanceId": 3000003,
"items": [
{
"dataSource": {
"billingAccount": {
"billingTypeCodeName": "POSTPAID",
"bizPartnerId": 3000001,
"currency": 978,
"currencyCode": "EUR",
"customAttributes": [
{
"codeName": "EXAMPLE_ATTR",
"value": "0"
}
],
"id": 1,
"instanceId": 3000001,
"name": "Example Gate",
"smsConnections": [
{
"id": 5000,
"name": "Example Gate"
},
{
"id": 5365,
"name": "Connection A"
},
{
"id": 5369,
"name": "Connection B"
},
{
"id": 5586,
"name": "Connection C"
}
]
},
"id": 1
},
"dataSourceCodeName": "POSTPAID-CONTROL",
"dataSourceForeignKey": 1,
"dataSourceId": 5,
"dataSourceSelector": "",
"documentId": 1,
"id": 3,
"measureUnit": "PIECE",
"name": "Account: «Example Gate»",
"ordNum": 3,
"price": 0,
"quantity": 2,
"totalNoVat": 0.03,
"totalVat": 0.03
}
],
"lang": "en",
"note": "",
"paymentStatus": "none",
"paymentStatusDate": null,
"periodEnd": "2022-02-28",
"periodStart": "2022-02-01",
"rounding": 0,
"selfBilling": "no",
"status": "draft",
"statusDt": "2022-03-01T07:00:02Z",
"syncStatus": "none",
"syncStatusDt": null,
"total": 0.03,
"totalPaid": 0,
"totalUnpaid": 0,
"vat": 0,
"vatPercent": 0
},
{
"amountNoVat": 10,
"amountVat": 12.5,
"bizPartner": {
"address": "Customer Street 1",
"attn": "",
"briefName": "Example Customer",
"city": "Customer City",
"customAttributes": null,
"name": "Example Customer AB",
"partnerType": "",
"post": "100 00",
"vatNumber": ""
},
"bizPartnerCountry": 752,
"bizPartnerExternalRefId": "ext-ref-001",
"bizPartnerId": 12436,
"currency": 978,
"currencyCode": "EUR",
"dataSource": {
"billingTotalBalance": {
"billingTypeCodeName": "POSTPAID",
"bizPartnerId": 12436,
"currency": 978,
"currencyCode": "EUR",
"customAttributes": null,
"id": 10,
"instanceId": 637,
"name": "Example Customer Postpaid EUR"
},
"id": 7
},
"dataSourceCodeName": "POSTPAID",
"dataSourceId": 2,
"dataSourceSelector": "PART-PAYMENT",
"deliveryDate": "2019-11-22",
"disputeStatus": "open",
"docsDeliveryStatus": "error",
"docsDeliveryStatusDate": "2025-12-15T13:56:13Z",
"documentClassArea": "sales",
"documentClassCodeName": "CUSTOMER_INVOICE",
"documentClassDomain": "invoice",
"documentDate": "2019-11-22",
"documentNumber": "221119-3",
"documentNumberMask": "221119-%d",
"documentNumberNum": 3,
"documentType": 608,
"documentTypeName": "Bulk Invoice - Postpaid Part Payment",
"documentUuid": "906e635f-d324-11ea-93b3-2e50570882a5",
"domainCodeName": "BULK",
"domainId": 1,
"domesticAmountNoVat": 0,
"domesticAmountVat": 0,
"domesticCurrency": 0,
"domesticCurrencyCode": "",
"domesticCurrencyRate": 0,
"domesticRounding": 0,
"domesticTotal": 0,
"dueDate": "2019-11-30",
"id": 28,
"insertDt": "2019-11-22T13:28:46Z",
"instanceId": 639,
"items": [
{
"dataSource": null,
"dataSourceCodeName": "",
"dataSourceForeignKey": 0,
"dataSourceId": 0,
"dataSourceSelector": "",
"documentId": 28,
"id": 19,
"measureUnit": "WEEK",
"name": "Postpaid Bulk SMS Part Payment\nExample Customer Postpaid EUR",
"ordNum": 1,
"price": 0,
"quantity": 0,
"totalNoVat": 10,
"totalVat": 12.5
}
],
"lang": "en",
"note": "",
"ownerBpBriefName": "EO",
"ownerBpName": "Example Owner",
"ownerId": 13269,
"paymentStatus": "open",
"paymentStatusDate": "2025-02-18T08:00:10Z",
"periodEnd": null,
"periodStart": null,
"rounding": 0,
"selfBilling": "no",
"status": "approved",
"statusDt": "2019-11-22T13:28:47Z",
"syncStatus": "none",
"syncStatusDt": null,
"total": 12.5,
"totalPaid": 6,
"totalUnpaid": 6.5,
"vat": 2.5,
"vatPercent": 25
}
],
"meta": {
"pagination": {
"count": 2,
"currentPage": 1,
"perPage": 10,
"total": 2,
"totalPages": 1
}
}
}Not Authorized Not Authenticated
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"
}
}No documents 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"
}
}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"
}
}