Orchestration API
Refunds
Get a list of refunds
code examples curl location '/api/refunds?paymentid=string\&limit=10' \\ \ 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("/api/refunds?paymentid=string\&limit=10", 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("/api/refunds?paymentid=string\&limit=10") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = http request(request) puts response read body import requests import json url = "/api/refunds?paymentid=string\&limit=10" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // list of refunds { "data" \[ { "id" "", "amount" 1357, "currency" "gbp", "status" "succeeded", "reason" "duplicate", "errormessage" "refund amount is more than the payment amount", "createdat" "2025 07 14t12 34 56 000z" } ] }// bad request // unauthorized // not found