Get the customer credits wallet
1 min
GET
https://app.amberflo.io/payments/billing/customer-prepaid-wallet
Responses
200
- payment.billing.prepaid_to_product.detailed.DetailedCustomerPrepaidWallet.out
- keypayment.billing.prepaid_to_product.CustomerPrepaidWalletKey.out
- accountIdstring
- customerIdstring
- productIdstring
- prepaidCardspayment.billing.prepaid_to_product.detailed.DetailedPrepaidCard.out[]
- prepaidUristring
- sourceUristring
- paymentIdstring
- paymentSystemNamestring
- cardTypepayment.billing.prepaid_to_product.PrepaidCardType.out
- paymentStatuspayment.payment.PaymentStatus.out
- pricenumber
- priceInBaseCurrencynumber
- paymentCurrencyInfopayment.billing.PaymentCurrencyInfo.out
- basePlanCurrencystringExampleDescription
- paymentCurrencystringExampleDescription
- exchangeRatenumber
- worthnumber
- startTimeInMillisinteger<int64>
- expirationTimeInMillisinteger<int64>
- productInvoicespayment.billing.prepaid_to_product.detailed.DetailedPrepaidProductInvoice.out[]
- invoiceUristring
- createdTimeInSecondsinteger<int64>
- amountnumber
- amountInCreditsnumber
- invoiceAmountnumber
- usedAmountnumber
- amountLeftnumber
- priceInCreditsnumber
- worthInCreditsnumber
- 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
- Max depth limit reached
- prepaidConditionsHistorymap<string, payment.billing.prepaid_to_product.PrepaidCondition.out[]>
- labelstring
- orderIdstring
- creditUnitpayment.pricing.CreditUnit.out
- idstring
- shortNamestring
- namestring
- ratioToCurrencynumber
- descriptionstring
- activeboolean
- lastUpdateTimeInMillisinteger<int64>
curl
curl --request GET \
--url https://app.amberflo.io/payments/billing/customer-prepaid-wallet \
--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-wallet", 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-wallet")
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-wallet"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful request
{
"key": {
"accountId": "",
"customerId": "",
"productId": ""
},
"prepaidCards": [
{
"prepaidUri": "",
"sourceUri": "",
"paymentId": "",
"paymentSystemName": "",
"cardType": "",
"paymentStatus": "",
"price": 0,
"priceInBaseCurrency": 0,
"paymentCurrencyInfo": {
"basePlanCurrency": "USD",
"paymentCurrency": "USD",
"exchangeRate": 0
},
"worth": 0,
"startTimeInMillis": "",
"expirationTimeInMillis": "",
"productInvoices": [
{
"invoiceUri": "",
"createdTimeInSeconds": "",
"amount": 0,
"amountInCredits": 0,
"invoiceAmount": 0
}
],
"usedAmount": 0,
"amountLeft": 0,
"priceInCredits": 0,
"worthInCredits": 0,
"prepaidConditions": {
"prepaidConditionsList": {},
"prepaidConditionsHistory": ""
},
"label": "",
"orderId": ""
}
],
"creditUnit": {
"id": "",
"shortName": "",
"name": "",
"ratioToCurrency": 0,
"description": "",
"active": false,
"lastUpdateTimeInMillis": ""
}
}