Skip to main content
GET
/
fees
Get Fees
curl --request GET \
  --url https://access.utgl.io/v1/fees \
  --header 'Authorization: Basic <encoded-value>'
{
  "prevPageToken": "<string>",
  "nextPageToken": "<string>",
  "fees": [
    {
      "id": "<string>",
      "transaction": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "xid": "<string>",
        "xmetadata": {
          "key1": "value1",
          "key2": [
            "value2.1",
            "value2.2"
          ]
        },
        "refId": "CT34567890",
        "cardAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "cardLast4": "<string>",
        "cardEmbossedName": "<string>",
        "createdAt": "2022-11-10T07:47:09.415Z",
        "status": "pending",
        "postedAt": "2022-11-10T07:47:09.415Z",
        "intent": "charge",
        "authorization": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "currency": "USD",
          "amount": 128.29,
          "createdAt": "2022-11-10T07:47:09.415Z",
          "type": "Payment authorization type",
          "responseCode": "<string>",
          "responseMessage": "<string>",
          "cardPresent": true
        },
        "merchant": {
          "name": "UBER * PENDING Amsterdam NLD",
          "mcc": "4121",
          "category": "Taxicabs and limousines",
          "country": "HK"
        },
        "currency": "HKD",
        "amount": 1000,
        "entryType": "CREDIT",
        "description": "UBER * PENDING Amsterdam NLD",
        "grossAmount": 1000
      },
      "amount": 123,
      "currency": "<string>",
      "status": "pending",
      "intent": "<string>",
      "intentId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

feeId
string

Search results by fee id

intent
string

Search results by intent

xid
string

Search results by xmetadata xid

dateRangeFrom
string<date-time>
Example:

"2022-01-01T00:00:00.000Z"

dateRangeTo
string<date-time>
Example:

"2022-01-31T23:59:59.999Z"

accountId
string[]

Filter by one or more account id

pageSize
number

Limits the number returned items Some collections have a upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If no page size is provided, the collection will determine the page size itself.

Required range: x >= 1
pageToken
string
Example:

"aWVHZWV5OVgK"

Response

200 - application/json

Successfully retrieved fees

prevPageToken
string

Opaque page token to retrieve next or previous set of results.

nextPageToken
string

Opaque page token to retrieve next or previous set of results.

fees
object[]