2. Create (Alias)
You can use this service to assign gift balances to wallets.
Create Gift Balance with Wallet 'Alias'
POST
{{WalletUrl}}/api/v1/balance/gift/by/wallet/alias
The parameters that need to be sent to the service 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.
{
"Alias": "1234567890",
"Amount": 1000,
"ExpirationDate": "2026-04-29T02:00:34.426Z",
"Description": "KUPON100"
}
Service Request
Alias
string
The wallet number where the gift balance will be assigned.
Amount
decimal
The gift balance to be assigned.
ExpirationDate
DateTime?
If you want the gift balance to be valid until a specific date, you can define a date. If a date is provided, the amount will automatically become inactive if not spent by that date. If no date is provided, the amount will remain in the wallet until it is used.
Description
string
The description of the given gift balance.
Example: "Birthday"
{
"Value": {
"Id": "371b2a9a-9f4f-4f2d-b026-23fc31e4d119",
"WalletId": "0e5439b8-efa5-43d3-91e9-3cc351cc6ecc",
"Amount": 1000,
"RemainingAmount": 1000,
"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.5468119Z",
"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 ID assigned by the system specifically for this record.
WalletId
Guid
It is the identity number that shows which wallet it is associated with.
Amount
string
It is the total amount assigned to the user (e.g., "100.00").
RemainingAmount
decimal
It is the current balance that the user can spend.
ExpirationDate
decimal
The last date this amount is valid.
IsUnlimited
string
It indicates whether the amount is valid indefinitely.
Description
string
The purpose or explanatory note of this amount.
IsUsed
DateTime
The time when the first spending transaction took place.
IsFullyUsed
DateTime
The time when the user has used the entire amount.
IsPartiallyUsed
decimal
The amount of the used portion (e.g., 25.50).
LastTransactionId
Guid
The unique ID number associated with the last transaction.
CreatedAt
Guid
The date when this record was created (should include the date information).
UpdatedAt
int
It specifies the time when the information was last updated.
Last updated