Invoices

No OAuth-enabled endpoints in this section. Turn off the OAuth filter in the sidebar to see all of its endpoints.

GET/2/invoices/billable-items/export

Export Billable Items for a Billing Period

Authorization
User sessionAPI credential
Permissions
invoices:read
OAuth
-
Rate limit
1 / 1s
Request
Query parameters4
typestringREQUIRED
yearintegerREQUIRED
monthintegerREQUIRED
includeChildProviderInvoicesboolean
Header parameters1
Acceptstring
application/x-ndjsontext/csvapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Responses
200The billable items of the billing period NDJSON · CSV · XLSX
Accept
Accept: application/x-ndjsonDefault

One JSON record per line. The last line is an end frame, {"type": "end", "totalCount": n}, whose totalCount is the number of record lines. A response without the end frame was cut off before the export completed; discard it and retry.

A row of the billable items export of a cpo-usage invoice.
accountIdstringREQUIRED
accountNamestringREQUIRED
amountnumberREQUIRED
amountWithVatnumberREQUIRED
baseAmountnumberREQUIRED
billableItemIdstringREQUIRED
billingPlanIdstringREQUIRED
billingPlanNamestringREQUIRED
calculationTypestringREQUIRED
chargePointEvseIdstringREQUIRED
chargePointOcppIdstringREQUIRED
chargePointSerialNumberstringREQUIRED
currencystringREQUIRED
evseControllerIdstringREQUIRED
feeTypestringREQUIRED
invoiceIdstringREQUIRED
invoiceIdentifierstringREQUIRED
labelstringREQUIRED
locationIdstringREQUIRED
locationNamestringREQUIRED
paymentIdstringREQUIRED
paymentMethodstringREQUIRED
percentagenumberREQUIRED
quantitynumberREQUIRED
ratenumberREQUIRED
sessionEndedAtstringREQUIRED
sessionExternalIdstringREQUIRED
sessionIdstringREQUIRED
sessionKwhnumberREQUIRED
sessionStartedAtstringREQUIRED
userIdstringREQUIRED
userNamestringREQUIRED
vatPercentagenumberREQUIRED
vatRulestringREQUIRED
400Invalid Request application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
401Unauthorized application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
403Forbidden: missing a required permission, or no access to this resource application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
404Not Found application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
406No supported export format matches the Accept header application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
409The data behind one of the invoices is not complete yet; retry later application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
429Too many requests: the rate limit was exceeded application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
500Internal server error application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
503The export cannot be produced right now; retry later application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
POST/2/invoices/search

Search Invoices

Authorization
User sessionAPI credential
Permissions
invoices:read
OAuth
-
Request
Request bodyapplication/json
accountIdstring
accountsstring[]
fromstring <date-time>
includeChildProviderInvoicesboolean
default true
limitnumber
default 50
monthnumber
skipnumber
default 0
sortobject
default {"field":"createdAt","order":"desc"}
fieldstringREQUIRED
createdAtidentifiermonthtypeyear
orderstringREQUIRED
ascdesc
tostring <date-time>
typestring
yearnumber
Responses
200OK application/json
dataPublicInvoiceResource[]
accountIdstringREQUIRED
billingPeriodstringREQUIRED
currencystringREQUIRED
errorPublicInvoiceError
breakdownobject
bridge-submission-failedPublicInvoiceErrorBreakdownValue[]
currency-mismatchPublicInvoiceErrorBreakdownValue[]
pdf-generation-failedPublicInvoiceErrorBreakdownValue[]
recipient-missing-credit-billingPublicInvoiceErrorBreakdownValue[]
uncategorizedPublicInvoiceErrorBreakdownValue[]
unknownPublicInvoiceErrorBreakdownValue[]
unpriced-resourcePublicInvoiceErrorBreakdownValue[]
countnumber
impactstring
fatalincompletenot-billable
messagestringREQUIRED
grossAmountnumberREQUIRED
hasErrorbooleanREQUIRED
idstringREQUIRED
identifierstring
invoiceDatestringREQUIRED
isReadybooleanREQUIRED
monthnumberREQUIRED
netAmountnumberREQUIRED
paymentMethodstring
paymentTermnumber
providerIdstringREQUIRED
typestringREQUIRED
cpo-creditcpo-credit-delayed-sessionscpo-usagemsp-usagemsp-usage-delayed-sessions
userIdstring
vatBreakdownPublicInvoiceVatBreakdownValue[]REQUIRED
isNegativebooleanREQUIRED
isNotApplicablebooleanREQUIRED
isReverseChargebooleanREQUIRED
netAmountnumberREQUIRED
vatAmountnumberREQUIRED
vatPercentagenumberREQUIRED
vatRuleIdstringREQUIRED
yearnumberREQUIRED
metaobject
limitnumber
skipnumber
statsobject
totalnumber
400Invalid Request application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
401Unauthorized application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
403Forbidden: missing a required permission, or no access to this resource application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
404Not Found application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
500Internal server error application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
GET/2/invoices/{invoice}

