4. Query (Wallet)
You can use this service to query the defined gift balance using the wallet's identity (Id) information where it was assigned.
Query Gift Balance Record with 'WalletId'
GET
{{WalletUrl}}/api/v1/balance/gift/by/wallet/:id
The parameters that need to be sent to the service (Headers) are as follows:
apikeypublic
string
Yes
It is the shared key information that provides general access to the API services.
apiclientpublic
string
Yes
It is the public client key information that identifies the client application.
The parameters that need to be sent to the service (QueryString) are as follows:
Id
It is the identity information of the wallet where the defined gift balance is assigned.
{
"Value": [
{
"Id": "371b2a9a-9f4f-4f2d-b026-23fc31e4d119",
"WalletId": "0e5439b8-efa5-43d3-91e9-3cc351cc6ecc",
"Amount": 1000.00,
"RemainingAmount": 1000.00,
"ExpirationDate": "2026-04-29T02:00:34.426Z",
"IsUnlimited": false,
"Description": "KUPON100",
"IsUsed": false,
"IsFullyUsed": false,
"IsPartiallyUsed": false,
"LastTransactionId": null,
"CreatedAt": "2025-05-01T19:15:33.546811Z",
"UpdatedAt": null
}
],
"Errors": [],
"IsSuccess": true,
"IsFailure": false
}
Service Response
IsFailure
bool
It returns false if the transaction failed, and true if it was successful.
IsSuccess
bool
It returns true if the transaction was successful, and false if it failed.
Errors
Array
It is an array structure containing the error details that occurred.
Value
Array
It contains a list of items that hold the result data.
Service Response (Value)
Id
Guid
It is the identity number of the gift balance.
WalletId
Guid
It is the identity information of the wallet where the balance is assigned.
Amount
decimal
It is the amount of the gift balance.
RemainingAmount
decimal
It is the remaining balance amount.
ExpirationDate
DateTime
The expiration date of the gift balance.
IsUnlimited
bool
Indicates whether the gift balance has an expiration date or not.
If there is an expiration date, it returns false
, otherwise true
Description
string
It is the description provided at the time of defining the gift balance.
IsUsed
bool
Has the gift balance been used?
IsFullyUsed
bool
Has the gift balance been fully used?
IsPartiallyUsed
bool
Has the gift balance been partially used?
LastTransactionId
Guid
It is the unique identifier of the last transaction.
CreatedAt
DateTime
It is the creation date of the gift balance.
UpdatedAt
DateTime
It is the update date of the gift balance.
Last updated