settlements

Get group settlement

Get optimal settlement transactions for a group

get/groups/{groupId}/settlement

Request

  • Base URL: http://localhost:3001
  • URL: http://localhost:3001/groups/{groupId}/settlement
  • Auth: HTTP bearer

Path parameters

groupIdstring required

Group UUID

Response

Group settlement retrieved successfully

successboolean
messagestring

Example response

{
  "data": {
    "groupId": "550e8400-e29b-41d4-a716-446655440000",
    "transactionsByCurrency": {
      "USD": [
        {
          "from": "user-a",
          "to": "user-b",
          "amount": 20,
          "currency": "USD"
        },
        {
          "from": "user-c",
          "to": "user-a",
          "amount": 10,
          "currency": "USD"
        }
      ]
    },
    "totalTransactions": 3,
    "currenciesUsed": [
      "USD",
      "EUR"
    ],
    "defaultCurrency": "USD"
  },
  "success": true,
  "message": "Success"
}

Changes

No recorded changes to this operation across all 1 revision of this API.