Get all prepaid card invoices of a customer
1 min
GET
https://app.amberflo.io/payments/billing/customer-prepaid-invoice/list
Responses
200
- payment.billing.detailed.DetailedPrepaidInvoice.out[]
- prepaidInvoiceKeypayment.billing.CustomerPrepaidInvoiceKey.out
- accountIdstring
- customerIdstring
- productIdstring
- prepaidIdstring
- timeInSecondsinteger<int64>
- idstring
- prepaidConditionspayment.billing.prepaid_to_product.PrepaidConditions.out
- prepaidConditionsListpayment.billing.prepaid_to_product.PrepaidCondition.out[]
- payment.billing.prepaid_to_product.DimensionValueMapPrepaidCondition.out
- typestringDefaultDimensionValueMapPrepaidCondition
- dimensionMapValuemap<string, string>
- payment.billing.prepaid_to_product.ProductItemDimensionPrepaidCondition.out
- typestringDefaultProductItemDimensionPrepaidCondition
- productItemIdstringDescription
- dimensionsmap<string, string>Description
- payment.billing.prepaid_to_product.ProductItemPrepaidCondition.out
- typestringDefaultProductItemPrepaidCondition
- productItemIdstring
- prepaidConditionsHistorymap<string, payment.billing.prepaid_to_product.PrepaidCondition.out[]>
- labelstring
- commitmentIdstring
- cardPrioritynumber
- cardTypepayment.billing.prepaid_to_product.PrepaidCardType.out
- baseCurrencystringExampleDescription
- paymentCurrencystringExampleDescription
- invoiceTimeInSecondsinteger<int64>
- startTimeInSecondsinteger<int64>
- expirationTimeInSecondsinteger<int64>
- priceInPaymentCurrencynumber
- worthInBaseCurrencynumber
- worthInCreditsnumber
- paymentStatuspayment.payment.PaymentStatus.out
curl
curl --request GET \
--url https://app.amberflo.io/payments/billing/customer-prepaid-invoice/list \
--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/payments/billing/customer-prepaid-invoice/list", 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/billing/customer-prepaid-invoice/list")
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/payments/billing/customer-prepaid-invoice/list"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful request
[
{
"prepaidInvoiceKey": {
"accountId": "",
"customerId": "",
"productId": "",
"prepaidId": "",
"timeInSeconds": ""
},
"id": "",
"prepaidConditions": {
"prepaidConditionsList": {},
"prepaidConditionsHistory": ""
},
"label": "",
"commitmentId": "",
"cardPriority": 0,
"cardType": "",
"baseCurrency": "USD",
"paymentCurrency": "USD",
"invoiceTimeInSeconds": "",
"startTimeInSeconds": "",
"expirationTimeInSeconds": "",
"priceInPaymentCurrency": 0,
"worthInBaseCurrency": 0,
"worthInCredits": 0,
"paymentStatus": ""
}
]