1. Create

This service should be used to add a new record.

Record Creation Process

POST{{WalletUrl}}/api/v1/campaign

Note: To use this service, it is mandatory to include the apikeypublic and apiclientpublic parameters in the Header field.

WalletAPI Address

The parameters that need to be sent to the service are as follows:

Parameter
Type
Required
Description

apikeypublic

string

Yes

It is the general key used to access the API.

apiclientpublic

string

Yes

It is the general identity key specific to the API client.

    "Value": {
        "Id": "44e93e35-d427-4ae9-a11c-b122447b6ac4",
        "Name": "fırsat100",
        "Description": "<string>",
        "MinimumDepositAmount": 500,
        "MaximumDepositAmount": 2000,
        "BonusType": "Fixed",
        "BonusValue": 1,
        "CampaignType": "CashBack",
        "StartDate": "2025-06-26",
        "EndDate": "2025-06-28",
        "IsActive": true,
        "MerchantId": 2071,
        "TotalBonusGiven": 0,
        "CreatedAt": "2025-04-30T14:17:27.3319775Z",
        "UpdatedAt": null
    },
    "Errors": [],
    "IsSuccess": true,
    "IsFailure": false
}

Service Response

Parameter
Type
Description

IsFailure

bool

It indicates whether the transaction has failed or not. If true, an error has occurred.

IsSuccess

bool

It indicates whether the transaction was successful. If true, it has been completed successfully.

Errors

Array

It is an array containing the details of any errors that occurred.

Value

Array

It contains the main data returned in the case of a successful response.

Service Response (Value)

Parameter
Type
Description

Id

Guid

It is the unique identifier of the campaign.

Name

string

The name of the campaign.

Description

string

Explanatory information about the campaign.

MinimumDepositAmount

decimal

The minimum deposit amount required for the campaign to be valid.

MaximumDepositAmount

decimal

The maximum deposit amount for which the campaign is valid.

BonusType

string

The bonus type defined in the campaign (e.g., percentage, fixed amount).

BonusValue

decimal

The value of the bonus to be given.

CampaignType

string

The campaign type (e.g., new user, general).

StartDate

DateTime

The start date of the campaign.

EndDate

DateTime

The end date of the campaign.

IsActive

bool

It indicates whether the campaign is active or not.

MerchantId

Guid

It is the identity information of the business that defines the campaign.

TotalBonusGiven

decimal

The total bonus amount given so far.

CreatedAt

DateTime

The creation date of the record.

UpdatedAt

DateTime

The last update date of the record.

Last updated