Retrieve Transaction Summary
1 min
GET
https://api.fictive.com/REST/api/accounts/{accountReference}/transaction-summary
Path Parameters
- accountReferencestringrequiredDescription
Header Parameters
- X-TokenIdstringDescription
- X-SessionIdstringDescription
- X-VersionstringrequiredDescription
- OriginstringDescription
Responses
200
- FictiveGlobal.Api.Rest.Dtos.v1.AccountBalanceDescription
- totalCustomerValueFictiveGlobal.Api.Rest.Dtos.v1.ValueCurrency[]Description
- totalValuenumber<double>Description
- currencystringDescription
- totalPaymentsToDateFictiveGlobal.Api.Rest.Dtos.v1.PurchaseAmount[]Description
- currencystringDescription
- quantityinteger<int32>Description
- totalValuenumber<double>Description
- averageValuenumber<double>Description
- totalRefundsToDateFictiveGlobal.Api.Rest.Dtos.v1.PurchaseAmount[]Description
- currencystringDescription
- quantityinteger<int32>Description
- totalValuenumber<double>Description
- averageValuenumber<double>Description
- outstandingPaymentsToDateFictiveGlobal.Api.Rest.Dtos.v1.PurchaseAmount[]Description
- currencystringDescription
- quantityinteger<int32>Description
- totalValuenumber<double>Description
- averageValuenumber<double>Description
- outstandingCreditBalanceFictiveGlobal.Api.Rest.Dtos.v1.ValueCurrency[]Description
- totalValuenumber<double>Description
- currencystringDescription
401
404
500
curl
curl --location --globoff 'https://api.fictive.com/REST/api/accounts/{accountReference}/transaction-summary' \
--header 'Accept: application/json' \
--header 'Content-Type: 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://api.fictive.com/REST/api/accounts/{accountReference}/transaction-summary", 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://api.fictive.com/REST/api/accounts/{accountReference}/transaction-summary")
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://api.fictive.com/REST/api/accounts/{accountReference}/transaction-summary"
payload = {}
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
{
"totalCustomerValue": [
{
"totalValue": 56.2,
"currency": "USD"
}
],
"totalPaymentsToDate": [
{
"currency": "USD",
"quantity": 2,
"totalValue": 18,
"averageValue": 9
}
],
"totalRefundsToDate": [
{
"currency": "USD",
"quantity": 3,
"totalValue": 21,
"averageValue": 7
}
],
"outstandingPaymentsToDate": [
{
"currency": "USD",
"quantity": 2,
"totalValue": 21,
"averageValue": 11.5
}
],
"outstandingCreditBalance": [
{
"totalValue": 17.21,
"currency": "USD"
}
]
}401
// Not Authorized
404
// Account cannot be found
500
// Internal Server Error
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.