API Reference
Orders

Retrieve payment history

1min
code examples curl location globoff 'https //api fictive com/rest/api/accounts/{accountreference}/payments' \\ \ header 'accept application/json' \\ \ header 'content type application/json'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}/payments", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api fictive com/rest/api/accounts/{accountreference}/payments") 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 import requests import json url = "https //api fictive com/rest/api/accounts/{accountreference}/payments" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses \[ { "cartreference" "0010o17idwbv5en4g2", "fulfilmentreferences" \[ "0010o17idwbv5en4g2" ], "status" "completed", "paymentreference" "0010o17idwbv5en4g2", "paymentdate" "2021 09 21t05 33 20 1667135", "description" "subscription purchase", "paymentmethod" "creditcard", "subscriptionreference" "0010s82fd7urmmqta1", "pricing" { "grossamount" 9 99, "netamount" 9 99, "taxamount" 0, "currency" "gbp" }, "custompaymentparameters" {}, "pricebreakdown" \[ { "itemreference" "0010o17idwbv5en4g2", "itemstatus" "payment", "itemdescription" "order line item description", "itemgrossamount" 10, "itemnetamount" 8, "itemtaxamount" 2, "itemquantity" 0, "discountorderlineitems" \[ { "discountitemreference" "0010o17idwbv5en4g2", "discountitemstatus" "payment", "offerreference" "0010o17idwbv5en4g2", "offerapplicationtype" "lowstartoffersubscription", "offerdescription" "low start offer", "discountitemgrossamount" 5, "discountitemnetamount" 4, "discountitemtaxamount" 1 } ] } ] }, { "cartreference" "0010otp6hfy8xr9ul3", "fulfilmentreferences" \[ "0010o17idwbv5en4g2", "0010lhx0a0hb0fuxd2" ], "status" "refunded", "paymentreference" "0010otp6hfy8xr9ul3", "paymentdate" "2021 09 21t05 33 20 1667135", "description" "refund amount on order", "paymentmethod" "creditcard", "subscriptionreference" "0010saghr1654lps1h", "pricing" { "grossamount" 10, "netamount" 9 434, "taxamount" 0 566, "currency" "gbp" }, "custompaymentparameters" {} }, { "cartreference" "0010otp6hfy8xr9ul3", "fulfilmentreferences" \[ "0010o17idwbv5en4g2", "0010lhx0a0hb0fuxd2" ], "status" "partialrefunded", "paymentreference" "0010otp6hfy8xr9ul4", "paymentdate" "2021 09 21t05 33 20 1667135+00 00", "description" "order 111111", "paymentmethod" "creditcard", "subscriptionreference" "0010saghr1654lps1h", "pricing" { "grossamount" 10, "netamount" 9 434, "taxamount" 0 566, "currency" "gbp" }, "custompaymentparameters" {}, "associatedpaymentreferences" \[ { "fulfilmentreferences" \[], "status" "refunded", "paymentreference" "0010otp6hfy8xr9ul4", "paymentdate" "2021 09 22t05 33 20 1667135+00 00", "description" "refund amount on order 111111", "paymentmethod" "sepa", "subscriptionreference" "0010saghr1654lps1h", "pricing" { "grossamount" 20, "netamount" 15, "taxamount" 5, "currency" "eur" } } ] }, { "cartreference" "0010otp6hfy8xr9ul3", "fulfilmentreferences" \[], "status" "partialrefunded", "paymentreference" "0010otp6hfy8xr9ul4", "paymentdate" "2021 09 21t05 33 20 1667135+00 00", "description" "subscription purchase (auto renew) bundle purchase bundle purchase (your subscription cost has been discounted by 16 25 eur)", "paymentmethod" "creditcard", "subscriptionreference" "0010soij7xsjb9pgz2", "pricing" { "grossamount" 6 25, "netamount" 5 385, "taxamount" 0 865, "currency" "eur" }, "custompaymentparameters" {}, "pricebreakdown" \[ { "itemreference" "0010o17idwbv5en4g2", "itemstatus" "partiallyrefunded", "itemdescription" "physical product 1", "itemgrossamount" 14 5, "itemnetamount" 10, "itemtaxamount" 4 5, "itemquantity" 0, "discountorderlineitems" \[ { "discountitemreference" "0010o17idwbv5en4g2", "discountitemstatus" "deducted", "offerreference" "0010o17idwbv5en4g2", "offerapplicationtype" "fixedpricediscountoffersubscription", "offerdescription" "premium offer", "discountitemgrossamount" 7 25, "discountitemnetamount" 5, "discountitemtaxamount" 2 25 }, { "discountitemreference" "001dob1vkfblb54jc3", "discountitemstatus" "deducted", "offerreference" "0010o17idwbv5en4g2", "offerapplicationtype" "servicecredits", "offerdescription" "servicecredits", "discountitemgrossamount" 4 4615, "discountitemnetamount" 3 0765, "discountitemtaxamount" 1 385 } ] } ] } ]// no payments found \[ { "cartreference" "", "fulfilmentreferences" \[ "" ], "status" "", "paymentreference" "", "refundedpaymentreference" "", "paymentdate" "2021 09 21t05 33 19 8854322", "description" "", "paymentmethod" "", "subscriptionreference" "", "pricing" { "grossamount" "", "netamount" "", "taxamount" "", "currency" "" }, "custompaymentparameters" {}, "pricebreakdown" \[ { "itemreference" "", "refundeditemreference" "", "itemstatus" "", "itemdescription" "", "itemgrossamount" "", "itemnetamount" "", "itemtaxamount" "", "itemquantity" "", "discountorderlineitems" \[ { "discountitemreference" "", "discountitemstatus" "", "offerreference" "", "offerapplicationtype" "", "offerdescription" "", "discountitemgrossamount" "", "discountitemnetamount" "", "discountitemtaxamount" "" } ] } ], "associatedpaymentreferences" \[ { "cartreference" "", "fulfilmentreferences" \[ "" ], "status" "", "paymentreference" "", "refundedpaymentreference" "", "paymentdate" "2021 09 21t05 33 19 8854322", "description" "", "paymentmethod" "", "subscriptionreference" "", "pricing" { "grossamount" "", "netamount" "", "taxamount" "", "currency" "" }, "custompaymentparameters" {}, "pricebreakdown" \[ { "itemreference" "", "refundeditemreference" "", "itemstatus" "", "itemdescription" "", "itemgrossamount" "", "itemnetamount" "", "itemtaxamount" "", "itemquantity" "", "discountorderlineitems" \[ { "discountitemreference" "", "discountitemstatus" "", "offerreference" "", "offerapplicationtype" "", "offerdescription" "", "discountitemgrossamount" "", "discountitemnetamount" "", "discountitemtaxamount" "" } ] } ], "associatedpaymentreferences" \[ "" ] } ] } ]// not authorized // account could not be found account cannot be found invalid uki and pin or password // 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.