transactions.read scope.Authorizations
Headers
Examples:
Path Parameters
Examples:
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.{id}.gr4vy.app/transactions/{transaction_id}/chargeback-reversals"
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-reversal"
}
]
}List all chargeback reversals for a specific transaction.
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.{id}.gr4vy.app/transactions/{transaction_id}/chargeback-reversals"
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-reversal"
}
]
}transactions.read scope.Show child attributes
Was this page helpful?