2. Update
This service is used to update specific fields of an existing record with new data.
Record Update Process
PUT
{{WalletUrl}}/api/v1/campaign
The parameters that need to be sent to the service are as follows:
apikeypublic
string
Yes
It is the general key information used for service access.
apiclientpublic
string
Yes
It is the general access key that represents the application's identity.
{
"Value": {
"Id": "44e93e35-d427-4ae9-a11c-b122447b6ac4",
"Name": "düldül",
"Description": "<string>",
"MinimumDepositAmount": 100,
"MaximumDepositAmount": 102,
"BonusType": "Fixed",
"BonusValue": 1,
"CampaignType": "CashBack",
"StartDate": "2025-09-25",
"EndDate": "2025-09-27",
"IsActive": true,
"MerchantId": 2071,
"TotalBonusGiven": 0.00,
"CreatedAt": "2025-04-30T14:17:27.331977Z",
"UpdatedAt": "2025-05-01T00:17:55.9933421Z"
},
"Errors": [],
"IsSuccess": true,
"IsFailure": false
}
Service Response
IsFailure
bool
It returns true if an error occurred during the transaction.
IsSuccess
bool
It returns true along with a successful result if the transaction was successful.
Errors
Array
It is an array structure containing the error messages encountered.
Value
Array
It contains the main data set returned as a result of the request.
Service Response (Value)
Id
Guid
It is the unique identifier assigned by the system to the campaign.
Name
string
It is the name of the campaign defined in the system.
Description
string
It contains a brief description of the campaign.
MinimumDepositAmount
decimal
It is the minimum deposit amount required to benefit from the campaign.
MaximumDepositAmount
decimal
It is the maximum deposit amount for which the campaign is valid.
BonusType
string
It specifies the type of bonus to be applied in the campaign (e.g., percentage, fixed amount).
BonusValue
decimal
It shows the bonus value (in numerical terms).
CampaignType
string
It specifies the category type of the campaign.
StartDate
DateTime
It is the start date of the campaign.
EndDate
DateTime
It is the end date of the campaign.
IsActive
bool
It indicates whether the campaign is active or not.
MerchantId
Guid
It is the unique identifier of the business that defines the campaign.
TotalBonusGiven
decimal
It shows the total bonus amount distributed during the campaign period.
CreatedAt
DateTime
It is the date when the record was created in the system.
UpdatedAt
DateTime
It is the timestamp of the last update made to the record.
Last updated