2. Add Value/Commission
Add Value/Commission Setting (Also updates the existing one)
POST
{{MemberBaseAddress}}/api/paywall/member/valuedate
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:
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 - One day of the week
"CalculationValue": 4, // Thursday of the week
"Commission": 10 // Commission to be applied
}
The parameters returned from the service are as follows:
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