Skip to main content
GET
/
transactions
/
{transaction_id}
/
chargebacks
List transaction chargebacks
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.sandbox.{id}.gr4vy.app/transactions/{transaction_id}/chargebacks"

	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(res)
	fmt.Println(string(body))

}
{
  "items": [
    {
      "id": "b1e2c3d4-5678-1234-9abc-1234567890ab",
      "merchant_account_id": "default",
      "created_at": "2024-06-01T12:00:00.000Z",
      "updated_at": "2024-06-01T12:00:00.000Z",
      "posted_at": "2024-06-01T12:00:00.000Z",
      "ingested_at": "2024-06-01T12:00:00.000Z",
      "currency": "EUR",
      "amount": 1100,
      "exchange_rate": 1,
      "commission": 100,
      "interchange": 50,
      "markup": 10,
      "scheme_fee": 5,
      "payment_service_report_id": "a1b2c3d4-5678-1234-9abc-1234567890ab",
      "payment_service_report_file_ids": [
        "f1e2d3c4-5678-1234-9abc-1234567890ab"
      ],
      "transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591",
      "type": "chargeback"
    }
  ]
}
This endpoint requires the transactions.read scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-gr4vy-merchant-account-id
string

The ID of the merchant account to use for this request.

Examples:

"default"

Path Parameters

transaction_id
string<uuid>
required

The unique identifier of the transaction.

Examples:

"7099948d-7286-47e4-aad8-b68f7eb44591"

Response

Successful Response

A list of chargeback records for a transaction.

items
Chargeback · object[]
required

The list of chargeback objects.

I