Get Invoice

Authorization
User sessionAPI credential
Permissions
-
OAuth
-
Request
Path parameters1
invoicestringREQUIRED
Responses
200OK application/json
dataPublicInvoiceResource
accountIdstringREQUIRED
billingPeriodstringREQUIRED
currencystringREQUIRED
errorPublicInvoiceError
breakdownobject
bridge-submission-failedPublicInvoiceErrorBreakdownValue[]
currency-mismatchPublicInvoiceErrorBreakdownValue[]
pdf-generation-failedPublicInvoiceErrorBreakdownValue[]
recipient-missing-credit-billingPublicInvoiceErrorBreakdownValue[]
uncategorizedPublicInvoiceErrorBreakdownValue[]
unknownPublicInvoiceErrorBreakdownValue[]
unpriced-resourcePublicInvoiceErrorBreakdownValue[]
countnumber
impactstring
fatalincompletenot-billable
messagestringREQUIRED
grossAmountnumberREQUIRED
hasErrorbooleanREQUIRED
idstringREQUIRED
identifierstring
invoiceDatestringREQUIRED
isReadybooleanREQUIRED
monthnumberREQUIRED
netAmountnumberREQUIRED
paymentMethodstring
paymentTermnumber
providerIdstringREQUIRED
typestringREQUIRED
cpo-creditcpo-credit-delayed-sessionscpo-usagemsp-usagemsp-usage-delayed-sessions
userIdstring
vatBreakdownPublicInvoiceVatBreakdownValue[]REQUIRED
isNegativebooleanREQUIRED
isNotApplicablebooleanREQUIRED
isReverseChargebooleanREQUIRED
netAmountnumberREQUIRED
vatAmountnumberREQUIRED
vatPercentagenumberREQUIRED
vatRuleIdstringREQUIRED
yearnumberREQUIRED
metaobject
limitnumber
skipnumber
statsobject
totalnumber
400Invalid Request application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
401Unauthorized application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
404Not Found application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
500Internal server error application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
GET/2/invoices/{invoice}/billable-items/export

Export Billable Items

Authorization
User sessionAPI credential
Permissions
-
OAuth
-
Request
Path parameters1
invoicestringREQUIRED
Header parameters1
Acceptstring
application/x-ndjsontext/csvapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Responses
200The billable items of the invoice NDJSON · CSV · XLSX
Accept
Accept: application/x-ndjsonDefault

One JSON record per line. The last line is an end frame, {"type": "end", "totalCount": n}, whose totalCount is the number of record lines. A response without the end frame was cut off before the export completed; discard it and retry.

A row of the billable items export of a cpo-usage invoice.
accountIdstringREQUIRED
accountNamestringREQUIRED
amountnumberREQUIRED
amountWithVatnumberREQUIRED
baseAmountnumberREQUIRED
billableItemIdstringREQUIRED
billingPlanIdstringREQUIRED
billingPlanNamestringREQUIRED
calculationTypestringREQUIRED
chargePointEvseIdstringREQUIRED
chargePointOcppIdstringREQUIRED
chargePointSerialNumberstringREQUIRED
currencystringREQUIRED
evseControllerIdstringREQUIRED
feeTypestringREQUIRED
invoiceIdstringREQUIRED
invoiceIdentifierstringREQUIRED
labelstringREQUIRED
locationIdstringREQUIRED
locationNamestringREQUIRED
paymentIdstringREQUIRED
paymentMethodstringREQUIRED
percentagenumberREQUIRED
quantitynumberREQUIRED
ratenumberREQUIRED
sessionEndedAtstringREQUIRED
sessionExternalIdstringREQUIRED
sessionIdstringREQUIRED
sessionKwhnumberREQUIRED
sessionStartedAtstringREQUIRED
userIdstringREQUIRED
userNamestringREQUIRED
vatPercentagenumberREQUIRED
vatRulestringREQUIRED
400Invalid Request application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
401Unauthorized application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
404Not Found application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
406No supported export format matches the Accept header application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
409The data behind the invoice is not complete yet; retry later application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
500Internal server error application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
503The export cannot be produced right now; retry later application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
GET/2/invoices/{invoice}/pdf

Get Invoice PDF

Authorization
User sessionAPI credential
Permissions
-
OAuth
-
Request
Path parameters1
invoicestringREQUIRED
Responses
200OK application/json
dataobject
downloadUrlstringREQUIRED
metaobject
limitnumber
skipnumber
statsobject
totalnumber
400Invalid Request application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
401Unauthorized application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
404Not Found application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED
500Internal server error application/json
errorobject
detailsobject
messagestringREQUIRED
statusnumberREQUIRED
typestringREQUIRED