Get by id
1 min
GET
https://app.amberflo.io/business-unit/chargeback/invoice/detailed
Query Parameters
- businessUnitIdstringrequiredDescription
- startTimeInSecondsinteger<int64>requiredDescription
Responses
200
- business_unit.invoice.DetailedChargebackInvoice.out
- businessUnitIdstringrequiredDescription
- startTimeInSecondsinteger<int64>requiredDescription
- endTimeInSecondsinteger<int64>Description
- statusbusiness_unit.invoice.ChargebackInvoiceStatus.outDescription
- chargebackAmountnumberDescription
- updateTimeInSecondsinteger<int64>Description
- detailsbusiness_unit.invoice.ProviderDetails.out[]Description
- providerstring
- chargebackAmountnumber
- detailsbusiness_unit.invoice.ServiceDetails.out[]Description
- servicestring
- meterApiNamestring
- chargebackAmountnumber
- detailsbusiness_unit.invoice.ServiceLineItem.out[]Description
- pricingUnitstring
- dimensionNamesstring[]
- dimensionValuesstring[]
- pricingQuantitynumber
- chargebackAmountnumber
curl
curl --request GET \
--url 'https://app.amberflo.io/business-unit/chargeback/invoice/detailed?businessUnitId=string&startTimeInSeconds=integer%3Cint64%3E' \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://app.amberflo.io/business-unit/chargeback/invoice/detailed?businessUnitId=string&startTimeInSeconds=integer<int64>", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://app.amberflo.io/business-unit/chargeback/invoice/detailed?businessUnitId=string&startTimeInSeconds=integer<int64>")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://app.amberflo.io/business-unit/chargeback/invoice/detailed?businessUnitId=string&startTimeInSeconds=integer<int64>"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful request
{
"businessUnitId": "",
"startTimeInSeconds": "",
"endTimeInSeconds": "",
"status": "",
"chargebackAmount": 0,
"updateTimeInSeconds": "",
"details": [
{
"provider": "",
"chargebackAmount": 0,
"details": [
{
"service": "",
"meterApiName": "",
"chargebackAmount": 0,
"details": [
{
"pricingUnit": "",
"dimensionNames": [
""
],
"dimensionValues": [
""
],
"pricingQuantity": 0,
"chargebackAmount": 0
}
]
}
]
}
]
}Get a business units' chargeback invoice by id; returns a detailed invoice