Retrieve customer prepaid order details
1 min
GET
https://app.amberflo.io/payments/pricing/amberflo/customer-prepaid
Query Parameters
- customerIdstringrequiredExampleDescription
- IdstringrequiredExampleDescription
- RelationIdstringExampleDescription
- ProductIdstringExampleDescription
Responses
200
- payment.pricing.customer.detailed.DetailedCustomerPrepaid.outDescription
- objectpayment.pricing.customer.detailed.DetailedCustomerPrepaidByPrice.out
- idstringDescription
- customerIdstringDescription
- startTimeInSecondsinteger<int64>Description
- endTimeInSecondsinteger<int64>Description
- firstCardEndTimeSecondsinteger<int64>Description
- productIdstringDescription
- prepaidOfferVersioninteger<int64>Description
- prepaidPricenumberDescription
- originalWorthnumberDescription
- originalCurrencystringExampleDescription
- preferredPurchasingPrepaidCurrencystringExampleDescription
- recurrenceFrequencypayment.pricing.BillingPeriod.outDescription
- intervalpayment.pricing.BillingPeriodInterval.inDescription
- intervalsCountinteger<int32>Description
- externalPaymentbooleanDescription
- relationIdstringDescription
- createdTimeInSecondsinteger<int64>Description
- labelstringDescription
- prepaidConditionspayment.billing.prepaid_to_product.PrepaidConditions.outDescription
- prepaidConditionsListpayment.billing.prepaid_to_product.PrepaidCondition.out[]Description
- payment.billing.prepaid_to_product.DimensionValueMapPrepaidCondition.in
- typestringDescriptionDefaultDimensionValueMapPrepaidCondition
- dimensionMapValuemap<string, string>Description
- payment.billing.prepaid_to_product.ProductItemDimensionPrepaidCondition.in
- typestringDescriptionDefaultProductItemDimensionPrepaidCondition
- productItemIdstringDescription
- dimensionsmap<string, string>Description
- payment.billing.prepaid_to_product.ProductItemPrepaidCondition.in
- typestringDescriptionDefaultProductItemPrepaidCondition
- productItemIdstringDescription
- prepaidConditionsHistorymap<string, payment.billing.prepaid_to_product.PrepaidCondition.out[]>Description
- commitmentIdstringDescription
- orderIdstringDescription
- orderItemIdstringDescription
- senderPrepaidUristringDescription
- customPrioritynumberDescription
- prepaidPrioritypayment.pricing.prepaid.PrepaidPriority.inDescription
- startAtMidCyclebooleanDescription
- realTimePricingbooleanDescription
- installmentspayment.billing.prepaid_to_product.PrepaidInstallments.outDescription
- prepaidInstallmentspayment.billing.prepaid_to_product.PrepaidInstallmentSchedule.in[]requiredDescription
- amountPricenumberrequiredDescription
- scheduledPurchaseTimeInSecondsinteger<int64>requiredDescription
- internalStatusstringDescription
- prepaidPaymentTimeInSecondsinteger<int64>Description
- paymentIdstringDescription
- paymentStatuspayment.payment.PaymentStatus.inDescription
- firstInvoiceUristringDescription
- modifiedTimeInSecondsinteger<int64>Description
- typestringDescriptionDefaultdetailed_customer_prepaid_by_price
- purchaseTypepayment.billing.prepaid_to_product.PrepaidPurchaseType.inDescription
- actualPrepaidChargePricenumberDescription
- objectpayment.pricing.customer.detailed.DetailedCustomerPrepaidByUsage.out
- idstringDescription
- customerIdstringDescription
- startTimeInSecondsinteger<int64>Description
- endTimeInSecondsinteger<int64>Description
- firstCardEndTimeSecondsinteger<int64>Description
- productIdstringDescription
- prepaidOfferVersioninteger<int64>Description
- prepaidPricenumberDescription
- originalWorthnumberDescription
- originalCurrencystringExampleDescription
- preferredPurchasingPrepaidCurrencystringExampleDescription
- recurrenceFrequencypayment.pricing.BillingPeriod.outDescription
- intervalpayment.pricing.BillingPeriodInterval.inDescription
- intervalsCountinteger<int32>Description
- externalPaymentbooleanDescription
- relationIdstringDescription
- createdTimeInSecondsinteger<int64>Description
- labelstringDescription
- prepaidConditionspayment.billing.prepaid_to_product.PrepaidConditions.outDescription
- prepaidConditionsListpayment.billing.prepaid_to_product.PrepaidCondition.out[]Description
- payment.billing.prepaid_to_product.DimensionValueMapPrepaidCondition.in
- typestringDescriptionDefaultDimensionValueMapPrepaidCondition
- dimensionMapValuemap<string, string>Description
- payment.billing.prepaid_to_product.ProductItemDimensionPrepaidCondition.in
- typestringDescriptionDefaultProductItemDimensionPrepaidCondition
- productItemIdstringDescription
- dimensionsmap<string, string>Description
- payment.billing.prepaid_to_product.ProductItemPrepaidCondition.in
- typestringDescriptionDefaultProductItemPrepaidCondition
- productItemIdstringDescription
- prepaidConditionsHistorymap<string, payment.billing.prepaid_to_product.PrepaidCondition.out[]>Description
- commitmentIdstringDescription
- orderIdstringDescription
- orderItemIdstringDescription
- senderPrepaidUristringDescription
- customPrioritynumberDescription
- prepaidPrioritypayment.pricing.prepaid.PrepaidPriority.inDescription
- startAtMidCyclebooleanDescription
- realTimePricingbooleanDescription
- installmentspayment.billing.prepaid_to_product.PrepaidInstallments.outDescription
- prepaidInstallmentspayment.billing.prepaid_to_product.PrepaidInstallmentSchedule.in[]requiredDescription
- amountPricenumberrequiredDescription
- scheduledPurchaseTimeInSecondsinteger<int64>requiredDescription
- internalStatusstringDescription
- prepaidPaymentTimeInSecondsinteger<int64>Description
- paymentIdstringDescription
- paymentStatuspayment.payment.PaymentStatus.inDescription
- firstInvoiceUristringDescription
- modifiedTimeInSecondsinteger<int64>Description
- typestringDescriptionDefaultdetailed_customer_prepaid_by_usage
- purchaseTypepayment.billing.prepaid_to_product.PrepaidPurchaseType.inDescription
- prepaidUsagenumberDescription
- prepaidFullPricenumberDescription
400
401
403
404
500
curl
curl --request GET \
--url 'https://app.amberflo.io/payments/pricing/amberflo/customer-prepaid?customerId=customer_123&Id=prepaid_456' \
--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/pricing/amberflo/customer-prepaid?customerId=customer_123&Id=prepaid_456", 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/pricing/amberflo/customer-prepaid?customerId=customer_123&Id=prepaid_456")
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/pricing/amberflo/customer-prepaid?customerId=customer_123&Id=prepaid_456"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Returns detailed prepaid order information including balance, usage restrictions, and expiration details
{}400
// Invalid customer ID, prepaid ID, or malformed request parameters
401
// Authentication required or invalid API key provided
403
// Insufficient permissions to access customer prepaid order details
404
// Customer or prepaid order not found
500
// Internal server error occurred while retrieving prepaid order details