GET
/
transactions
/
{transaction_id}
/
settlements
using Gr4vy;
using Gr4vy.Models.Components;

var sdk = new Gr4vySDK(
    id: "example",
    server: SDKConfig.Server.Sandbox,
    bearerAuthSource: Auth.WithToken(privateKey),
    merchantAccountId: "default"
);

var res = await sdk.Transactions.Settlements.ListAsync(transactionId: "7099948d-7286-47e4-aad8-b68f7eb44591");

// handle response
{
  "items": [
    {
      "type": "settlement",
      "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"
    }
  ]
}

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 | null

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

Examples:

"default"

Path Parameters

transaction_id
string
required

The unique identifier of the transaction.

Examples:

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

Response

200
application/json

Successful Response

A list of settlement records for a transaction.