Get vendor refund details
curl --request GET \
--url https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"total_refunded_amount": 123,
"allocated_amount": 123,
"unallocated_amount": 123,
"allocations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"bill_outstanding_balance_cents": 123,
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"target_description": "<string>",
"allocation_type": "bill",
"allocation_date": "2023-11-07T05:31:56Z",
"description": "<string>",
"metadata": "<unknown>"
}
],
"vendor_refund_payments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_refund_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refunded_amount": 123,
"processing_fee": 123,
"net_amount": 123,
"reconciled_bank_transactions": [
{
"bank_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_transaction_date": "2023-11-07T05:31:56Z",
"bank_transaction_amount_cents": 123,
"bank_transaction_direction": "<string>",
"reconciled_amount_cents": 123,
"reconciliation_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reconciled_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"payment_type": "<string>",
"bank_account_name": "<string>",
"notes": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"payment_reference": "<string>",
"processor_payment_id": "<string>",
"payment_date": "2023-12-25",
"payment_method": "bank_transfer",
"processor": "stripe",
"status": "pending",
"submitted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"failure_reason": "<string>",
"description": "<string>",
"memo": "<string>",
"metadata": "<unknown>",
"transaction_tags": "<unknown>"
}
],
"document": {
"url": "<string>",
"expires_in": 123,
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_name": "<string>",
"file_size": 123,
"mime_type": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"refund_type": "overpayment",
"reference_number": "<string>",
"refund_date": "2023-12-25",
"expected_completion_date": "2023-12-25",
"currency": "EUR",
"status": "pending",
"description": "<string>",
"memo": "<string>",
"reason": "<string>",
"metadata": "<unknown>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}Vendor Refunds
Get vendor refund details
Retrieve complete details of a specific vendor refund including all allocations and payments.
GET
/
v1
/
platform
/
businesses
/
{business_id}
/
vendor-refunds
/
{refund_id}
/
Get vendor refund details
curl --request GET \
--url https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/vendor-refunds/{refund_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"total_refunded_amount": 123,
"allocated_amount": 123,
"unallocated_amount": 123,
"allocations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"bill_outstanding_balance_cents": 123,
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"target_description": "<string>",
"allocation_type": "bill",
"allocation_date": "2023-11-07T05:31:56Z",
"description": "<string>",
"metadata": "<unknown>"
}
],
"vendor_refund_payments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_refund_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refunded_amount": 123,
"processing_fee": 123,
"net_amount": 123,
"reconciled_bank_transactions": [
{
"bank_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_transaction_date": "2023-11-07T05:31:56Z",
"bank_transaction_amount_cents": 123,
"bank_transaction_direction": "<string>",
"reconciled_amount_cents": 123,
"reconciliation_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reconciled_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"payment_type": "<string>",
"bank_account_name": "<string>",
"notes": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"payment_reference": "<string>",
"processor_payment_id": "<string>",
"payment_date": "2023-12-25",
"payment_method": "bank_transfer",
"processor": "stripe",
"status": "pending",
"submitted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"failure_reason": "<string>",
"description": "<string>",
"memo": "<string>",
"metadata": "<unknown>",
"transaction_tags": "<unknown>"
}
],
"document": {
"url": "<string>",
"expires_in": 123,
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file_name": "<string>",
"file_size": 123,
"mime_type": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"external_id": "<string>",
"refund_type": "overpayment",
"reference_number": "<string>",
"refund_date": "2023-12-25",
"expected_completion_date": "2023-12-25",
"currency": "EUR",
"status": "pending",
"description": "<string>",
"memo": "<string>",
"reason": "<string>",
"metadata": "<unknown>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}Authorizations
BusinessScopedJWTPartnerJWTBasicAuthBearerUnscopedBearerBusinessScoped
Path Parameters
Response
Comprehensive serializer for vendor refund responses. Includes all refund details plus related allocations and payments.
Refund type: overpayment, credit_balance, billing_error, goods_return, duplicate_payment, service_cancellation, other
overpayment- Overpayment Refundcredit_balance- Credit Balance Refundduplicate_payment- Duplicate Paymentbilling_error- Billing Errorgoods_return- Goods Returnservice_cancellation- Service Cancellationother- Other
Available options:
overpayment, credit_balance, duplicate_payment, billing_error, goods_return, service_cancellation, other Refund status: pending, partially_allocated, allocated, completed, cancelled (computed from allocations)
pending- Pendingpartially_allocated- Partially Allocatedallocated- Allocatedcompleted- Completedcancelled- Cancelled
Available options:
pending, partially_allocated, allocated, completed, cancelled Was this page helpful?