curl --request PATCH \
--url https://external.nectarclimate.com/v2.2/document/{document_id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"dueDate": "2023-12-25",
"billDate": "2023-12-25",
"invoiceId": "<string>",
"previousCloseBalance": "<string>",
"afterPreviousTotalPayment": "<string>",
"afterPreviousCharges": "<string>",
"afterPreviousCredits": "<string>",
"currentOpenBalance": "<string>",
"currentCharges": "<string>",
"credits": "<string>",
"taxCharges": "<string>",
"interestCharges": "<string>",
"electricitySupplyCharges": "<string>",
"electricityDeliveryCharges": "<string>",
"electricityDemandCharges": "<string>",
"gasSupplyCharges": "<string>",
"gasDeliveryCharges": "<string>"
}
'import requests
url = "https://external.nectarclimate.com/v2.2/document/{document_id}"
payload = {
"dueDate": "2023-12-25",
"billDate": "2023-12-25",
"invoiceId": "<string>",
"previousCloseBalance": "<string>",
"afterPreviousTotalPayment": "<string>",
"afterPreviousCharges": "<string>",
"afterPreviousCredits": "<string>",
"currentOpenBalance": "<string>",
"currentCharges": "<string>",
"credits": "<string>",
"taxCharges": "<string>",
"interestCharges": "<string>",
"electricitySupplyCharges": "<string>",
"electricityDeliveryCharges": "<string>",
"electricityDemandCharges": "<string>",
"gasSupplyCharges": "<string>",
"gasDeliveryCharges": "<string>"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dueDate: '2023-12-25',
billDate: '2023-12-25',
invoiceId: '<string>',
previousCloseBalance: '<string>',
afterPreviousTotalPayment: '<string>',
afterPreviousCharges: '<string>',
afterPreviousCredits: '<string>',
currentOpenBalance: '<string>',
currentCharges: '<string>',
credits: '<string>',
taxCharges: '<string>',
interestCharges: '<string>',
electricitySupplyCharges: '<string>',
electricityDeliveryCharges: '<string>',
electricityDemandCharges: '<string>',
gasSupplyCharges: '<string>',
gasDeliveryCharges: '<string>'
})
};
fetch('https://external.nectarclimate.com/v2.2/document/{document_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://external.nectarclimate.com/v2.2/document/{document_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([
'dueDate' => '2023-12-25',
'billDate' => '2023-12-25',
'invoiceId' => '<string>',
'previousCloseBalance' => '<string>',
'afterPreviousTotalPayment' => '<string>',
'afterPreviousCharges' => '<string>',
'afterPreviousCredits' => '<string>',
'currentOpenBalance' => '<string>',
'currentCharges' => '<string>',
'credits' => '<string>',
'taxCharges' => '<string>',
'interestCharges' => '<string>',
'electricitySupplyCharges' => '<string>',
'electricityDeliveryCharges' => '<string>',
'electricityDemandCharges' => '<string>',
'gasSupplyCharges' => '<string>',
'gasDeliveryCharges' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://external.nectarclimate.com/v2.2/document/{document_id}"
payload := strings.NewReader("{\n \"dueDate\": \"2023-12-25\",\n \"billDate\": \"2023-12-25\",\n \"invoiceId\": \"<string>\",\n \"previousCloseBalance\": \"<string>\",\n \"afterPreviousTotalPayment\": \"<string>\",\n \"afterPreviousCharges\": \"<string>\",\n \"afterPreviousCredits\": \"<string>\",\n \"currentOpenBalance\": \"<string>\",\n \"currentCharges\": \"<string>\",\n \"credits\": \"<string>\",\n \"taxCharges\": \"<string>\",\n \"interestCharges\": \"<string>\",\n \"electricitySupplyCharges\": \"<string>\",\n \"electricityDeliveryCharges\": \"<string>\",\n \"electricityDemandCharges\": \"<string>\",\n \"gasSupplyCharges\": \"<string>\",\n \"gasDeliveryCharges\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-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://external.nectarclimate.com/v2.2/document/{document_id}")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dueDate\": \"2023-12-25\",\n \"billDate\": \"2023-12-25\",\n \"invoiceId\": \"<string>\",\n \"previousCloseBalance\": \"<string>\",\n \"afterPreviousTotalPayment\": \"<string>\",\n \"afterPreviousCharges\": \"<string>\",\n \"afterPreviousCredits\": \"<string>\",\n \"currentOpenBalance\": \"<string>\",\n \"currentCharges\": \"<string>\",\n \"credits\": \"<string>\",\n \"taxCharges\": \"<string>\",\n \"interestCharges\": \"<string>\",\n \"electricitySupplyCharges\": \"<string>\",\n \"electricityDeliveryCharges\": \"<string>\",\n \"electricityDemandCharges\": \"<string>\",\n \"gasSupplyCharges\": \"<string>\",\n \"gasDeliveryCharges\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.nectarclimate.com/v2.2/document/{document_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dueDate\": \"2023-12-25\",\n \"billDate\": \"2023-12-25\",\n \"invoiceId\": \"<string>\",\n \"previousCloseBalance\": \"<string>\",\n \"afterPreviousTotalPayment\": \"<string>\",\n \"afterPreviousCharges\": \"<string>\",\n \"afterPreviousCredits\": \"<string>\",\n \"currentOpenBalance\": \"<string>\",\n \"currentCharges\": \"<string>\",\n \"credits\": \"<string>\",\n \"taxCharges\": \"<string>\",\n \"interestCharges\": \"<string>\",\n \"electricitySupplyCharges\": \"<string>\",\n \"electricityDeliveryCharges\": \"<string>\",\n \"electricityDemandCharges\": \"<string>\",\n \"gasSupplyCharges\": \"<string>\",\n \"gasDeliveryCharges\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"auditTrailUrl": "<string>",
"url": "<string>",
"billDate": "2023-12-25",
"chargesUnits": "USD",
"utilityCompany": "<string>",
"status": "<string>",
"flaggedStatus": "<string>",
"revisedDocumentId": "<string>",
"connectionId": "<string>",
"company": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyExternalId": "<string>",
"usageData": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"usage": "<string>",
"usageUnits": "J",
"timeOfUseBreakdown": [
{
"timeOfUse": "PEAK",
"usage": "<string>",
"usageUnits": "Wh",
"description": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25"
}
],
"netMeteringGeneratedKwh": "<string>",
"netMeteringGridImportKwh": "<string>",
"exclusion": true,
"revisedDocumentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serviceAddress": "<string>",
"meter": "<string>",
"site": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"dataCollectionStopDate": "2023-12-25",
"externalId": "<string>",
"address": "<string>",
"path": [
"<string>"
],
"occupancyPercent": "<string>",
"occupancyApplicationMode": "DISABLED",
"dummySiteReason": "<string>"
},
"identifiers": [
{
"rawName": "<string>",
"value": "<string>",
"name": "<string>"
}
],
"datasourceType": "ELECTRICITY",
"timeOfUse": "PEAK",
"netMeteringType": "EXPORT",
"waterType": "POTABLE_WATER",
"meterHighLow": "HIGH",
"gasType": "NATURAL_GAS",
"fuelType": "ANTHRACITE_COAL",
"districtType": "HEATING",
"districtMediumType": "HOT_WATER",
"wasteDescription": "<string>",
"wasteType": "<string>",
"wasteStream": "<string>",
"refrigerantType": "R11",
"additionalFields": {},
"meterIsTracked": true,
"meterAddress": "<string>",
"electricityType": "USAGE",
"updated": "2023-11-07T05:31:56Z",
"isEstimated": true,
"isImplied": true,
"currentReading": "<string>",
"previousReading": "<string>",
"multiplier": "<string>",
"multiplierDescription": "<string>",
"multiplier2": "<string>",
"multiplier2Description": "<string>",
"fractionRenewable": "<string>",
"netMeteringGridExportKwh": "<string>",
"tariff": "<string>",
"billedDemand": "<string>",
"supplierName": "<string>",
"utilityName": "<string>",
"country": "<string>",
"apparentUsage": "<string>",
"apparentUsageUnits": "kVAh",
"reactiveUsage": "<string>",
"reactiveUsageUnits": "kVArh",
"powerFactor": "<string>"
}
],
"lineItems": [
{
"rate": "<string>",
"usageData": [
"<string>"
],
"totalCharge": "<string>",
"description": "<string>",
"quantity": "<string>",
"quantityUnits": "<string>",
"multipliers": [
"<string>"
],
"accountIds": [
"<string>"
],
"chargeType": "TAX",
"electricityChargeType": "SUPPLY",
"electricityIsDemand": true,
"electricityTimeOfUse": "<string>",
"gasChargeType": "SUPPLY",
"billingPeriod": "CURRENT"
}
],
"supersededDocumentIds": [
"<string>"
],
"demandMeters": [
{
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"isEstimated": true,
"demandUsage": "<string>",
"demandUsageUnits": "kW",
"demandType": "<string>",
"usageDataIds": [
"<string>"
],
"description": "<string>"
}
],
"issues": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"issueType": "POTENTIAL_DUPLICATE",
"description": "<string>",
"isResolved": true,
"resolvedAt": "2023-11-07T05:31:56Z",
"resolutionNotes": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"details": {
"potentialDuplicateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
],
"updated": "2023-11-07T05:31:56Z",
"fileName": "<string>",
"email": "jsmith@example.com",
"jobId": "<string>",
"notes": "<string>",
"dueDate": "2023-12-25",
"totalCharges": "<string>",
"sourceType": "INVOICE",
"isFlagged": true,
"invoiceId": "<string>",
"previousCloseBalance": "<string>",
"afterPreviousTotalPayment": "<string>",
"afterPreviousCharges": "<string>",
"afterPreviousCredits": "<string>",
"currentOpenBalance": "<string>",
"currentCharges": "<string>",
"credits": "<string>",
"taxCharges": "<string>",
"interestCharges": "<string>",
"electricitySupplyCharges": "<string>",
"electricityDeliveryCharges": "<string>",
"electricityDemandCharges": "<string>",
"gasSupplyCharges": "<string>",
"gasDeliveryCharges": "<string>"
}Update Document Details
Update specific fields of a document by its document ID. Users must have access to the document to update it. Returns the updated document details.
curl --request PATCH \
--url https://external.nectarclimate.com/v2.2/document/{document_id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"dueDate": "2023-12-25",
"billDate": "2023-12-25",
"invoiceId": "<string>",
"previousCloseBalance": "<string>",
"afterPreviousTotalPayment": "<string>",
"afterPreviousCharges": "<string>",
"afterPreviousCredits": "<string>",
"currentOpenBalance": "<string>",
"currentCharges": "<string>",
"credits": "<string>",
"taxCharges": "<string>",
"interestCharges": "<string>",
"electricitySupplyCharges": "<string>",
"electricityDeliveryCharges": "<string>",
"electricityDemandCharges": "<string>",
"gasSupplyCharges": "<string>",
"gasDeliveryCharges": "<string>"
}
'import requests
url = "https://external.nectarclimate.com/v2.2/document/{document_id}"
payload = {
"dueDate": "2023-12-25",
"billDate": "2023-12-25",
"invoiceId": "<string>",
"previousCloseBalance": "<string>",
"afterPreviousTotalPayment": "<string>",
"afterPreviousCharges": "<string>",
"afterPreviousCredits": "<string>",
"currentOpenBalance": "<string>",
"currentCharges": "<string>",
"credits": "<string>",
"taxCharges": "<string>",
"interestCharges": "<string>",
"electricitySupplyCharges": "<string>",
"electricityDeliveryCharges": "<string>",
"electricityDemandCharges": "<string>",
"gasSupplyCharges": "<string>",
"gasDeliveryCharges": "<string>"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dueDate: '2023-12-25',
billDate: '2023-12-25',
invoiceId: '<string>',
previousCloseBalance: '<string>',
afterPreviousTotalPayment: '<string>',
afterPreviousCharges: '<string>',
afterPreviousCredits: '<string>',
currentOpenBalance: '<string>',
currentCharges: '<string>',
credits: '<string>',
taxCharges: '<string>',
interestCharges: '<string>',
electricitySupplyCharges: '<string>',
electricityDeliveryCharges: '<string>',
electricityDemandCharges: '<string>',
gasSupplyCharges: '<string>',
gasDeliveryCharges: '<string>'
})
};
fetch('https://external.nectarclimate.com/v2.2/document/{document_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://external.nectarclimate.com/v2.2/document/{document_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([
'dueDate' => '2023-12-25',
'billDate' => '2023-12-25',
'invoiceId' => '<string>',
'previousCloseBalance' => '<string>',
'afterPreviousTotalPayment' => '<string>',
'afterPreviousCharges' => '<string>',
'afterPreviousCredits' => '<string>',
'currentOpenBalance' => '<string>',
'currentCharges' => '<string>',
'credits' => '<string>',
'taxCharges' => '<string>',
'interestCharges' => '<string>',
'electricitySupplyCharges' => '<string>',
'electricityDeliveryCharges' => '<string>',
'electricityDemandCharges' => '<string>',
'gasSupplyCharges' => '<string>',
'gasDeliveryCharges' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://external.nectarclimate.com/v2.2/document/{document_id}"
payload := strings.NewReader("{\n \"dueDate\": \"2023-12-25\",\n \"billDate\": \"2023-12-25\",\n \"invoiceId\": \"<string>\",\n \"previousCloseBalance\": \"<string>\",\n \"afterPreviousTotalPayment\": \"<string>\",\n \"afterPreviousCharges\": \"<string>\",\n \"afterPreviousCredits\": \"<string>\",\n \"currentOpenBalance\": \"<string>\",\n \"currentCharges\": \"<string>\",\n \"credits\": \"<string>\",\n \"taxCharges\": \"<string>\",\n \"interestCharges\": \"<string>\",\n \"electricitySupplyCharges\": \"<string>\",\n \"electricityDeliveryCharges\": \"<string>\",\n \"electricityDemandCharges\": \"<string>\",\n \"gasSupplyCharges\": \"<string>\",\n \"gasDeliveryCharges\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-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://external.nectarclimate.com/v2.2/document/{document_id}")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dueDate\": \"2023-12-25\",\n \"billDate\": \"2023-12-25\",\n \"invoiceId\": \"<string>\",\n \"previousCloseBalance\": \"<string>\",\n \"afterPreviousTotalPayment\": \"<string>\",\n \"afterPreviousCharges\": \"<string>\",\n \"afterPreviousCredits\": \"<string>\",\n \"currentOpenBalance\": \"<string>\",\n \"currentCharges\": \"<string>\",\n \"credits\": \"<string>\",\n \"taxCharges\": \"<string>\",\n \"interestCharges\": \"<string>\",\n \"electricitySupplyCharges\": \"<string>\",\n \"electricityDeliveryCharges\": \"<string>\",\n \"electricityDemandCharges\": \"<string>\",\n \"gasSupplyCharges\": \"<string>\",\n \"gasDeliveryCharges\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.nectarclimate.com/v2.2/document/{document_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dueDate\": \"2023-12-25\",\n \"billDate\": \"2023-12-25\",\n \"invoiceId\": \"<string>\",\n \"previousCloseBalance\": \"<string>\",\n \"afterPreviousTotalPayment\": \"<string>\",\n \"afterPreviousCharges\": \"<string>\",\n \"afterPreviousCredits\": \"<string>\",\n \"currentOpenBalance\": \"<string>\",\n \"currentCharges\": \"<string>\",\n \"credits\": \"<string>\",\n \"taxCharges\": \"<string>\",\n \"interestCharges\": \"<string>\",\n \"electricitySupplyCharges\": \"<string>\",\n \"electricityDeliveryCharges\": \"<string>\",\n \"electricityDemandCharges\": \"<string>\",\n \"gasSupplyCharges\": \"<string>\",\n \"gasDeliveryCharges\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"auditTrailUrl": "<string>",
"url": "<string>",
"billDate": "2023-12-25",
"chargesUnits": "USD",
"utilityCompany": "<string>",
"status": "<string>",
"flaggedStatus": "<string>",
"revisedDocumentId": "<string>",
"connectionId": "<string>",
"company": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyExternalId": "<string>",
"usageData": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"usage": "<string>",
"usageUnits": "J",
"timeOfUseBreakdown": [
{
"timeOfUse": "PEAK",
"usage": "<string>",
"usageUnits": "Wh",
"description": "<string>",
"startDate": "2023-12-25",
"endDate": "2023-12-25"
}
],
"netMeteringGeneratedKwh": "<string>",
"netMeteringGridImportKwh": "<string>",
"exclusion": true,
"revisedDocumentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serviceAddress": "<string>",
"meter": "<string>",
"site": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"dataCollectionStopDate": "2023-12-25",
"externalId": "<string>",
"address": "<string>",
"path": [
"<string>"
],
"occupancyPercent": "<string>",
"occupancyApplicationMode": "DISABLED",
"dummySiteReason": "<string>"
},
"identifiers": [
{
"rawName": "<string>",
"value": "<string>",
"name": "<string>"
}
],
"datasourceType": "ELECTRICITY",
"timeOfUse": "PEAK",
"netMeteringType": "EXPORT",
"waterType": "POTABLE_WATER",
"meterHighLow": "HIGH",
"gasType": "NATURAL_GAS",
"fuelType": "ANTHRACITE_COAL",
"districtType": "HEATING",
"districtMediumType": "HOT_WATER",
"wasteDescription": "<string>",
"wasteType": "<string>",
"wasteStream": "<string>",
"refrigerantType": "R11",
"additionalFields": {},
"meterIsTracked": true,
"meterAddress": "<string>",
"electricityType": "USAGE",
"updated": "2023-11-07T05:31:56Z",
"isEstimated": true,
"isImplied": true,
"currentReading": "<string>",
"previousReading": "<string>",
"multiplier": "<string>",
"multiplierDescription": "<string>",
"multiplier2": "<string>",
"multiplier2Description": "<string>",
"fractionRenewable": "<string>",
"netMeteringGridExportKwh": "<string>",
"tariff": "<string>",
"billedDemand": "<string>",
"supplierName": "<string>",
"utilityName": "<string>",
"country": "<string>",
"apparentUsage": "<string>",
"apparentUsageUnits": "kVAh",
"reactiveUsage": "<string>",
"reactiveUsageUnits": "kVArh",
"powerFactor": "<string>"
}
],
"lineItems": [
{
"rate": "<string>",
"usageData": [
"<string>"
],
"totalCharge": "<string>",
"description": "<string>",
"quantity": "<string>",
"quantityUnits": "<string>",
"multipliers": [
"<string>"
],
"accountIds": [
"<string>"
],
"chargeType": "TAX",
"electricityChargeType": "SUPPLY",
"electricityIsDemand": true,
"electricityTimeOfUse": "<string>",
"gasChargeType": "SUPPLY",
"billingPeriod": "CURRENT"
}
],
"supersededDocumentIds": [
"<string>"
],
"demandMeters": [
{
"startDate": "2023-12-25",
"endDate": "2023-12-25",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"isEstimated": true,
"demandUsage": "<string>",
"demandUsageUnits": "kW",
"demandType": "<string>",
"usageDataIds": [
"<string>"
],
"description": "<string>"
}
],
"issues": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"issueType": "POTENTIAL_DUPLICATE",
"description": "<string>",
"isResolved": true,
"resolvedAt": "2023-11-07T05:31:56Z",
"resolutionNotes": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"details": {
"potentialDuplicateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
],
"updated": "2023-11-07T05:31:56Z",
"fileName": "<string>",
"email": "jsmith@example.com",
"jobId": "<string>",
"notes": "<string>",
"dueDate": "2023-12-25",
"totalCharges": "<string>",
"sourceType": "INVOICE",
"isFlagged": true,
"invoiceId": "<string>",
"previousCloseBalance": "<string>",
"afterPreviousTotalPayment": "<string>",
"afterPreviousCharges": "<string>",
"afterPreviousCredits": "<string>",
"currentOpenBalance": "<string>",
"currentCharges": "<string>",
"credits": "<string>",
"taxCharges": "<string>",
"interestCharges": "<string>",
"electricitySupplyCharges": "<string>",
"electricityDeliveryCharges": "<string>",
"electricityDemandCharges": "<string>",
"gasSupplyCharges": "<string>",
"gasDeliveryCharges": "<string>"
}Body
Serializer for updating Document objects.
Sum of tax charges at meter and bill level. This includes various types of taxes such as VAT (Value Added Tax), GST (Goods and Services Tax), and other applicable taxes. VAT is common in many countries, while GST is typically used in countries like Australia and New Zealand. Other forms of sales or consumption taxes may also be included here.
^-?\d{0,18}(?:\.\d{0,2})?$Currency unit for the charges and balances.
USD- UsdEUR- EurAED- AedAFN- AfnALL- AllAMD- AmdANG- AngAOA- AoaARS- ArsAUD- AudAWG- AwgAZN- AznBAM- BamBBD- BbdBDT- BdtBGN- BgnBHD- BhdBIF- BifBMD- BmdBND- BndBOB- BobBOV- BovBRL- BrlBSD- BsdBTN- BtnBWP- BwpBYN- BynBZD- BzdCAD- CadCDF- CdfCHE- CheCHF- ChfCHW- ChwCLF- ClfCLP- ClpCNY- CnyCOP- CopCOU- CouCRC- CrcCUC- CucCUP- CupCVE- CveCZK- CzkDJF- DjfDKK- DkkDOP- DopDZD- DzdEGP- EgpERN- ErnETB- EtbFJD- FjdFKP- FkpGBP- GbpGEL- GelGHS- GhsGIP- GipGMD- GmdGNF- GnfGTQ- GtqGYD- GydHKD- HkdHNL- HnlHRK- HrkHTG- HtgHUF- HufIDR- IdrILS- IlsINR- InrIQD- IqdIRR- IrrISK- IskJMD- JmdJOD- JodJPY- JpyKES- KesKGS- KgsKHR- KhrKMF- KmfKPW- KpwKRW- KrwKWD- KwdKYD- KydKZT- KztLAK- LakLBP- LbpLKR- LkrLRD- LrdLSL- LslLYD- LydMAD- MadMDL- MdlMGA- MgaMKD- MkdMMK- MmkMNT- MntMOP- MopMRU- MruMUR- MurMVR- MvrMWK- MwkMXN- MxnMXV- MxvMYR- MyrMZN- MznNAD- NadNGN- NgnNIO- NioNOK- NokNPR- NprNZD- NzdOMR- OmrPAB- PabPEN- PenPGK- PgkPHP- PhpPKR- PkrPLN- PlnPYG- PygQAR- QarRON- RonRSD- RsdRUB- RubRWF- RwfSAR- SarSBD- SbdSCR- ScrSDG- SdgSEK- SekSGD- SgdSHP- ShpSLE- SleSLL- SllSOS- SosSRD- SrdSSP- SspSTN- StnSVC- SvcSYP- SypSZL- SzlTHB- ThbTJS- TjsTMT- TmtTND- TndTOP- TopTRY- TryTTD- TtdTWD- TwdTZS- TzsUAH- UahUGX- UgxUSN- UsnUYI- UyiUYU- UyuUZS- UzsVED- VedVEF- VefVND- VndVUV- VuvWST- WstXAF- XafXCD- XcdXOF- XofXPF- XpfXSU- XsuYER- YerZAR- ZarZMW- ZmwZWL- Zwl
USD, EUR, AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USN, UYI, UYU, UZS, VED, VEF, VND, VUV, WST, XAF, XCD, XOF, XPF, XSU, YER, ZAR, ZMW, ZWL Response
Document returned by the v2.2 API.
Includes usage data with electricity fields, a demandMeters array, bill issues, charges, and billing metadata.
Currency unit for the charges and balances.
USD- UsdEUR- EurAED- AedAFN- AfnALL- AllAMD- AmdANG- AngAOA- AoaARS- ArsAUD- AudAWG- AwgAZN- AznBAM- BamBBD- BbdBDT- BdtBGN- BgnBHD- BhdBIF- BifBMD- BmdBND- BndBOB- BobBOV- BovBRL- BrlBSD- BsdBTN- BtnBWP- BwpBYN- BynBZD- BzdCAD- CadCDF- CdfCHE- CheCHF- ChfCHW- ChwCLF- ClfCLP- ClpCNY- CnyCOP- CopCOU- CouCRC- CrcCUC- CucCUP- CupCVE- CveCZK- CzkDJF- DjfDKK- DkkDOP- DopDZD- DzdEGP- EgpERN- ErnETB- EtbFJD- FjdFKP- FkpGBP- GbpGEL- GelGHS- GhsGIP- GipGMD- GmdGNF- GnfGTQ- GtqGYD- GydHKD- HkdHNL- HnlHRK- HrkHTG- HtgHUF- HufIDR- IdrILS- IlsINR- InrIQD- IqdIRR- IrrISK- IskJMD- JmdJOD- JodJPY- JpyKES- KesKGS- KgsKHR- KhrKMF- KmfKPW- KpwKRW- KrwKWD- KwdKYD- KydKZT- KztLAK- LakLBP- LbpLKR- LkrLRD- LrdLSL- LslLYD- LydMAD- MadMDL- MdlMGA- MgaMKD- MkdMMK- MmkMNT- MntMOP- MopMRU- MruMUR- MurMVR- MvrMWK- MwkMXN- MxnMXV- MxvMYR- MyrMZN- MznNAD- NadNGN- NgnNIO- NioNOK- NokNPR- NprNZD- NzdOMR- OmrPAB- PabPEN- PenPGK- PgkPHP- PhpPKR- PkrPLN- PlnPYG- PygQAR- QarRON- RonRSD- RsdRUB- RubRWF- RwfSAR- SarSBD- SbdSCR- ScrSDG- SdgSEK- SekSGD- SgdSHP- ShpSLE- SleSLL- SllSOS- SosSRD- SrdSSP- SspSTN- StnSVC- SvcSYP- SypSZL- SzlTHB- ThbTJS- TjsTMT- TmtTND- TndTOP- TopTRY- TryTTD- TtdTWD- TwdTZS- TzsUAH- UahUGX- UgxUSN- UsnUYI- UyiUYU- UyuUZS- UzsVED- VedVEF- VefVND- VndVUV- VuvWST- WstXAF- XafXCD- XcdXOF- XofXPF- XpfXSU- XsuYER- YerZAR- ZarZMW- ZmwZWL- Zwl
USD, EUR, AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USN, UYI, UYU, UZS, VED, VEF, VND, VUV, WST, XAF, XCD, XOF, XPF, XSU, YER, ZAR, ZMW, ZWL Email of the user who uploaded or created the document. If uploaded programmatically, this will be the email associated with the API key. Email will show admin@nectarclimate.com if document was scraped by Nectar.
Source of the data for this workflow result. Defaults to INVOICE for a regularly billed invoice. Can also be more granular SMART_METER data or MANUAL for manually entered data.
INVOICE- InvoiceSMART_METER- Smart MeterMANUAL- Manual
INVOICE, SMART_METER, MANUAL Sum of tax charges at meter and bill level. This includes various types of taxes such as VAT (Value Added Tax), GST (Goods and Services Tax), and other applicable taxes. VAT is common in many countries, while GST is typically used in countries like Australia and New Zealand. Other forms of sales or consumption taxes may also be included here.
^-?\d{0,18}(?:\.\d{0,2})?$