2. Add Value/Commission

Add Value/Commission Setting (Also updates the existing one)

POST {{MemberBaseAddress}}/api/paywall/member/valuedate

Important: To be able to use the member service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' field. MemberAPI Address

ParameterTypeMandatoryDescription

apikeypublic

string

Yes

The Public Key obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client obtained from the merchant panel.

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

ParameterTypeMandatoryDescription

MemberId

int

Yes

The member's ID information in PayWall.

CalculationType

int

Yes

Progress billing calculation type. You can access more detailed information from the system data field.

CalculationValue

int

Yes

Progress billing calculation value. You can access more detailed information from the system data field.

Commission

decimal

Yes

The commission value to be applied to the sub-member business during progress billing calculation.

Sample to be sent to the service JSON and sample codes is as follows

{
    "MemberId": 14,
    "CalculationType": 2, // ADayOfWeek - Haftanın bir günü 
    "CalculationValue": 4, // Haftanın Perşembe günü
    "Commission": 10 // Uygulanacak komisyon
}

The parameters returned from the service are as follows:

ParameterTypeDescription

ErrorCode

int

Error code. If the transaction is successful, it returns a value of '0'.

Result

bool

It returns a value of 'true' for success, and 'false' otherwise.

Message

string

If the transaction is unsuccessful, this is the error message specified, providing language support based on the 'locale' parameter.

Body

Object

Transaction details information

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": null
}

Last updated