/payments/marketplace/invoice-intents
1 min
POST
https://app.amberflo.io/payments/marketplace/invoice-intents
Body Parameters
- bodypayment.payment.AwsMarketplaceRequestFilter.in
- timeRangepayment.common.TimeRange.inDescription
- startTimeInSecondsinteger<int64>
- endTimeInSecondsinteger<int64>
- recordIdstringDescription
- typepayment.payment.JournalEntryType.inDescription
- customerIdsstring[]Description
Responses
200
- payment.billing.DetailedAwsMarketplaceBilledInvoiceIntent.out[]
- invoiceUristring
- timestampjava.time.Instant.out
- secondsinteger<int64>
- nanosinteger<int32>
- invoiceTotalCurrencyFractioninteger<int64>
- billedCurrencyFractioninteger<int32>
- submittedboolean
- meteringRecordIdstring
- customerIdstring
curl
curl --request POST \
--url https://app.amberflo.io/payments/marketplace/invoice-intents \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://app.amberflo.io/payments/marketplace/invoice-intents", 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/payments/marketplace/invoice-intents")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.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/payments/marketplace/invoice-intents"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successful request
[
{
"invoiceUri": "",
"timestamp": {
"seconds": "",
"nanos": ""
},
"invoiceTotalCurrencyFraction": "",
"billedCurrencyFraction": "",
"submitted": false,
"meteringRecordId": "",
"customerId": ""
}
]