using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/transactions/{transaction_id}/chargebacks");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_account_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"posted_at": "2023-11-07T05:31:56Z",
"ingested_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"amount": 123,
"commission": 123,
"payment_service_report_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_service_report_file_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"exchange_rate": 1,
"interchange": 50,
"markup": 10,
"scheme_fee": 5,
"type": "chargeback"
}
]
}List all chargebacks for a specific transaction.
using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/transactions/{transaction_id}/chargebacks");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_account_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"posted_at": "2023-11-07T05:31:56Z",
"ingested_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"amount": 123,
"commission": 123,
"payment_service_report_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_service_report_file_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"exchange_rate": 1,
"interchange": 50,
"markup": 10,
"scheme_fee": 5,
"type": "chargeback"
}
]
}transactions.read scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
The unique identifier of the transaction.
Successful Response
A list of chargeback records for a transaction.
The list of chargeback objects.
Show child attributes
The unique identifier for the record.
The merchant account this record belongs to.
The date and time the record was created, in ISO 8601 format.
The date and time the record was last updated, in ISO 8601 format.
The date and time the record was posted, in ISO 8601 format.
The date and time the record was ingested, in ISO 8601 format.
ISO 4217 currency code.
The total amount in the smallest currency unit (e.g. cents).
The commission amount deducted in the smallest currency unit.
The report ID from the payment service.
List of file IDs for the payment service report.
The transaction this record is associated with.
The exchange rate, if applicable.
1
The interchange fee, if applicable, in the smallest currency unit.
50
The markup fee, if applicable, in the smallest currency unit.
10
The scheme fee, if applicable, in the smallest currency unit.
5
Always chargeback.
"chargeback"